Update TypeAliasTests to not use deprecated TypeAlias.getValue()
This commit is contained in:
parent
d60aedb930
commit
daa9775d6a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue