Compare commits

..

No commits in common. "master" and "gclc-2.1.5" have entirely different histories.

9 changed files with 27 additions and 27 deletions

View File

@ -3,7 +3,7 @@
<parent>
<groupId>net.bigeon.config</groupId>
<artifactId>ebigeon-config</artifactId>
<version>1.8.33</version>
<version>1.8.29</version>
</parent>
<groupId>net.bigeon.gclc</groupId>
@ -49,7 +49,7 @@
<dependency>
<groupId>net.bigeon</groupId>
<artifactId>gclc</artifactId>
<version>2.1.5</version>
<version>2.1.2</version>
</dependency>
<dependency>
<groupId>net.bigeon.test</groupId>

View File

@ -46,7 +46,7 @@
<dependency>
<groupId>net.bigeon</groupId>
<artifactId>gclc</artifactId>
<version>2.1.5</version>
<version>2.1.2</version>
</dependency>
<dependency>
<groupId>net.bigeon</groupId>

View File

@ -7,7 +7,7 @@
</parent>
<groupId>net.bigeon.gclc</groupId>
<artifactId>swt</artifactId>
<version>1.2.2-SNAPSHOT</version>
<version>1.2.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>GCLC swt</name>
<description>A swt window for console applications</description>
@ -48,7 +48,7 @@
<dependency>
<groupId>net.bigeon</groupId>
<artifactId>gclc</artifactId>
<version>2.1.5</version>
<version>2.1.2</version>
</dependency>
<dependency>
<groupId>net.bigeon</groupId>
@ -58,7 +58,7 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.15.2</version>
<version>4.3.1</version>
<scope>test</scope>
</dependency>
</dependencies>

View File

@ -6,8 +6,8 @@ package net.bigeon.gclc.swt.tools;
import org.eclipse.swt.widgets.Widget;
import net.bigeon.gclc.manager.PipedConsoleOutput;
import net.bigeon.gclc.manager.forwarding.AOutputForwardRunnable;
import net.bigeon.gclc.swt.api.ConsoleOutputDisplay;
import net.bigeon.gclc.tools.AOutputForwardRunnable;
/** The local implementation of the forwarding runnable.
*

View File

@ -5,7 +5,7 @@
<parent>
<groupId>net.bigeon.config</groupId>
<artifactId>ebigeon-config</artifactId>
<version>1.8.33</version>
<version>1.8.29</version>
</parent>
<groupId>net.bigeon.gclc</groupId>
<artifactId>test</artifactId>
@ -49,7 +49,7 @@
<dependency>
<groupId>net.bigeon</groupId>
<artifactId>gclc</artifactId>
<version>2.1.5</version>
<version>2.1.2</version>
</dependency>
<dependency>
<groupId>junit</groupId>

View File

@ -3,7 +3,7 @@
<parent>
<groupId>net.bigeon.config</groupId>
<artifactId>ebigeon-config</artifactId>
<version>1.8.33</version>
<version>1.8.29</version>
</parent>
<groupId>net.bigeon.gclc</groupId>
<artifactId>system</artifactId>
@ -48,12 +48,12 @@
<dependency>
<groupId>net.bigeon</groupId>
<artifactId>gclc</artifactId>
<version>2.1.5</version>
<version>2.1.2</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.15.2</version>
<version>4.3.1</version>
<scope>test</scope>
</dependency>
</dependencies>

View File

@ -33,11 +33,11 @@ package net.bigeon.gclc.system;
* knowledge of the CeCILL license and that you accept its terms.
* #L%
*/
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.fail;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import net.bigeon.gclc.exception.CommandRunException;
import net.bigeon.gclc.manager.ConsoleInput;
@ -51,10 +51,10 @@ public class ExecSystemCommandTest {
@Test
public void testExecSystemCommand() {
final ExecSystemCommand cmd = new ExecSystemCommand("test");
assertEquals("test", cmd.getCommandName(), "Name should be preserved");
assertNotNull(cmd.tip(), "tip should be defined");
assertNotNull(cmd.usagePattern(), "usage should be defined");
assertNotNull(cmd.usageDetail(), "usage should be detailed");
assertEquals("Name should be preserved", "test", cmd.getCommandName());
assertNotNull("tip should be defined", cmd.tip());
assertNotNull("usage should be defined", cmd.usagePattern());
assertNotNull("usage should be defined", cmd.usageDetail());
}
/** Test the execution of the command.

View File

@ -3,13 +3,13 @@
*/
package net.bigeon.gclc.system;
import static org.junit.jupiter.api.Assertions.assertInstanceOf;
import static org.junit.Assert.assertTrue;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.mockito.Mockito;
import net.bigeon.gclc.exception.CommandRunException;
@ -27,8 +27,8 @@ public class ForwardingRunnableTest {
// Runnable should close immediatly.
runnable.run();
assertInstanceOf(CommandRunException.class, runnable.getError(),
"Error should be a CommandRunException");
assertTrue("Error should be a CommandRunException",
runnable.getError() instanceof CommandRunException);
}
@Test
@ -39,6 +39,6 @@ public class ForwardingRunnableTest {
is);
// Runnable should close immediatly.
runnable.run();
assertInstanceOf(IOException.class, runnable.getError(), "Error should be an IO");
assertTrue("Error should be an IO", runnable.getError() instanceof IOException);
}
}

View File

@ -8,7 +8,7 @@
</parent>
<groupId>net.bigeon</groupId>
<artifactId>gclc</artifactId>
<version>2.1.6-SNAPSHOT</version>
<version>2.1.5</version>
<packaging>jar</packaging>
<name>Generic Command Ligne console</name>
<description>A generic framework for console applications, with customized command input and output streams.</description>
@ -37,7 +37,7 @@
</developers>
<scm>
<developerConnection>scm:git:gitea@git.code.bigeon.net:emmanuel/gclc-core.git</developerConnection>
<tag>HEAD</tag>
<tag>gclc-2.1.5</tag>
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>