@Test public void getContainers() { try (Response response = getContainersTarget() .request() .header(CoordConstsV2.HTTP_HEADER_BATFISH_VERSION, BatfishVersion.getVersionStatic()) .header(CoordConstsV2.HTTP_HEADER_BATFISH_APIKEY, CoordConsts.DEFAULT_API_KEY) .get()) { assertThat(response.getStatus(), equalTo(OK.getStatusCode())); assertThat(response.readEntity(new GenericType<List<Container>>() {}), empty()); } Main.getWorkMgr().initNetwork("someContainer", null); try (Response response = getContainersTarget() .request() .header(CoordConstsV2.HTTP_HEADER_BATFISH_VERSION, BatfishVersion.getVersionStatic()) .header(CoordConstsV2.HTTP_HEADER_BATFISH_APIKEY, CoordConsts.DEFAULT_API_KEY) .get()) { assertThat(response.getStatus(), equalTo(OK.getStatusCode())); assertThat(response.readEntity(new GenericType<List<Container>>() {}), hasSize(1)); } }
@GET @Path(CoordConstsV2.RSC_CONTAINERS) @Deprecated public Response getContainers() { return getNetworks(); }
WorkMgrServiceV2 { @GET @Path(CoordConstsV2.RSC_CONTAINERS) @Deprecated public Response getContainers() { return getNetworks(); } }
WorkMgrServiceV2 { @GET @Path(CoordConstsV2.RSC_CONTAINERS) @Deprecated public Response getContainers() { return getNetworks(); }  }
WorkMgrServiceV2 { @GET @Path(CoordConstsV2.RSC_CONTAINERS) @Deprecated public Response getContainers() { return getNetworks(); }  @GET @Path(CoordConstsV2.RSC_CONTAINERS) @Deprecated Response getContainers(); @GET @Path(CoordConstsV2.RSC_NETWORKS) Response getNetworks(); @GET @Path(CoordConstsV2.RSC_QUESTION_TEMPLATES) @Nonnull Response getQuestionTemplates(@QueryParam(QP_VERBOSE) boolean verbose); @GET @Path(CoordConstsV2.RSC_CONTAINER) @Deprecated Response redirectContainer(); @GET @Path(CoordConstsV2.RSC_NETWORK) Response redirectNetwork(); @Path(CoordConstsV2.RSC_CONTAINERS + "/{id}") @Deprecated NetworkResource getContainerResource(@PathParam("id") String id); @Path(CoordConstsV2.RSC_NETWORKS + "/{id}") NetworkResource getNetworkResource(@PathParam("id") String id); @GET @Path(CoordConstsV2.RSC_VERSION) Response getVersion(); }
WorkMgrServiceV2 { @GET @Path(CoordConstsV2.RSC_CONTAINERS) @Deprecated public Response getContainers() { return getNetworks(); }  @GET @Path(CoordConstsV2.RSC_CONTAINERS) @Deprecated Response getContainers(); @GET @Path(CoordConstsV2.RSC_NETWORKS) Response getNetworks(); @GET @Path(CoordConstsV2.RSC_QUESTION_TEMPLATES) @Nonnull Response getQuestionTemplates(@QueryParam(QP_VERBOSE) boolean verbose); @GET @Path(CoordConstsV2.RSC_CONTAINER) @Deprecated Response redirectContainer(); @GET @Path(CoordConstsV2.RSC_NETWORK) Response redirectNetwork(); @Path(CoordConstsV2.RSC_CONTAINERS + "/{id}") @Deprecated NetworkResource getContainerResource(@PathParam("id") String id); @Path(CoordConstsV2.RSC_NETWORKS + "/{id}") NetworkResource getNetworkResource(@PathParam("id") String id); @GET @Path(CoordConstsV2.RSC_VERSION) Response getVersion();  }