From 5bcd9bdac2673a0ddeabb3d0db3dc414ee70bd60 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 28 Jul 2018 17:30:35 +0100 Subject: [PATCH] ValueTest: remove underscores from test method names and user WithAssertions --- src/test/java/net/kemitix/conditional/ValueTest.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/test/java/net/kemitix/conditional/ValueTest.java b/src/test/java/net/kemitix/conditional/ValueTest.java index 960ec02..d32843d 100644 --- a/src/test/java/net/kemitix/conditional/ValueTest.java +++ b/src/test/java/net/kemitix/conditional/ValueTest.java @@ -1,17 +1,16 @@ package net.kemitix.conditional; import lombok.val; +import org.assertj.core.api.WithAssertions; import org.junit.Test; import java.util.Optional; import java.util.concurrent.atomic.AtomicInteger; -import static org.assertj.core.api.Assertions.assertThat; - /** * @author Paul Campbell (pcampbell@kemitix.net). */ -public class ValueTest { +public class ValueTest implements WithAssertions { private static final String TRUE = "true"; private static final String FALSE = "false"; @@ -159,7 +158,7 @@ public class ValueTest { } @Test - public void valueWhereNotFalseIsTrue_deprecated() { + public void deprecatedValueWhereNotFalseIsTrue() { //when val result = Value.whereNot(false).then(() -> TRUE) .otherwise(() -> FALSE); @@ -237,7 +236,7 @@ public class ValueTest { } @Test - public void valueWhereFalseOrNotTrueIsFalse_deprecated() { + public void deprecatedValueWhereFalseOrNotTrueIsFalse() { //when val result = Value.where(FALSE_CONDITION).orNot(() -> true) .then(() -> TRUE)