From ccf3a1115755dcdea0d1c5e9051ce18350a9c17c Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Tue, 19 Sep 2017 23:09:28 +0100 Subject: [PATCH] MonTest: apply stepdown rule to methods --- src/test/java/net/kemitix/mon/MonTest.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/test/java/net/kemitix/mon/MonTest.java b/src/test/java/net/kemitix/mon/MonTest.java index 96272c3..3d8a660 100644 --- a/src/test/java/net/kemitix/mon/MonTest.java +++ b/src/test/java/net/kemitix/mon/MonTest.java @@ -18,6 +18,13 @@ public class MonTest { assertMonContains(wrap, "test"); } + private void assertMonContains( + final Mon wrap, + final T expected + ) { + wrap.map(value -> assertThat(value).isEqualTo(expected)); + } + @Test public void canMap() { //given @@ -144,8 +151,4 @@ public class MonTest { assertThat(one).isNotEqualTo(notAMon); assertThat(one).isNotEqualTo(null); } - - private void assertMonContains(final Mon wrap, final T expected) { - wrap.map(value -> assertThat(value).isEqualTo(expected)); - } }