From ee07ad6c4c2592400e5f052ccb8c8e6d053032eb Mon Sep 17 00:00:00 2001 From: Ramid Khan Date: Wed, 22 Nov 2023 22:58:41 +1100 Subject: [PATCH] simple moving external class test, same package, no nesting --- .../github/astrarre/sfu/test/RemappingTests.java | 1 + .../classpath/move_external_class_simple.jar | Bin 0 -> 613 bytes .../mappings/move_external_class_simple.tiny | 3 +++ .../original/move_external_class_simple/A.java | 7 +++++++ .../remapped/move_external_class_simple/A.java | 7 +++++++ .../sourcepath/move_external_class_simple.jar | Bin 0 -> 511 bytes 6 files changed, 18 insertions(+) create mode 100644 src/test/resources/classpath/move_external_class_simple.jar create mode 100644 src/test/resources/mappings/move_external_class_simple.tiny create mode 100644 src/test/resources/original/move_external_class_simple/A.java create mode 100644 src/test/resources/remapped/move_external_class_simple/A.java create mode 100644 src/test/resources/sourcepath/move_external_class_simple.jar 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 0000000000000000000000000000000000000000..7c064424c718021ad53aabd3aefeb090ca70dc8d GIT binary patch literal 613 zcmWIWW@Zs#;Nak3Sea55&VU3s8CV#6T|*poJ^kGD|D9rBU}gyLX6FE@V1gU28&4QG{#oZIbO!aK_-!7iN0$^ zW^svLa!z7#vGv#d>vn8xY|(6SdTeTJX=Q9;a%^F2W^QbaYmRJk`8(&xo|4-COV(U@ zBIL$qHv7z;GeXvGY-zk_4a(T~+}Qfg2-RNiI+L_OrMtM!OG}w~zkgcXs`$*jpsYZT zq#(Y47Hy0DTQn@M>I$D>Tz!ps=Gg@&4)AReVv%SR$k3edgymDp!5TKUu(fY_dZZ6t zigB34t8;=!WoM&_Ff%{cW0^Ci%gqHkdpFo)j7%a7sPO^|bWpsY0(d}!Vky8IRV#9M vfno&#Y=KO;R-`yWHUSi_$PNRAD+25VGEqZ0z?+o~B+m?lJAw2xMi37Gvb&Za literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..6dd43d52ebb66f01d2ec2f7230b74b3b25c842f8 GIT binary patch literal 511 zcmWIWW@Zs#;Nak3c$88W&VU3s8CV#6T|*poJ^kGD|D9rBU}gyLX6FE@V1gU28&4QG{#oZIbO!aK_-`A)st=erZv1 zYO#JuMrK~RURGjRqPB<6IX@r&P>pl?x?X;|+nznr((pZX(kJZ18EsEpFK-{eP>z!) z&UlBfc(&>(6WF>VC0Y;lfrjaVtz%>oVL%NnSWtjM3l+e<4+^^gZ&a