MCPcopy Index your code
hub / github.com/Col-E/Recaf / setup

Method setup

src/test/java/me/coley/recaf/RemappingTest.java:36–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 private Path methodJadxMapFile;
35
36 @BeforeEach
37 public void setup() {
38 try {
39 resource = new JarResource(getClasspathFile("inherit.jar"));
40 workspace = new Workspace(resource);
41 classMapFile = getClasspathFile("inherit-class-map.txt");
42 /*
43 test/Jedi -> rename/GoodGuy
44 test/Sith -> rename/BadGuy
45 test/Greetings -> rename/Hello
46 */
47 methodMapFile = getClasspathFile("inherit-method-map.txt");
48 methodEnigmaMapFile = getClasspathFile("inherit-method-map-enigma.txt");
49 methodProguardMapFile = getClasspathFile("inherit-method-map-proguard.txt");
50 methodTSrgMapFile = getClasspathFile("inherit-method-map-tsrg.txt");
51 methodTiny1MapFile = getClasspathFile("inherit-method-map-tiny-1.txt");
52 methodTiny2MapFile = getClasspathFile("inherit-method-map-tiny-2.txt");
53 methodJadxMapFile = getClasspathFile("inherit-method-map-jadx.txt");
54 /*
55 test/Greetings -> rename/Hello
56 test/Greetings.say()V -> rename/Hello.speak()
57 */
58 } catch(IOException ex) {
59 fail(ex);
60 }
61 }
62
63 @Test
64 public void testRenamedClasses() {

Callers

nothing calls this directly

Calls 1

getClasspathFileMethod · 0.80

Tested by

no test coverage detected