-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add junit test and refactor import cli common code
- Loading branch information
rathnapandi
committed
Oct 31, 2024
1 parent
6151857
commit bc59343
Showing
7 changed files
with
48 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
modules/apim-adapter/src/test/java/com/axway/lib/StandardImportCLIOptionsTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.axway.lib; | ||
|
||
import com.axway.apim.lib.CLIOptions; | ||
import com.axway.apim.lib.StandardImportCLIOptions; | ||
import com.axway.lib.utils.SampleCLIOptions; | ||
import org.testng.Assert; | ||
import org.testng.annotations.Test; | ||
|
||
public class StandardImportCLIOptionsTest { | ||
|
||
@Test | ||
public void testStandardImportCLIOptions() throws Exception { | ||
String[] args = {"-enabledCaches", "applicationsQuotaCache", "-stageConfig", "my-staged-config.json"}; | ||
CLIOptions options = SampleCLIOptions.create(args); | ||
StandardImportCLIOptions standardImportCLIOptions = new StandardImportCLIOptions(); | ||
standardImportCLIOptions.addOptions(options); | ||
options.parse(); | ||
Assert.assertTrue(options.hasOption("enabledCaches")); | ||
Assert.assertTrue(options.hasOption("stageConfig")); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters