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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,13 +3,13 @@
*/ */
package net.bigeon.gclc.system; 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.ByteArrayInputStream;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import org.junit.jupiter.api.Test; import org.junit.Test;
import org.mockito.Mockito; import org.mockito.Mockito;
import net.bigeon.gclc.exception.CommandRunException; import net.bigeon.gclc.exception.CommandRunException;
@ -27,8 +27,8 @@ public class ForwardingRunnableTest {
// Runnable should close immediatly. // Runnable should close immediatly.
runnable.run(); runnable.run();
assertInstanceOf(CommandRunException.class, runnable.getError(), assertTrue("Error should be a CommandRunException",
"Error should be a CommandRunException"); runnable.getError() instanceof CommandRunException);
} }
@Test @Test
@ -39,6 +39,6 @@ public class ForwardingRunnableTest {
is); is);
// Runnable should close immediatly. // Runnable should close immediatly.
runnable.run(); 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> </parent>
<groupId>net.bigeon</groupId> <groupId>net.bigeon</groupId>
<artifactId>gclc</artifactId> <artifactId>gclc</artifactId>
<version>2.1.6-SNAPSHOT</version> <version>2.1.5</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>Generic Command Ligne console</name> <name>Generic Command Ligne console</name>
<description>A generic framework for console applications, with customized command input and output streams.</description> <description>A generic framework for console applications, with customized command input and output streams.</description>
@ -37,7 +37,7 @@
</developers> </developers>
<scm> <scm>
<developerConnection>scm:git:gitea@git.code.bigeon.net:emmanuel/gclc-core.git</developerConnection> <developerConnection>scm:git:gitea@git.code.bigeon.net:emmanuel/gclc-core.git</developerConnection>
<tag>HEAD</tag> <tag>gclc-2.1.5</tag>
</scm> </scm>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>