Skip to content

Commit d37385e

Browse files
committed
Add tests
1 parent af7ec81 commit d37385e

File tree

5 files changed

+16
-0
lines changed

5 files changed

+16
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public C1
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
public class C1 {
2+
C1() {}
3+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class C1 {
2+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package other;
2+
3+
final class C2f {
4+
5+
}

tests/src/test/java/net/neoforged/jst/tests/EmbeddedTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,11 @@ void testMethodsNoInheritance() throws Exception {
297297
void testMethodsInheritance() throws Exception {
298298
runATTest("methods_inheritance", "--access-transformer-inherit-method");
299299
}
300+
301+
@Test
302+
void testHiddenPrefixes() throws Exception {
303+
runATTest("hidden_prefix", "--hidden-prefix=other");
304+
}
300305
}
301306

302307
@Nested

0 commit comments

Comments
 (0)