@Test public void testGetDam() throws Exception { String adp = TestUtils.getStringFromPath(TestFixtures.ADP_PATH); String dam = TestUtils.getStringFromPath(TestFixtures.TOSCA_DAM_PATH); getMockWebServer().enqueue(new MockResponse() .setBody(dam) .setHeader("Accept", MediaType.TEXT_PLAIN) .setHeader("Content-Type", MediaType.APPLICATION_XML) ); assertEquals(dam, getProxy().getDam(adp)); }
public String getDam(String adp) { Entity content = Entity.entity(adp, MediaType.TEXT_PLAIN); Invocation invocation = getJerseyClient().target(getEndpoint() + "/planner/damgen").request().buildPost(content); return invocation.invoke().readEntity(String.class); }
PlannerProxy extends AbstractProxy { public String getDam(String adp) { Entity content = Entity.entity(adp, MediaType.TEXT_PLAIN); Invocation invocation = getJerseyClient().target(getEndpoint() + "/planner/damgen").request().buildPost(content); return invocation.invoke().readEntity(String.class); } }
PlannerProxy extends AbstractProxy { public String getDam(String adp) { Entity content = Entity.entity(adp, MediaType.TEXT_PLAIN); Invocation invocation = getJerseyClient().target(getEndpoint() + "/planner/damgen").request().buildPost(content); return invocation.invoke().readEntity(String.class); }  }
PlannerProxy extends AbstractProxy { public String getDam(String adp) { Entity content = Entity.entity(adp, MediaType.TEXT_PLAIN); Invocation invocation = getJerseyClient().target(getEndpoint() + "/planner/damgen").request().buildPost(content); return invocation.invoke().readEntity(String.class); }  MonitoringRules getMonitoringRulesByTemplateId(String monitoringRuleTemplateId); String getAdps(String aam); String getDam(String adp); }
PlannerProxy extends AbstractProxy { public String getDam(String adp) { Entity content = Entity.entity(adp, MediaType.TEXT_PLAIN); Invocation invocation = getJerseyClient().target(getEndpoint() + "/planner/damgen").request().buildPost(content); return invocation.invoke().readEntity(String.class); }  MonitoringRules getMonitoringRulesByTemplateId(String monitoringRuleTemplateId); String getAdps(String aam); String getDam(String adp);  }