Add missing test shouldNotBeEqualWhenValuesAreNotTheSame

This commit is contained in:
Paul Campbell 2017-12-09 19:23:23 +00:00
parent db3596063e
commit ec482211e0

View file

@ -68,6 +68,15 @@ public class TypeAliasTest {
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
public void shouldBeEqualToRawValue() {
//given