blob: 8cfa49e7d339561cc225f1211ea3fa809cfb0f28 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package cuchaz.enigma.command;
import java.io.File;
import org.junit.Test;
public class CheckMappingsCommandTest {
private static final String PACKAGE_ACCESS = "../enigma/build/test-obf/packageAccess.jar";
@Test(expected = IllegalStateException.class)
public void testWrong() throws Exception {
new CheckMappingsCommand().run(new File(PACKAGE_ACCESS).getAbsolutePath(), new File("src/test/resources" + "/packageAccess/wrongMappings").getAbsolutePath());
}
@Test
public void testRight() throws Exception {
new CheckMappingsCommand().run(new File(PACKAGE_ACCESS).getAbsolutePath(), new File("src/test/resources" + "/packageAccess/correctMappings").getAbsolutePath());
}
}
|