Compare commits
76 Commits
gclc-2.1.5
...
master
Author | SHA1 | Date | |
---|---|---|---|
1f8de26c2d | |||
2e041f5585 | |||
d3f633d2e4 | |||
aad8c04a4f | |||
69dd4ed41e | |||
ab7fe1759c | |||
69d9a052bc | |||
219c21ebcb | |||
85f53c9da9 | |||
79a9a50174 | |||
de9523cc82 | |||
4b169cfdf5 | |||
ca66c652cd | |||
![]() |
1f642ec91d | ||
8b0efef54f | |||
905c499c01 | |||
05a353d5a5 | |||
c7f2db9814 | |||
5e47a68169 | |||
14c4382560 | |||
e930f60d0e | |||
93dba8bea8 | |||
12370856e9 | |||
1c5f87aee1 | |||
57177d30c1 | |||
bdd1bec9ce | |||
cebb30965d | |||
63d21acb4f | |||
0c76ac826b | |||
4ba4cee1cf | |||
84176998a2 | |||
5e1dba6244 | |||
2a1c8393ba | |||
09635365a5 | |||
b7d86da484 | |||
021193b640 | |||
6a0f321e16 | |||
662ea7ddc0 | |||
c8a0897cbb | |||
9fa3bc7d10 | |||
992b3b9f09 | |||
3434210d0a | |||
bd33923aa7 | |||
e7f26bcb8c | |||
cbf0f79d91 | |||
82a3d260b9 | |||
5147c19bd2 | |||
e4260f591d | |||
a352538dbb | |||
c0fbcf44a3 | |||
7b88a2e4b4 | |||
62f637d73e | |||
3300344819 | |||
61da33e7fe | |||
5d3d5ce795 | |||
285d94460e | |||
2f76312c60 | |||
48d4db4086 | |||
6a7d1f4636 | |||
9748b14872 | |||
3219729b92 | |||
e8eb56287e | |||
6bc567d3b9 | |||
cf2a90d2b7 | |||
0dee4837ed | |||
d605ed7aa1 | |||
e570680ef8 | |||
8da0a10616 | |||
0839487620 | |||
e37e84019a | |||
bf593d4989 | |||
0f120f7330 | |||
52c76b4633 | |||
3393294ddc | |||
990b89848d | |||
a74a909011 |
@ -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.29</version>
|
<version>1.8.33</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.2</version>
|
<version>2.1.5</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.bigeon.test</groupId>
|
<groupId>net.bigeon.test</groupId>
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.bigeon</groupId>
|
<groupId>net.bigeon</groupId>
|
||||||
<artifactId>gclc</artifactId>
|
<artifactId>gclc</artifactId>
|
||||||
<version>2.1.2</version>
|
<version>2.1.5</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.bigeon</groupId>
|
<groupId>net.bigeon</groupId>
|
||||||
|
@ -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.1-SNAPSHOT</version>
|
<version>1.2.2-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.2</version>
|
<version>2.1.5</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>4.3.1</version>
|
<version>5.15.2</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
@ -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.
|
||||||
*
|
*
|
||||||
|
@ -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.29</version>
|
<version>1.8.33</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.2</version>
|
<version>2.1.5</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
|
@ -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.29</version>
|
<version>1.8.33</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.2</version>
|
<version>2.1.5</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.mockito</groupId>
|
<groupId>org.mockito</groupId>
|
||||||
<artifactId>mockito-core</artifactId>
|
<artifactId>mockito-core</artifactId>
|
||||||
<version>4.3.1</version>
|
<version>5.15.2</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
@ -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.Assert.assertEquals;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
import static org.junit.Assert.assertNotNull;
|
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||||
import static org.junit.Assert.fail;
|
import static org.junit.jupiter.api.Assertions.fail;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.jupiter.api.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("Name should be preserved", "test", cmd.getCommandName());
|
assertEquals("test", cmd.getCommandName(), "Name should be preserved");
|
||||||
assertNotNull("tip should be defined", cmd.tip());
|
assertNotNull(cmd.tip(), "tip should be defined");
|
||||||
assertNotNull("usage should be defined", cmd.usagePattern());
|
assertNotNull(cmd.usagePattern(), "usage should be defined");
|
||||||
assertNotNull("usage should be defined", cmd.usageDetail());
|
assertNotNull(cmd.usageDetail(), "usage should be detailed");
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Test the execution of the command.
|
/** Test the execution of the command.
|
||||||
|
@ -3,13 +3,13 @@
|
|||||||
*/
|
*/
|
||||||
package net.bigeon.gclc.system;
|
package net.bigeon.gclc.system;
|
||||||
|
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.jupiter.api.Assertions.assertInstanceOf;
|
||||||
|
|
||||||
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.Test;
|
import org.junit.jupiter.api.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();
|
||||||
|
|
||||||
assertTrue("Error should be a CommandRunException",
|
assertInstanceOf(CommandRunException.class, runnable.getError(),
|
||||||
runnable.getError() instanceof CommandRunException);
|
"Error should be a CommandRunException");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -39,6 +39,6 @@ public class ForwardingRunnableTest {
|
|||||||
is);
|
is);
|
||||||
// Runnable should close immediatly.
|
// Runnable should close immediatly.
|
||||||
runnable.run();
|
runnable.run();
|
||||||
assertTrue("Error should be an IO", runnable.getError() instanceof IOException);
|
assertInstanceOf(IOException.class, runnable.getError(), "Error should be an IO");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
</parent>
|
</parent>
|
||||||
<groupId>net.bigeon</groupId>
|
<groupId>net.bigeon</groupId>
|
||||||
<artifactId>gclc</artifactId>
|
<artifactId>gclc</artifactId>
|
||||||
<version>2.1.5</version>
|
<version>2.1.6-SNAPSHOT</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>gclc-2.1.5</tag>
|
<tag>HEAD</tag>
|
||||||
</scm>
|
</scm>
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
Loading…
Reference in New Issue
Block a user