@Test public void testLoadUsersAsync() throws InterruptedException { RestInvocations.loadProjectUsers(handler); handler.async(); projectUserService.loadUsersAsync(new NonDispatchTestCallback<UserList>(handler) { @Override public void evaluate(UserList userList) { Assert.assertEquals(1, userList.size()); User tester = userList.getUser("tester"); Assert.assertEquals("tester", tester.getUsername()); Assert.assertEquals("Integration Test", tester.getFullName()); } }); }
public void loadUsersAsync(Callback<UserList> callback) { getValueAsync(1, callback); }
ProjectUserService extends AbstractCachingService<Integer, UserList, AbstractCachingService.Callback<UserList>> { public void loadUsersAsync(Callback<UserList> callback) { getValueAsync(1, callback); } }
ProjectUserService extends AbstractCachingService<Integer, UserList, AbstractCachingService.Callback<UserList>> { public void loadUsersAsync(Callback<UserList> callback) { getValueAsync(1, callback); } ProjectUserService(Project project); }
ProjectUserService extends AbstractCachingService<Integer, UserList, AbstractCachingService.Callback<UserList>> { public void loadUsersAsync(Callback<UserList> callback) { getValueAsync(1, callback); } 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 void loadUsersAsync(Callback<UserList> callback) { getValueAsync(1, callback); } 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);  }