diff options
| author | 2023-10-09 14:22:40 +0200 | |
|---|---|---|
| committer | 2023-10-09 14:22:40 +0200 | |
| commit | 75c6da42ca360084b57f7a384cd4a7bf93bdea0a (patch) | |
| tree | 801954ee9c7cd12f244d14aabad81d0f4920d9cc /enigma/src/test | |
| parent | Use `VisitableMappingTree` where possible (diff) | |
| download | enigma-fork-75c6da42ca360084b57f7a384cd4a7bf93bdea0a.tar.gz enigma-fork-75c6da42ca360084b57f7a384cd4a7bf93bdea0a.tar.xz enigma-fork-75c6da42ca360084b57f7a384cd4a7bf93bdea0a.zip | |
Use System Property for Mapping-IO
Diffstat (limited to 'enigma/src/test')
| -rw-r--r-- | enigma/src/test/java/cuchaz/enigma/translation/mapping/TestReadWriteCycle.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/enigma/src/test/java/cuchaz/enigma/translation/mapping/TestReadWriteCycle.java b/enigma/src/test/java/cuchaz/enigma/translation/mapping/TestReadWriteCycle.java index 681fd3f..34d5a6e 100644 --- a/enigma/src/test/java/cuchaz/enigma/translation/mapping/TestReadWriteCycle.java +++ b/enigma/src/test/java/cuchaz/enigma/translation/mapping/TestReadWriteCycle.java | |||
| @@ -4,6 +4,7 @@ import java.io.File; | |||
| 4 | import java.io.IOException; | 4 | import java.io.IOException; |
| 5 | 5 | ||
| 6 | import org.junit.Assert; | 6 | import org.junit.Assert; |
| 7 | import org.junit.BeforeClass; | ||
| 7 | import org.junit.Test; | 8 | import org.junit.Test; |
| 8 | 9 | ||
| 9 | import cuchaz.enigma.ProgressListener; | 10 | import cuchaz.enigma.ProgressListener; |
| @@ -87,6 +88,11 @@ public class TestReadWriteCycle { | |||
| 87 | tempFile.delete(); | 88 | tempFile.delete(); |
| 88 | } | 89 | } |
| 89 | 90 | ||
| 91 | @BeforeClass | ||
| 92 | public static void setup() { | ||
| 93 | System.getProperties().setProperty("enigma.use_mappingio", "false"); | ||
| 94 | } | ||
| 95 | |||
| 90 | @Test | 96 | @Test |
| 91 | public void testEnigmaFile() throws IOException, MappingParseException { | 97 | public void testEnigmaFile() throws IOException, MappingParseException { |
| 92 | testReadWriteCycle(MappingFormat.ENIGMA_FILE, true, ".enigma"); | 98 | testReadWriteCycle(MappingFormat.ENIGMA_FILE, true, ".enigma"); |