}
@Test
public void loadProfiles() throws Exception
{
ProfileStore profileStore = injector.getInstance(ProfileStore.class);
TestCallback<List<ProfileRecord>> callback = new TestCallback<List<ProfileRecord>>() {
@Override
public void onSuccess(List<ProfileRecord> result) {
assertFalse(result.isEmpty());
assertEquals("default", result.get(0).getName());
didCallback = true;
}
};
profileStore.loadProfiles(callback);
synchronized (callback) {
callback.wait(500);
}