Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lynxplay committed Dec 18, 2024
1 parent af7ec81 commit d37385e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
public C1
3 changes: 3 additions & 0 deletions tests/data/accesstransformer/hidden_prefix/expected/C1.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
public class C1 {
C1() {}
}
2 changes: 2 additions & 0 deletions tests/data/accesstransformer/hidden_prefix/source/C1.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class C1 {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package other;

final class C2f {

}
5 changes: 5 additions & 0 deletions tests/src/test/java/net/neoforged/jst/tests/EmbeddedTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,11 @@ void testMethodsNoInheritance() throws Exception {
void testMethodsInheritance() throws Exception {
runATTest("methods_inheritance", "--access-transformer-inherit-method");
}

@Test
void testHiddenPrefixes() throws Exception {
runATTest("hidden_prefix", "--hidden-prefix=other");
}
}

@Nested
Expand Down

0 comments on commit d37385e

Please sign in to comment.