@Test public void testGetApplicationsTree() throws Exception { String json = TestUtils.getStringFromPath(TestFixtures.APPLICATION_TREE); getMockWebServer().enqueue(new MockResponse() .setBody(json) .setHeader("Accept", MediaType.APPLICATION_JSON) .setHeader("Content-Type", MediaType.APPLICATION_JSON) ); JsonNode response = getProxy().getApplicationsTree(); JsonNode fixture = ObjectMapperHelpers.JsonToObject(json, JsonNode.class); assertEquals(fixture, response); }
public JsonNode getApplicationsTree() throws IOException { Invocation invocation = getJerseyClient().target(getEndpoint() + "/v1/applications/fetch").request().buildGet(); return invocation.invoke().readEntity(JsonNode.class); }
DeployerProxy extends AbstractProxy { public JsonNode getApplicationsTree() throws IOException { Invocation invocation = getJerseyClient().target(getEndpoint() + "/v1/applications/fetch").request().buildGet(); return invocation.invoke().readEntity(JsonNode.class); } }
DeployerProxy extends AbstractProxy { public JsonNode getApplicationsTree() throws IOException { Invocation invocation = getJerseyClient().target(getEndpoint() + "/v1/applications/fetch").request().buildGet(); return invocation.invoke().readEntity(JsonNode.class); }  }
DeployerProxy extends AbstractProxy { public JsonNode getApplicationsTree() throws IOException { Invocation invocation = getJerseyClient().target(getEndpoint() + "/v1/applications/fetch").request().buildGet(); return invocation.invoke().readEntity(JsonNode.class); }  ApplicationSummary getApplication(String brooklynId); JsonNode getApplicationsTree(); TaskSummary removeApplication(String brooklynId); TaskSummary deployApplication(String tosca); List<EntitySummary> getEntitiesFromApplication(String brooklynId); List<SensorSummary> getEntitySensors(String brooklynId, String brooklynEntityId); String getEntitySensorsValue(String brooklynId, String brooklynEntityId, String sensorId); }
DeployerProxy extends AbstractProxy { public JsonNode getApplicationsTree() throws IOException { Invocation invocation = getJerseyClient().target(getEndpoint() + "/v1/applications/fetch").request().buildGet(); return invocation.invoke().readEntity(JsonNode.class); }  ApplicationSummary getApplication(String brooklynId); JsonNode getApplicationsTree(); TaskSummary removeApplication(String brooklynId); TaskSummary deployApplication(String tosca); List<EntitySummary> getEntitiesFromApplication(String brooklynId); List<SensorSummary> getEntitySensors(String brooklynId, String brooklynEntityId); String getEntitySensorsValue(String brooklynId, String brooklynEntityId, String sensorId);  }