From dc89a0962f2706dd75c0aa77b18b050fc1a25e74 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 10 Dec 2017 16:33:49 +0000 Subject: [PATCH] Use static import of nothing() --- src/test/java/net/kemitix/mon/MaybeTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/net/kemitix/mon/MaybeTest.java b/src/test/java/net/kemitix/mon/MaybeTest.java index bb8676d..ecd0190 100644 --- a/src/test/java/net/kemitix/mon/MaybeTest.java +++ b/src/test/java/net/kemitix/mon/MaybeTest.java @@ -71,14 +71,14 @@ public class MaybeTest { @Test public void toOptional() { assertThat(just(1).toOptional()).isEqualTo(Optional.of(1)); - assertThat(Maybe.nothing() + assertThat(nothing() .toOptional()).isEqualTo(Optional.empty()); } @Test public void fromOptional() { assertThat(Maybe.fromOptional(Optional.of(1))).isEqualTo(just(1)); - assertThat(Maybe.fromOptional(Optional.empty())).isEqualTo(Maybe.nothing()); + assertThat(Maybe.fromOptional(Optional.empty())).isEqualTo(nothing()); }