diff options
| author | 2020-06-03 13:39:42 -0400 | |
|---|---|---|
| committer | 2020-06-03 18:39:42 +0100 | |
| commit | 0f47403d0220757fed189b76e2071e25b1025cb8 (patch) | |
| tree | 879bf72c4476f0a5e0d82da99d7ff2b2276bcaca /enigma-cli/src/test/java/cuchaz | |
| parent | Fix search dialog hanging for a short time sometimes (#250) (diff) | |
| download | enigma-0f47403d0220757fed189b76e2071e25b1025cb8.tar.gz enigma-0f47403d0220757fed189b76e2071e25b1025cb8.tar.xz enigma-0f47403d0220757fed189b76e2071e25b1025cb8.zip | |
Split GUI code to separate module (#242)
* Split into modules
* Post merge compile fixes
Co-authored-by: modmuss50 <modmuss50@gmail.com>
Diffstat (limited to 'enigma-cli/src/test/java/cuchaz')
| -rw-r--r-- | enigma-cli/src/test/java/cuchaz/enigma/command/CheckMappingsCommandTest.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/enigma-cli/src/test/java/cuchaz/enigma/command/CheckMappingsCommandTest.java b/enigma-cli/src/test/java/cuchaz/enigma/command/CheckMappingsCommandTest.java new file mode 100644 index 00000000..a29bba40 --- /dev/null +++ b/enigma-cli/src/test/java/cuchaz/enigma/command/CheckMappingsCommandTest.java | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | package cuchaz.enigma.command; | ||
| 2 | |||
| 3 | import org.junit.Test; | ||
| 4 | |||
| 5 | import java.io.File; | ||
| 6 | |||
| 7 | public class CheckMappingsCommandTest { | ||
| 8 | private static final String PACKAGE_ACCESS = "../enigma/build/test-obf/packageAccess.jar"; | ||
| 9 | |||
| 10 | @Test(expected = IllegalStateException.class) | ||
| 11 | public void testWrong() throws Exception { | ||
| 12 | new CheckMappingsCommand().run(new File(PACKAGE_ACCESS).getAbsolutePath(), new File("src/test/resources" + | ||
| 13 | "/packageAccess/wrongMappings").getAbsolutePath()); | ||
| 14 | } | ||
| 15 | |||
| 16 | @Test | ||
| 17 | public void testRight() throws Exception { | ||
| 18 | new CheckMappingsCommand().run(new File(PACKAGE_ACCESS).getAbsolutePath(), new File("src/test/resources" + | ||
| 19 | "/packageAccess/correctMappings").getAbsolutePath()); | ||
| 20 | } | ||
| 21 | } | ||