X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=lighty%2Fsrc%2Ftest%2Fjava%2Fio%2Flighty%2Fcontrollers%2Ftpce%2FMaintTest.java;h=872cb52050706e17fc6381076409d6f0b677350b;hb=7d4f682d48155fdc6c3b4ad1b1c05e58919f2655;hp=096c25d34a1bfad0b1dbc4800e7361f5d582b5eb;hpb=5e3675cf1ce1d119c758cb2d8513be591c1e6b78;p=transportpce.git diff --git a/lighty/src/test/java/io/lighty/controllers/tpce/MaintTest.java b/lighty/src/test/java/io/lighty/controllers/tpce/MaintTest.java index 096c25d34..872cb5205 100644 --- a/lighty/src/test/java/io/lighty/controllers/tpce/MaintTest.java +++ b/lighty/src/test/java/io/lighty/controllers/tpce/MaintTest.java @@ -48,7 +48,7 @@ public class MaintTest { @Test public void startNoConfigFileTest() throws Exception { - main.start(new String[0], true); + main.start(null, false, "3000", "2000", true); ContentResponse response = client.GET("http://localhost:8181/restconf/config/ietf-network:networks/network/openroadm-topology"); assertEquals("Response code should be 200", 200, response.getStatus()); } @@ -56,8 +56,7 @@ public class MaintTest { @Test public void startConfigFileTest() throws Exception { File configFile = new File("src/test/resources/config.json"); - String[] args = {configFile.getAbsolutePath()}; - main.start(args, true); + main.start(configFile.getAbsolutePath(), false, "3000", "2000", true); ContentResponse response = client.GET("http://localhost:8888/restconfCustom/config/ietf-network:networks/network/openroadm-topology"); assertEquals("Response code should be 200", 200, response.getStatus()); }