コード例 #1
0
 private void assertThatOnlyNewEmailAddressIsPrimary() {
   for (Email email : returnUser.getEmails()) {
     if (email.getValue().equals("*****@*****.**")) {
       assertThat(email.isPrimary(), is(true));
     } else {
       assertThat(email.isPrimary(), is(false));
     }
   }
 }
コード例 #2
0
 private boolean isValuePartOfEmailList(List<Email> list, String value) {
   if (list != null) {
     for (Email actAttribute : list) {
       if (actAttribute.getValue().equals(value)) {
         return true;
       }
     }
   }
   return false;
 }