Suppress warnings
This commit is contained in:
parent
80023809a4
commit
0424e93997
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue