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) {
|
final TypeAlias<String> typeAlias = new TypeAlias<String>(value) {
|
||||||
};
|
};
|
||||||
//then
|
//then
|
||||||
assertThat(typeAlias.getValue()).isEqualTo(value);
|
assertThat(typeAlias.<Boolean>map(value::equals)).isTrue();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -26,7 +26,7 @@ public class TypeAliasTest {
|
||||||
//when
|
//when
|
||||||
final AnAlias anAlias = AnAlias.of(value);
|
final AnAlias anAlias = AnAlias.of(value);
|
||||||
//then
|
//then
|
||||||
assertThat(anAlias.getValue()).isEqualTo(value);
|
assertThat(anAlias.<Boolean>map(value::equals)).isTrue();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in a new issue