ProjectHandler implements ProjectService.Iface { @Override public List<Project> getMyProjects(String user) throws TException { assertNotEmpty(user); return handler.getMyProjectsSummary(user); } ProjectHandler(); @Override List<Project> refineSearch(String text, Map<String, Set<String>> subQueryRestrictions, User user); @Override List<Project> getMyProjects(String user); @Override List<Project> getAccessibleProjectsSummary(User user); @Override Set<Project> getAccessibleProjects(User user); @Override List<Project> searchByName(String name, User user); @Override Set<Project> searchByReleaseId(String id, User user); @Override Set<Project> searchByReleaseIds(Set<String> ids, User user); @Override Set<Project> searchLinkingProjects(String id, User user); @Override Project getProjectById(String id, User user); @Override List<Project> getProjectsById(List<String> id, User user); @Override Project getProjectByIdForEdit(String id, User user); @Override int getCountByReleaseIds(Set<String> ids); @Override int getCountByProjectId(String id); @Override AddDocumentRequestSummary addProject(Project project, User user); @Override RequestStatus updateProject(Project project, User user); RequestStatus updateProjectFromModerationRequest(Project projectAdditions, Project projectDeletions, User user); @Override RequestStatus deleteProject(String id, User user); @Override List<ProjectLink> getLinkedProjectsOfProject(Project project, boolean deep, User user); @Override List<ProjectLink> getLinkedProjectsById(String id, boolean deep, User user); @Override List<ProjectLink> getLinkedProjects(Map<String, ProjectRelationship> relations, User user); @Override Map<String, List<String>> getDuplicateProjects(); @Override List<Project> fillClearingStateSummary(List<Project> projects, User user); @Override List<Project> fillClearingStateSummaryIncludingSubprojects(List<Project> projects, User user); @Override List<ReleaseClearingStatusData> getReleaseClearingStatuses(String projectId, User user); @Override RequestStatus removeAttachmentFromProject(String projectId, User user, String attachmentContentId); @Override boolean projectIsUsed(String projectId);  }
@Test public void testGetMyProjects() throws Exception { assertEquals(2, handler.getMyProjects(user1.getEmail()).size()); assertEquals(1, handler.getMyProjects(user2.getEmail()).size()); assertEquals(1, handler.getMyProjects(user3.getEmail()).size()); }