Suppress warnings

This commit is contained in:
Paul Campbell 2017-12-31 19:22:28 +00:00
parent 80023809a4
commit 0424e93997

View file

@ -93,6 +93,7 @@ public class MonTest {
} }
@Test @Test
@SuppressWarnings("ResultOfMethodCallIgnored")
public void factoryRequiresValidator() { public void factoryRequiresValidator() {
assertThatNullPointerException().isThrownBy( assertThatNullPointerException().isThrownBy(
() -> Mon.factory(null, Optional::of, Optional::empty)) () -> Mon.factory(null, Optional::of, Optional::empty))
@ -100,6 +101,7 @@ public class MonTest {
} }
@Test @Test
@SuppressWarnings("ResultOfMethodCallIgnored")
public void factoryRequiresOnValid() { public void factoryRequiresOnValid() {
assertThatNullPointerException().isThrownBy( assertThatNullPointerException().isThrownBy(
() -> Mon.factory(v -> true, null, Optional::empty)) () -> Mon.factory(v -> true, null, Optional::empty))
@ -107,6 +109,7 @@ public class MonTest {
} }
@Test @Test
@SuppressWarnings("ResultOfMethodCallIgnored")
public void factoryRequiresOnInvalid() { public void factoryRequiresOnInvalid() {
assertThatNullPointerException().isThrownBy( assertThatNullPointerException().isThrownBy(
() -> Mon.factory(v -> true, Optional::of, null)) () -> Mon.factory(v -> true, Optional::of, null))