summaryrefslogtreecommitdiff
path: root/enigma-cli/src/test/java/cuchaz
diff options
context:
space:
mode:
Diffstat (limited to 'enigma-cli/src/test/java/cuchaz')
-rw-r--r--enigma-cli/src/test/java/cuchaz/enigma/command/CheckMappingsCommandTest.java10
1 files changed, 4 insertions, 6 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
index a29bba4..8cfa49e 100644
--- a/enigma-cli/src/test/java/cuchaz/enigma/command/CheckMappingsCommandTest.java
+++ b/enigma-cli/src/test/java/cuchaz/enigma/command/CheckMappingsCommandTest.java
@@ -1,21 +1,19 @@
1package cuchaz.enigma.command; 1package cuchaz.enigma.command;
2 2
3import org.junit.Test;
4
5import java.io.File; 3import java.io.File;
6 4
5import org.junit.Test;
6
7public class CheckMappingsCommandTest { 7public class CheckMappingsCommandTest {
8 private static final String PACKAGE_ACCESS = "../enigma/build/test-obf/packageAccess.jar"; 8 private static final String PACKAGE_ACCESS = "../enigma/build/test-obf/packageAccess.jar";
9 9
10 @Test(expected = IllegalStateException.class) 10 @Test(expected = IllegalStateException.class)
11 public void testWrong() throws Exception { 11 public void testWrong() throws Exception {
12 new CheckMappingsCommand().run(new File(PACKAGE_ACCESS).getAbsolutePath(), new File("src/test/resources" + 12 new CheckMappingsCommand().run(new File(PACKAGE_ACCESS).getAbsolutePath(), new File("src/test/resources" + "/packageAccess/wrongMappings").getAbsolutePath());
13 "/packageAccess/wrongMappings").getAbsolutePath());
14 } 13 }
15 14
16 @Test 15 @Test
17 public void testRight() throws Exception { 16 public void testRight() throws Exception {
18 new CheckMappingsCommand().run(new File(PACKAGE_ACCESS).getAbsolutePath(), new File("src/test/resources" + 17 new CheckMappingsCommand().run(new File(PACKAGE_ACCESS).getAbsolutePath(), new File("src/test/resources" + "/packageAccess/correctMappings").getAbsolutePath());
19 "/packageAccess/correctMappings").getAbsolutePath());
20 } 18 }
21} 19}