Skip to content

Commit

Permalink
- Fix junit
Browse files Browse the repository at this point in the history
  • Loading branch information
rathnapandi committed Mar 5, 2024
1 parent 3446cf9 commit e4936e5
Showing 1 changed file with 11 additions and 21 deletions.
32 changes: 11 additions & 21 deletions modules/apis/src/test/java/com/axway/apim/APIImportAppTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,17 @@
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

public class APIImportAppTest {
// extends WiremockWrapper {
//
// @BeforeClass
// public void initWiremock() {
// super.initWiremock();
// }
//
// @AfterClass
// public void close() {
// super.close();
// }
public class APIImportAppTest extends WiremockWrapper {

@BeforeClass
public void initWiremock() {
super.initWiremock();
}

@AfterClass
public void close() {
super.close();
}

@Test
public void importApiTest() {
Expand All @@ -41,13 +40,4 @@ public void importApiMCliVersion() {
int returnCode = APIImportApp.importAPI(args);
Assert.assertEquals(returnCode, 0);
}

@Test
public void importApiTest2() {

String confFile = "/Users/rnatarajan/IdeaProjects/apim-cli-dev/distribution/target/axway-apimcli-1.14.4-SNAPSHOT/apim-cli-1.14.4-SNAPSHOT/scripts/api-v3/api-config.json";
String[] args = {"-h", "localhost", "-c", confFile, "-u", "apiadmin", "-p", "changeme1", "-force"};
int returnCode = APIImportApp.importAPI(args);
Assert.assertEquals(returnCode, 15);
}
}

0 comments on commit e4936e5

Please sign in to comment.