Fix checkstyle violation
This commit is contained in:
parent
69fbd8f20c
commit
f4d9e1c650
|
|
@ -197,12 +197,12 @@ class PropertyMapperTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenWhenValueNotMatchesShouldSupportChainedCalls() {
|
void whenWhenValueNotMatchesShouldSupportChainedCalls() {
|
||||||
this.map.from("123").when("456"::equals).when("123"::equals).toCall(Assertions::fail);
|
this.map.from("123").when("456"::equals).when("123"::equals).toCall(Assertions::fail);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenWhenValueMatchesShouldSupportChainedCalls() {
|
void whenWhenValueMatchesShouldSupportChainedCalls() {
|
||||||
String result = this.map.from("123").when((s) -> s.contains("2")).when("123"::equals).toInstance(String::new);
|
String result = this.map.from("123").when((s) -> s.contains("2")).when("123"::equals).toInstance(String::new);
|
||||||
assertThat(result).isEqualTo("123");
|
assertThat(result).isEqualTo("123");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue