Update TypeAliasTests to not use deprecated TypeAlias.getValue()

This commit is contained in:
Paul Campbell 2017-11-26 09:38:35 +00:00
parent d60aedb930
commit daa9775d6a

View file

@ -16,7 +16,7 @@ public class TypeAliasTest {
final TypeAlias<String> typeAlias = new TypeAlias<String>(value) {
};
//then
assertThat(typeAlias.getValue()).isEqualTo(value);
assertThat(typeAlias.<Boolean>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.<Boolean>map(value::equals)).isTrue();
}
@Test