@Test public void testListWorkspaces() { handler.addRequest(false, "GET", "/qcbin/rest/domains/domain/projects/project/product-groups?fields=&query={}&order-by={}", 200) .content("workspaceServiceTest_workspaces.xml"); Map<Integer, String> map = workspaceService.listWorkspaces(); Assert.assertEquals(3, map.size()); Assert.assertEquals("All", map.get(-1)); Assert.assertEquals("Blue", map.get(1000)); Assert.assertEquals("Green", map.get(1001)); }
public Map<Integer, String> listWorkspaces() { return toWorkspaceMap(getValue(null)); }
WorkspaceService extends AbstractCachingEntityService<Void> { public Map<Integer, String> listWorkspaces() { return toWorkspaceMap(getValue(null)); } }
WorkspaceService extends AbstractCachingEntityService<Void> { public Map<Integer, String> listWorkspaces() { return toWorkspaceMap(getValue(null)); } WorkspaceService(Project project, EntityService entityService, RestService restService, WorkspaceConfiguration workspaceConfiguration); }
WorkspaceService extends AbstractCachingEntityService<Void> { public Map<Integer, String> listWorkspaces() { return toWorkspaceMap(getValue(null)); } WorkspaceService(Project project, EntityService entityService, RestService restService, WorkspaceConfiguration workspaceConfiguration); int getWorkspaceId(); String getWorkspaceName(); void selectWorkspace(int id, String name); Map<Integer, String> listWorkspaces(); void listWorkspacesAsync(Callback<Map<Integer, String>> callback); }
WorkspaceService extends AbstractCachingEntityService<Void> { public Map<Integer, String> listWorkspaces() { return toWorkspaceMap(getValue(null)); } WorkspaceService(Project project, EntityService entityService, RestService restService, WorkspaceConfiguration workspaceConfiguration); int getWorkspaceId(); String getWorkspaceName(); void selectWorkspace(int id, String name); Map<Integer, String> listWorkspaces(); void listWorkspacesAsync(Callback<Map<Integer, String>> callback);  }