use of com.nexblocks.authguard.service.model.AccountEmailBO in project AuthGuard by AuthGuard.
the class ValueComparatorTest method emailsEqualDifferenceEmails.
@Test
void emailsEqualDifferenceEmails() {
final AccountEmailBO first = AccountEmailBO.builder().email("email").build();
final AccountEmailBO second = AccountEmailBO.builder().email("other").build();
assertThat(ValueComparator.emailsEqual(first, second)).isFalse();
}
use of com.nexblocks.authguard.service.model.AccountEmailBO in project AuthGuard by AuthGuard.
the class ValueComparatorTest method emailsEqualNullToValue.
@Test
void emailsEqualNullToValue() {
final AccountEmailBO first = AccountEmailBO.builder().email("email").verified(true).build();
assertThat(ValueComparator.emailsEqual(first, null)).isFalse();
}
use of com.nexblocks.authguard.service.model.AccountEmailBO in project AuthGuard by AuthGuard.
the class ValueComparatorTest method emailsEqualValueToNull.
@Test
void emailsEqualValueToNull() {
final AccountEmailBO second = AccountEmailBO.builder().email("other").build();
assertThat(ValueComparator.emailsEqual(null, second)).isFalse();
}
use of com.nexblocks.authguard.service.model.AccountEmailBO in project AuthGuard by AuthGuard.
the class ValueComparatorTest method emailsEqualSameEmailDifferentFlags.
@Test
void emailsEqualSameEmailDifferentFlags() {
final AccountEmailBO first = AccountEmailBO.builder().email("email").verified(true).build();
final AccountEmailBO second = AccountEmailBO.builder().email("email").build();
assertThat(ValueComparator.emailsEqual(first, second)).isTrue();
}
Aggregations