diff options
Diffstat (limited to 'src/test/java/cuchaz/enigma/mapping/TestTinyV2InnerClasses.java')
| -rw-r--r-- | src/test/java/cuchaz/enigma/mapping/TestTinyV2InnerClasses.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/test/java/cuchaz/enigma/mapping/TestTinyV2InnerClasses.java b/src/test/java/cuchaz/enigma/mapping/TestTinyV2InnerClasses.java new file mode 100644 index 0000000..7cfdaca --- /dev/null +++ b/src/test/java/cuchaz/enigma/mapping/TestTinyV2InnerClasses.java | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /******************************************************************************* | ||
| 2 | * Copyright (c) 2015 Jeff Martin. | ||
| 3 | * All rights reserved. This program and the accompanying materials | ||
| 4 | * are made available under the terms of the GNU Lesser General Public | ||
| 5 | * License v3.0 which accompanies this distribution, and is available at | ||
| 6 | * http://www.gnu.org/licenses/lgpl.html | ||
| 7 | * | ||
| 8 | * Contributors: | ||
| 9 | * Jeff Martin - initial API and implementation | ||
| 10 | ******************************************************************************/ | ||
| 11 | |||
| 12 | package cuchaz.enigma.mapping; | ||
| 13 | |||
| 14 | import cuchaz.enigma.Enigma; | ||
| 15 | import cuchaz.enigma.EnigmaProject; | ||
| 16 | import cuchaz.enigma.ProgressListener; | ||
| 17 | import cuchaz.enigma.translation.mapping.serde.EnigmaMappingsReader; | ||
| 18 | import cuchaz.enigma.translation.representation.entry.ClassEntry; | ||
| 19 | import org.junit.Test; | ||
| 20 | |||
| 21 | import java.nio.file.Path; | ||
| 22 | import java.nio.file.Paths; | ||
| 23 | |||
| 24 | import static cuchaz.enigma.TestEntryFactory.newClass; | ||
| 25 | |||
| 26 | public final class TestTinyV2InnerClasses { | ||
| 27 | private Path jar; | ||
| 28 | private Path mappings; | ||
| 29 | |||
| 30 | public TestTinyV2InnerClasses() throws Exception { | ||
| 31 | jar = Paths.get("build/test-obf/innerClasses.jar"); | ||
| 32 | mappings = Paths.get(TestTinyV2InnerClasses.class.getResource("/tinyV2InnerClasses/").toURI()); | ||
| 33 | } | ||
| 34 | |||
| 35 | // @Test | ||
| 36 | public void testMappings() throws Exception { | ||
| 37 | EnigmaProject project = Enigma.create().openJar(jar, ProgressListener.none()); | ||
| 38 | project.setMappings(EnigmaMappingsReader.DIRECTORY.read(mappings, ProgressListener.none(), project.getEnigma().getProfile().getMappingSaveParameters())); | ||
| 39 | |||
| 40 | } | ||
| 41 | } | ||