@Test public void testServiceWithoutConfig() throws Exception { int port = 8080; // the default port assuming config hasn't loaded String testProject = "src/test/testprojects/servicetest"; MavenProject project = createMavenProject(testProject); HotDeployParameters parameters = HotDeployParameters.create() .withProject(project) .withVerticleReference("service:simpleservice.noconfig") .withLiveHttpReload(false); hotDeployAndCheckService(port, parameters); }
@Test public void testServiceWithConfig() throws Exception { int port = 8888; // if the config loaded correctly, the service HTTP server will be here String testProject = "src/test/testprojects/servicetest"; MavenProject project = createMavenProject(testProject); HotDeployParameters parameters = HotDeployParameters.create() .withProject(project) .withVerticleReference("service:simpleservice") .withLiveHttpReload(false); hotDeployAndCheckService(port, parameters); }
@Test public void testFQNDeployWithConfig() throws Exception { int port = 8888; // if the config loaded correctly, the http server will be found here String testProject = "src/test/testprojects/simple"; MavenProject project = createMavenProject(testProject); HotDeployParameters parameters = HotDeployParameters.create() .withProject(project) .withVerticleReference("App") .withConfigFileName("config.json") .withLiveHttpReload(false); hotDeployAndCheckService(port, parameters); }