@Test public void testGetUserFullName() { RestInvocations.loadProjectUsers(handler); String fullName = projectUserService.getUserFullName("tester"); Assert.assertEquals("Integration Test", fullName); projectUserService.getUserFullName("tester"); }
public String getUserFullName(String username) { User user = getUser(username); if(user != null) { return user.getFullName(); } else { return null; } }
ProjectUserService extends AbstractCachingService<Integer, UserList, AbstractCachingService.Callback<UserList>> { public String getUserFullName(String username) { User user = getUser(username); if(user != null) { return user.getFullName(); } else { return null; } } }
ProjectUserService extends AbstractCachingService<Integer, UserList, AbstractCachingService.Callback<UserList>> { public String getUserFullName(String username) { User user = getUser(username); if(user != null) { return user.getFullName(); } else { return null; } } ProjectUserService(Project project); }
ProjectUserService extends AbstractCachingService<Integer, UserList, AbstractCachingService.Callback<UserList>> { public String getUserFullName(String username) { User user = getUser(username); if(user != null) { return user.getFullName(); } else { return null; } } ProjectUserService(Project project); void loadUsersAsync(Callback<UserList> callback); User tryGetUser(String username); void loadUserAsync(final String username, final Callback<User> callback); UserList getUserList(); User getUser(String username); String getUserFullName(String username); }
ProjectUserService extends AbstractCachingService<Integer, UserList, AbstractCachingService.Callback<UserList>> { public String getUserFullName(String username) { User user = getUser(username); if(user != null) { return user.getFullName(); } else { return null; } } ProjectUserService(Project project); void loadUsersAsync(Callback<UserList> callback); User tryGetUser(String username); void loadUserAsync(final String username, final Callback<User> callback); UserList getUserList(); User getUser(String username); String getUserFullName(String username);  }