@Test public void testGetRepositoryVersionService() { ClusterStackVersionService clusterStackVersionService = new TestClusterStackVersionService("cluster"); RepositoryVersionService rvs = clusterStackVersionService.getRepositoryVersionService(EasyMock.createMock(javax.ws.rs.core.Request.class), "1"); TestCase.assertNotNull(rvs); }
@Path("{stackVersionId}/repository_versions") public RepositoryVersionService getRepositoryVersionService(@Context javax.ws.rs.core.Request request, @PathParam("stackVersionId") String stackVersion) { final Map<Resource.Type, String> mapIds = new HashMap<Resource.Type, String>(); mapIds.put(Resource.Type.Cluster, clusterName); mapIds.put(Resource.Type.ClusterStackVersion, stackVersion); return new RepositoryVersionService(mapIds); }
ClusterStackVersionService extends BaseService { @Path("{stackVersionId}/repository_versions") public RepositoryVersionService getRepositoryVersionService(@Context javax.ws.rs.core.Request request, @PathParam("stackVersionId") String stackVersion) { final Map<Resource.Type, String> mapIds = new HashMap<Resource.Type, String>(); mapIds.put(Resource.Type.Cluster, clusterName); mapIds.put(Resource.Type.ClusterStackVersion, stackVersion); return new RepositoryVersionService(mapIds); } }
ClusterStackVersionService extends BaseService { @Path("{stackVersionId}/repository_versions") public RepositoryVersionService getRepositoryVersionService(@Context javax.ws.rs.core.Request request, @PathParam("stackVersionId") String stackVersion) { final Map<Resource.Type, String> mapIds = new HashMap<Resource.Type, String>(); mapIds.put(Resource.Type.Cluster, clusterName); mapIds.put(Resource.Type.ClusterStackVersion, stackVersion); return new RepositoryVersionService(mapIds); } ClusterStackVersionService(String clusterName); }
ClusterStackVersionService extends BaseService { @Path("{stackVersionId}/repository_versions") public RepositoryVersionService getRepositoryVersionService(@Context javax.ws.rs.core.Request request, @PathParam("stackVersionId") String stackVersion) { final Map<Resource.Type, String> mapIds = new HashMap<Resource.Type, String>(); mapIds.put(Resource.Type.Cluster, clusterName); mapIds.put(Resource.Type.ClusterStackVersion, stackVersion); return new RepositoryVersionService(mapIds); } ClusterStackVersionService(String clusterName); @GET @Produces("text/plain") Response getClusterStackVersions(@Context HttpHeaders headers, @Context UriInfo ui); @GET @Path("{stackVersionId}") @Produces("text/plain") Response getClusterStackVersion(@Context HttpHeaders headers, @Context UriInfo ui,
      @PathParam("stackVersionId") String stackVersionId); @Path("{stackVersionId}/repository_versions") RepositoryVersionService getRepositoryVersionService(@Context javax.ws.rs.core.Request request,
                                                                  @PathParam("stackVersionId") String stackVersion); @POST @Produces("text/plain") Response createRequests(String body, @Context HttpHeaders headers, @Context UriInfo ui); @PUT @Produces("text/plain") Response updateRequests(String body, @Context HttpHeaders headers, @Context UriInfo ui); }
ClusterStackVersionService extends BaseService { @Path("{stackVersionId}/repository_versions") public RepositoryVersionService getRepositoryVersionService(@Context javax.ws.rs.core.Request request, @PathParam("stackVersionId") String stackVersion) { final Map<Resource.Type, String> mapIds = new HashMap<Resource.Type, String>(); mapIds.put(Resource.Type.Cluster, clusterName); mapIds.put(Resource.Type.ClusterStackVersion, stackVersion); return new RepositoryVersionService(mapIds); } ClusterStackVersionService(String clusterName); @GET @Produces("text/plain") Response getClusterStackVersions(@Context HttpHeaders headers, @Context UriInfo ui); @GET @Path("{stackVersionId}") @Produces("text/plain") Response getClusterStackVersion(@Context HttpHeaders headers, @Context UriInfo ui,
      @PathParam("stackVersionId") String stackVersionId); @Path("{stackVersionId}/repository_versions") RepositoryVersionService getRepositoryVersionService(@Context javax.ws.rs.core.Request request,
                                                                  @PathParam("stackVersionId") String stackVersion); @POST @Produces("text/plain") Response createRequests(String body, @Context HttpHeaders headers, @Context UriInfo ui); @PUT @Produces("text/plain") Response updateRequests(String body, @Context HttpHeaders headers, @Context UriInfo ui);  }