From ec482211e0951f55198469a34284a5f3904fbd0a Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 9 Dec 2017 19:23:23 +0000 Subject: [PATCH] Add missing test shouldNotBeEqualWhenValuesAreNotTheSame --- src/test/java/net/kemitix/mon/TypeAliasTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/test/java/net/kemitix/mon/TypeAliasTest.java b/src/test/java/net/kemitix/mon/TypeAliasTest.java index a077205..08a5448 100644 --- a/src/test/java/net/kemitix/mon/TypeAliasTest.java +++ b/src/test/java/net/kemitix/mon/TypeAliasTest.java @@ -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