diff --git a/src/test/java/io/github/astrarre/sfu/test/RemappingTests.java b/src/test/java/io/github/astrarre/sfu/test/RemappingTests.java index 3e3676c..dadf99c 100644 --- a/src/test/java/io/github/astrarre/sfu/test/RemappingTests.java +++ b/src/test/java/io/github/astrarre/sfu/test/RemappingTests.java @@ -32,6 +32,7 @@ public RemappingTests() throws IOException { @ValueSource(strings = { "fields", "verbatim", + "move_external_class_simple", }) public void remap(String testCase) throws IOException { Path original = originals.resolve(testCase); diff --git a/src/test/resources/classpath/move_external_class_simple.jar b/src/test/resources/classpath/move_external_class_simple.jar new file mode 100644 index 0000000..7c06442 Binary files /dev/null and b/src/test/resources/classpath/move_external_class_simple.jar differ diff --git a/src/test/resources/mappings/move_external_class_simple.tiny b/src/test/resources/mappings/move_external_class_simple.tiny new file mode 100644 index 0000000..bc74788 --- /dev/null +++ b/src/test/resources/mappings/move_external_class_simple.tiny @@ -0,0 +1,3 @@ +tiny 2 0 a b +c it/Exist it/Exist2 +c sources/Thing sources/Thing2 diff --git a/src/test/resources/original/move_external_class_simple/A.java b/src/test/resources/original/move_external_class_simple/A.java new file mode 100644 index 0000000..caa10f8 --- /dev/null +++ b/src/test/resources/original/move_external_class_simple/A.java @@ -0,0 +1,7 @@ +import it.Exist; +import sources.Thing; + +// insert junk into this file; it should be converted almost 1 <=> 1 +public class A implements Thing { + Exist lol; +} diff --git a/src/test/resources/remapped/move_external_class_simple/A.java b/src/test/resources/remapped/move_external_class_simple/A.java new file mode 100644 index 0000000..0e0e618 --- /dev/null +++ b/src/test/resources/remapped/move_external_class_simple/A.java @@ -0,0 +1,7 @@ +import it.Exist2; +import sources.Thing2; + +// insert junk into this file; it should be converted almost 1 <=> 1 +public class A implements Thing2 { + Exist2 lol; +} diff --git a/src/test/resources/sourcepath/move_external_class_simple.jar b/src/test/resources/sourcepath/move_external_class_simple.jar new file mode 100644 index 0000000..6dd43d5 Binary files /dev/null and b/src/test/resources/sourcepath/move_external_class_simple.jar differ