use of org.kie.server.controller.client.KieServerControllerClient in project kie-wb-common by kiegroup.
the class StandaloneControllerIT method testEmbeddedRestEndpoint.
@Test
@RunAsClient
@OperateOnDeployment("workbench")
public void testEmbeddedRestEndpoint(@ArquillianResource final URL baseURL) throws Exception {
final String controllerURL = baseURL + "rest/controller";
try {
KieServerControllerClient client = KieServerControllerClientFactory.newRestClient(controllerURL, USER, PASSWORD);
client.listServerTemplates();
fail("Connection to embedded controller endpoint should fail");
} catch (KieServerControllerHTTPClientException ex) {
assertEquals(404, ex.getResponseCode());
}
}
Aggregations