diff --git a/gclc/pom.xml b/gclc/pom.xml
index b7b6017..1f54431 100644
--- a/gclc/pom.xml
+++ b/gclc/pom.xml
@@ -49,7 +49,7 @@
@@ -513,21 +509,18 @@ public class ParametrizedCommandTest { cmd.execute(out, in, "-" + str1, str2, "-" + addParam); cmd.execute(out, in, "-" + str1, str2, "-" + addParam, addParam); - final TestFunction function = new TestFunction() { - - @Override - public void apply() throws Exception { - assertEquals("value of " + str1 + "? ", buf.readLine()); - in.type(""); - assertEquals("value of " + str1 + "? (cannot be empty) ", - buf.readLine()); - in.type(""); - assertEquals("value of " + str1 + "? (cannot be empty) ", - buf.readLine()); - in.type(str2); - } + final TestFunction function = () -> { + assertEquals("value of " + str1 + "? ", buf.readLine()); + in.type(""); + assertEquals("value of " + str1 + "? (cannot be empty) ", + buf.readLine()); + in.type(""); + assertEquals("value of " + str1 + "? (cannot be empty) ", + buf.readLine()); + in.type(str2); }; - final ATestRunnable testConsole = new FunctionalTestRunnable(function); + final FunctionalTestRunnable testConsole = new FunctionalTestRunnable( + function); final Thread th = new Thread(testConsole); th.start(); @@ -543,13 +536,9 @@ public class ParametrizedCommandTest { new InputStreamReader(pis, StandardCharsets.UTF_8)); PipedConsoleInput in = new PipedConsoleInput(new PrintStream(pout))) { - final TestFunction function = new TestFunction() { - - @Override - public void apply() throws Exception { - assertEquals("value of " + str1 + "? ", buf.readLine()); - in.type(str2); - } + final TestFunction function = () -> { + assertEquals("value of " + str1 + "? ", buf.readLine()); + in.type(str2); }; final ATestRunnable testConsole = new FunctionalTestRunnable(function); diff --git a/gclc/src/test/java/net/bigeon/gclc/command/SubedCommandTest.java b/gclc/src/test/java/net/bigeon/gclc/command/SubedCommandTest.java index 2d5ddb8..8683a82 100644 --- a/gclc/src/test/java/net/bigeon/gclc/command/SubedCommandTest.java +++ b/gclc/src/test/java/net/bigeon/gclc/command/SubedCommandTest.java @@ -71,10 +71,7 @@ package net.bigeon.gclc.command; * knowledge of the CeCILL license and that you accept its terms. * #L% */ -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.fail; +import static org.junit.Assert.*; import java.io.IOException; diff --git a/gclc/src/test/java/net/bigeon/gclc/manager/ReadingRunnableTest.java b/gclc/src/test/java/net/bigeon/gclc/manager/ReadingRunnableTest.java index 1cddc6a..4b838a4 100644 --- a/gclc/src/test/java/net/bigeon/gclc/manager/ReadingRunnableTest.java +++ b/gclc/src/test/java/net/bigeon/gclc/manager/ReadingRunnableTest.java @@ -92,8 +92,8 @@ import org.junit.Test; import net.bigeon.gclc.utils.ReadingRunnable; import net.bigeon.test.junitmt.FunctionalTestRunnable; -import net.bigeon.test.junitmt.TestFunction; import net.bigeon.test.junitmt.ThreadTest; +import net.bigeon.test.junitmt.api.TestFunction; /** *
diff --git a/gclc/src/test/java/net/bigeon/gclc/manager/SystemConsoleManagerTest.java b/gclc/src/test/java/net/bigeon/gclc/manager/SystemConsoleManagerTest.java index 2025aae..9576904 100644 --- a/gclc/src/test/java/net/bigeon/gclc/manager/SystemConsoleManagerTest.java +++ b/gclc/src/test/java/net/bigeon/gclc/manager/SystemConsoleManagerTest.java @@ -71,10 +71,7 @@ package net.bigeon.gclc.manager; * knowledge of the CeCILL license and that you accept its terms. * #L% */ -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; +import static org.junit.Assert.*; import java.io.IOException; import java.io.InputStream; diff --git a/gclc/src/test/java/net/bigeon/gclc/prompt/CLIPrompterTest.java b/gclc/src/test/java/net/bigeon/gclc/prompt/CLIPrompterTest.java index dcbbd88..dd79041 100644 --- a/gclc/src/test/java/net/bigeon/gclc/prompt/CLIPrompterTest.java +++ b/gclc/src/test/java/net/bigeon/gclc/prompt/CLIPrompterTest.java @@ -71,10 +71,7 @@ package net.bigeon.gclc.prompt; * knowledge of the CeCILL license and that you accept its terms. * #L% */ -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; +import static org.junit.Assert.*; import java.io.BufferedReader; import java.io.IOException; @@ -94,10 +91,10 @@ import org.junit.Test; import net.bigeon.gclc.manager.PipedConsoleInput; import net.bigeon.gclc.manager.PipedConsoleOutput; -import net.bigeon.test.junitmt.ATestRunnable; import net.bigeon.test.junitmt.FunctionalTestRunnable; -import net.bigeon.test.junitmt.TestFunction; import net.bigeon.test.junitmt.ThreadTest; +import net.bigeon.test.junitmt.api.ATestRunnable; +import net.bigeon.test.junitmt.api.TestFunction; /** *
diff --git a/gclc/src/test/java/net/bigeon/gclc/tools/AOutputForwardRunnableTest.java b/gclc/src/test/java/net/bigeon/gclc/tools/AOutputForwardRunnableTest.java index 6b3b040..7e8f1e6 100644 --- a/gclc/src/test/java/net/bigeon/gclc/tools/AOutputForwardRunnableTest.java +++ b/gclc/src/test/java/net/bigeon/gclc/tools/AOutputForwardRunnableTest.java @@ -78,7 +78,6 @@ import java.io.IOException; import org.junit.Test; import net.bigeon.gclc.manager.PipedConsoleOutput; -import net.bigeon.gclc.utils.AOutputForwardRunnable; /** *
@@ -143,7 +142,7 @@ public class AOutputForwardRunnableTest { } /** Test method for - * {@link net.bigeon.gclc.utils.AOutputForwardRunnable#run()}. */ + * {@link net.bigeon.gclc.tools.AOutputForwardRunnable#run()}. */ @Test public final void testRun() { try (PipedConsoleOutput manager = new PipedConsoleOutput()) {