Search in sources :

Example 1 with AccountEmailBO

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();
}
Also used : AccountEmailBO(com.nexblocks.authguard.service.model.AccountEmailBO) Test(org.junit.jupiter.api.Test)

Example 2 with AccountEmailBO

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();
}
Also used : AccountEmailBO(com.nexblocks.authguard.service.model.AccountEmailBO) Test(org.junit.jupiter.api.Test)

Example 3 with AccountEmailBO

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();
}
Also used : AccountEmailBO(com.nexblocks.authguard.service.model.AccountEmailBO) Test(org.junit.jupiter.api.Test)

Example 4 with AccountEmailBO

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();
}
Also used : AccountEmailBO(com.nexblocks.authguard.service.model.AccountEmailBO) Test(org.junit.jupiter.api.Test)

Aggregations

AccountEmailBO (com.nexblocks.authguard.service.model.AccountEmailBO)4 Test (org.junit.jupiter.api.Test)4