Skip to content

Commit

Permalink
Add inner class to write test
Browse files Browse the repository at this point in the history
  • Loading branch information
NebelNidas committed Sep 20, 2023
1 parent 6862946 commit 1ee2dcc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/test/java/net/fabricmc/mappingio/WriteTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,14 @@ public static void setup() throws Exception {
tree.visitMethodVar(0, 0, 0, 0, "param_1");
tree.visitDstName(MappedElementKind.METHOD_VAR, 0, "renamedVariable");

tree.visitClass("class_2");
tree.visitDstName(MappedElementKind.CLASS, 0, "RenamedClass2");
tree.visitClass("class_1$class_2");
tree.visitDstName(MappedElementKind.CLASS, 0, "RenamedInnerClass2");

tree.visitField("field_1", "I");
tree.visitDstName(MappedElementKind.FIELD, 0, "renamedField2");

tree.visitClass("class_3");
tree.visitDstName(MappedElementKind.CLASS, 0, "RenamedClass3");
}

@Test
Expand Down

0 comments on commit 1ee2dcc

Please sign in to comment.