use of org.edx.mobile.model.api.ProfileModel in project edx-app-android by edx.
the class SocialLoginTests method testGetProfile.
@Test
public void testGetProfile() throws Exception {
ProfileModel profile = loginAPI.getProfile();
assertNotNull(profile);
assertNotNull("profile.email cannot be null", profile.email);
print("finished getProfile");
}
use of org.edx.mobile.model.api.ProfileModel in project edx-app-android by edx.
the class LoginAPI method getProfile.
@NonNull
public ProfileModel getProfile() throws Exception {
ProfileModel data = executeStrict(loginService.getProfile());
loginPrefs.storeUserProfile(data);
return data;
}
Aggregations