@Test public void testGetAdps() throws Exception { String aam = TestUtils.getStringFromPath(TestFixtures.AAM_PATH); String adps = TestUtils.getStringFromPath(TestFixtures.ADPS_PATH); getMockWebServer().enqueue(new MockResponse() .setBody(adps) .setHeader("Accept", MediaType.TEXT_PLAIN) .setHeader("Content-Type", MediaType.APPLICATION_XML) ); assertEquals(adps, getProxy().getAdps(aam)); }
public String getAdps(String aam) { Entity content = Entity.entity(aam, MediaType.TEXT_PLAIN); Invocation invocation = getJerseyClient().target(getEndpoint() + "/planner/plan").request().buildPost(content); return invocation.invoke().readEntity(String.class); }
PlannerProxy extends AbstractProxy { public String getAdps(String aam) { Entity content = Entity.entity(aam, MediaType.TEXT_PLAIN); Invocation invocation = getJerseyClient().target(getEndpoint() + "/planner/plan").request().buildPost(content); return invocation.invoke().readEntity(String.class); } }
PlannerProxy extends AbstractProxy { public String getAdps(String aam) { Entity content = Entity.entity(aam, MediaType.TEXT_PLAIN); Invocation invocation = getJerseyClient().target(getEndpoint() + "/planner/plan").request().buildPost(content); return invocation.invoke().readEntity(String.class); }  }
PlannerProxy extends AbstractProxy { public String getAdps(String aam) { Entity content = Entity.entity(aam, MediaType.TEXT_PLAIN); Invocation invocation = getJerseyClient().target(getEndpoint() + "/planner/plan").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 getAdps(String aam) { Entity content = Entity.entity(aam, MediaType.TEXT_PLAIN); Invocation invocation = getJerseyClient().target(getEndpoint() + "/planner/plan").request().buildPost(content); return invocation.invoke().readEntity(String.class); }  MonitoringRules getMonitoringRulesByTemplateId(String monitoringRuleTemplateId); String getAdps(String aam); String getDam(String adp);  }