Compare commits
61 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 840cae6a92 | |||
| 270ee839a4 | |||
| 87c6e3dfda | |||
| eb6e0162fb | |||
| 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 |
@@ -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.34</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<groupId>net.bigeon.gclc</groupId>
|
<groupId>net.bigeon.gclc</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</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>
|
||||||
@@ -36,7 +36,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>swt-1.2.1</tag>
|
<tag>HEAD</tag>
|
||||||
</scm>
|
</scm>
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.mockito</groupId>
|
<groupId>org.mockito</groupId>
|
||||||
<artifactId>mockito-core</artifactId>
|
<artifactId>mockito-core</artifactId>
|
||||||
<version>4.7.0</version>
|
<version>5.15.2</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@@ -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.34</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>net.bigeon.gclc</groupId>
|
<groupId>net.bigeon.gclc</groupId>
|
||||||
<artifactId>test</artifactId>
|
<artifactId>test</artifactId>
|
||||||
|
|||||||
@@ -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.34</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>net.bigeon.gclc</groupId>
|
<groupId>net.bigeon.gclc</groupId>
|
||||||
<artifactId>system</artifactId>
|
<artifactId>system</artifactId>
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.mockito</groupId>
|
<groupId>org.mockito</groupId>
|
||||||
<artifactId>mockito-core</artifactId>
|
<artifactId>mockito-core</artifactId>
|
||||||
<version>4.7.0</version>
|
<version>5.21.0</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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user