summaryrefslogtreecommitdiff
path: root/src/test/java/cuchaz/enigma/command/CheckMappingsCommandTest.java
blob: f3b9f85e3f3b4b9192db4450b8320732720f8a4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package cuchaz.enigma.command;

import org.junit.Test;

import java.io.File;

public class CheckMappingsCommandTest {

	@Test(expected = IllegalStateException.class)
	public void testWrong() throws Exception {
		new CheckMappingsCommand().run(new File("build/test-obf/packageAccess.jar").getAbsolutePath(), new File("src/test/resources" +
				"/packageAccess/wrongMappings").getAbsolutePath());
	}

	@Test
	public void testRight() throws Exception {
		new CheckMappingsCommand().run(new File("build/test-obf/packageAccess.jar").getAbsolutePath(), new File("src/test/resources" +
				"/packageAccess/correctMappings").getAbsolutePath());
	}
}