diff --git a/gclc-process/src/test/java/net/bigeon/gclc/process/CommandForkTest.java b/gclc-process/src/test/java/net/bigeon/gclc/process/CommandForkTest.java index ecdea66..9f6a42d 100644 --- a/gclc-process/src/test/java/net/bigeon/gclc/process/CommandForkTest.java +++ b/gclc-process/src/test/java/net/bigeon/gclc/process/CommandForkTest.java @@ -37,7 +37,7 @@ public class CommandForkTest { * {@link net.bigeon.gclc.process.CommandFork#execute(net.bigeon.gclc.manager.ConsoleOutput, net.bigeon.gclc.manager.ConsoleInput, java.lang.String[])}. * * @throws InvalidCommandName if the test init failed - * @throws CommandRunException */ + * @throws CommandRunException if the command execution failed in the test */ @Test public void testExecute() throws InvalidCommandName, CommandRunException { final TaskPool pool = new TaskPool(false); diff --git a/gclc-process/src/test/java/net/bigeon/gclc/process/ProcessKillTest.java b/gclc-process/src/test/java/net/bigeon/gclc/process/ProcessKillTest.java index 62ad5a9..50d4376 100644 --- a/gclc-process/src/test/java/net/bigeon/gclc/process/ProcessKillTest.java +++ b/gclc-process/src/test/java/net/bigeon/gclc/process/ProcessKillTest.java @@ -7,8 +7,6 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.fail; -import java.io.IOException; - import org.junit.Test; import net.bigeon.gclc.exception.CommandRunException; @@ -30,8 +28,7 @@ public class ProcessKillTest { /** Test method for * {@link net.bigeon.gclc.process.ProcessKill#execute(net.bigeon.gclc.manager.ConsoleOutput, net.bigeon.gclc.manager.ConsoleInput, java.lang.String[])}. * - * @throws CommandRunException if an error occured in test - * @throws IOException if an error occured with the console output */ + * @throws CommandRunException if an error occured in test */ @Test public void testExecute() throws CommandRunException { final TaskPool pool = new TaskPool(); diff --git a/gclc-process/src/test/java/net/bigeon/gclc/process/mocks/ForkTaskMock.java b/gclc-process/src/test/java/net/bigeon/gclc/process/mocks/ForkTaskMock.java index 5124749..9904d71 100644 --- a/gclc-process/src/test/java/net/bigeon/gclc/process/mocks/ForkTaskMock.java +++ b/gclc-process/src/test/java/net/bigeon/gclc/process/mocks/ForkTaskMock.java @@ -15,7 +15,7 @@ public class ForkTaskMock extends ForkTask implements Task { private int runCall = 0; - /** @param lines */ + /** Default constructor. */ public ForkTaskMock() { super(10); } diff --git a/gclc-process/src/test/java/net/bigeon/gclc/process/mocks/TaskMock.java b/gclc-process/src/test/java/net/bigeon/gclc/process/mocks/TaskMock.java index a11c215..ebc5b42 100644 --- a/gclc-process/src/test/java/net/bigeon/gclc/process/mocks/TaskMock.java +++ b/gclc-process/src/test/java/net/bigeon/gclc/process/mocks/TaskMock.java @@ -49,8 +49,8 @@ public class TaskMock implements Task { setRunningCall = 0; } - /** @return */ - public Object getNumberSetRunning() { + /** @return the number of calls to set running method */ + public int getNumberSetRunning() { return setRunningCall; } diff --git a/gclc.system/src/test/java/net/bigeon/gclc/system/ExecSystemCommandTest.java b/gclc.system/src/test/java/net/bigeon/gclc/system/ExecSystemCommandTest.java index 3f0a492..11538f2 100644 --- a/gclc.system/src/test/java/net/bigeon/gclc/system/ExecSystemCommandTest.java +++ b/gclc.system/src/test/java/net/bigeon/gclc/system/ExecSystemCommandTest.java @@ -59,7 +59,7 @@ public class ExecSystemCommandTest { /** Test the execution of the command. * - * @throws CommandRunException */ + * @throws CommandRunException if the command fails */ @Test public void testExecute() throws CommandRunException { final ConsoleOutput out = SinkOutput.INSTANCE;