Commit f4d9e1c6 authored by Phillip Webb's avatar Phillip Webb

Fix checkstyle violation

parent 69fbd8f2
...@@ -197,12 +197,12 @@ class PropertyMapperTests { ...@@ -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");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment