diff options
Diffstat (limited to '')
| -rw-r--r-- | enigma-cli/src/test/java/cuchaz/enigma/command/CheckMappingsCommandTest.java (renamed from src/test/java/cuchaz/enigma/command/CheckMappingsCommandTest.java) | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/java/cuchaz/enigma/command/CheckMappingsCommandTest.java b/enigma-cli/src/test/java/cuchaz/enigma/command/CheckMappingsCommandTest.java index f3b9f85e..a29bba40 100644 --- a/src/test/java/cuchaz/enigma/command/CheckMappingsCommandTest.java +++ b/enigma-cli/src/test/java/cuchaz/enigma/command/CheckMappingsCommandTest.java | |||
| @@ -5,16 +5,17 @@ import org.junit.Test; | |||
| 5 | import java.io.File; | 5 | import java.io.File; |
| 6 | 6 | ||
| 7 | public class CheckMappingsCommandTest { | 7 | public class CheckMappingsCommandTest { |
| 8 | private static final String PACKAGE_ACCESS = "../enigma/build/test-obf/packageAccess.jar"; | ||
| 8 | 9 | ||
| 9 | @Test(expected = IllegalStateException.class) | 10 | @Test(expected = IllegalStateException.class) |
| 10 | public void testWrong() throws Exception { | 11 | public void testWrong() throws Exception { |
| 11 | new CheckMappingsCommand().run(new File("build/test-obf/packageAccess.jar").getAbsolutePath(), new File("src/test/resources" + | 12 | new CheckMappingsCommand().run(new File(PACKAGE_ACCESS).getAbsolutePath(), new File("src/test/resources" + |
| 12 | "/packageAccess/wrongMappings").getAbsolutePath()); | 13 | "/packageAccess/wrongMappings").getAbsolutePath()); |
| 13 | } | 14 | } |
| 14 | 15 | ||
| 15 | @Test | 16 | @Test |
| 16 | public void testRight() throws Exception { | 17 | public void testRight() throws Exception { |
| 17 | new CheckMappingsCommand().run(new File("build/test-obf/packageAccess.jar").getAbsolutePath(), new File("src/test/resources" + | 18 | new CheckMappingsCommand().run(new File(PACKAGE_ACCESS).getAbsolutePath(), new File("src/test/resources" + |
| 18 | "/packageAccess/correctMappings").getAbsolutePath()); | 19 | "/packageAccess/correctMappings").getAbsolutePath()); |
| 19 | } | 20 | } |
| 20 | } | 21 | } |