From daa9775d6aacde21c853d523c3f5807e53f93350 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 26 Nov 2017 09:38:35 +0000 Subject: [PATCH] Update TypeAliasTests to not use deprecated TypeAlias.getValue() --- src/test/java/net/kemitix/mon/TypeAliasTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/net/kemitix/mon/TypeAliasTest.java b/src/test/java/net/kemitix/mon/TypeAliasTest.java index b6fb753..3e04110 100644 --- a/src/test/java/net/kemitix/mon/TypeAliasTest.java +++ b/src/test/java/net/kemitix/mon/TypeAliasTest.java @@ -16,7 +16,7 @@ public class TypeAliasTest { final TypeAlias typeAlias = new TypeAlias(value) { }; //then - assertThat(typeAlias.getValue()).isEqualTo(value); + assertThat(typeAlias.map(value::equals)).isTrue(); } @Test @@ -26,7 +26,7 @@ public class TypeAliasTest { //when final AnAlias anAlias = AnAlias.of(value); //then - assertThat(anAlias.getValue()).isEqualTo(value); + assertThat(anAlias.map(value::equals)).isTrue(); } @Test