Add missing test shouldNotBeEqualWhenValuesAreNotTheSame
This commit is contained in:
parent
db3596063e
commit
ec482211e0
1 changed files with 9 additions and 0 deletions
|
@ -68,6 +68,15 @@ public class TypeAliasTest {
|
||||||
assertThat(anAlias1).isEqualTo(anAlias2);
|
assertThat(anAlias1).isEqualTo(anAlias2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void shouldNotBeEqualWhenValuesAreNotTheSame() {
|
||||||
|
//given
|
||||||
|
final AnAlias valueA = AnAlias.of("value a");
|
||||||
|
final AnAlias valueB = AnAlias.of("value b");
|
||||||
|
//then
|
||||||
|
assertThat(valueA).isNotEqualTo(valueB);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void shouldBeEqualToRawValue() {
|
public void shouldBeEqualToRawValue() {
|
||||||
//given
|
//given
|
||||||
|
|
Loading…
Reference in a new issue