@Test public void change_one_field_and_other_attributes_are_the_same() { createFullUser("cnaoaats"); createUpdateUserWithJustOtherNickname(); updateUser(); assertNotEquals(testUser.getNickName(), returnUser.getNickName()); assertEquals(testUser.isActive(), returnUser.isActive()); assertEquals(testUser.getDisplayName(), returnUser.getDisplayName()); assertEquals(testUser.getExternalId(), returnUser.getExternalId()); assertEquals(testUser.getLocale(), returnUser.getLocale()); assertEquals(testUser.getPreferredLanguage(), returnUser.getPreferredLanguage()); assertEquals(testUser.getProfileUrl(), returnUser.getProfileUrl()); assertEquals(testUser.getTimezone(), returnUser.getTimezone()); assertEquals(testUser.getTitle(), returnUser.getTitle()); assertEquals(testUser.getUserType(), returnUser.getUserType()); assertEquals(testUser.getName().getFamilyName(), returnUser.getName().getFamilyName()); }
@Test public void delete_all_single_values() { createFullUser("desv"); createUpdateUserWithDeleteFields(); updateUser(); assertNull(returnUser.getNickName()); assertNull(returnUser.getDisplayName()); assertNull(returnUser.getLocale()); assertNull(returnUser.getPreferredLanguage()); assertNull(returnUser.getProfileUrl()); assertNull(returnUser.getTimezone()); assertNull(returnUser.getTitle()); assertNull(returnUser.getUserType()); assertNull(returnUser.getName()); assertNull(returnUser.getExternalId()); }
@Test public void update_all_single_values() { createFullUser("uasv"); createUpdateUserWithUpdateFields(); updateUser(); assertEquals("UserName", returnUser.getUserName()); assertEquals("NickName", returnUser.getNickName()); assertNotEquals(testUser.isActive(), returnUser.isActive()); assertEquals("DisplayName", returnUser.getDisplayName()); assertEquals("ExternalId", returnUser.getExternalId()); assertEquals("Locale", returnUser.getLocale()); assertEquals("PreferredLanguage", returnUser.getPreferredLanguage()); assertEquals("ProfileUrl", returnUser.getProfileUrl()); assertEquals("Timezone", returnUser.getTimezone()); assertEquals("Title", returnUser.getTitle()); assertEquals("UserType", returnUser.getUserType()); assertEquals("FamilyName", returnUser.getName().getFamilyName()); assertEquals("ExternalId", returnUser.getExternalId()); }