mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8155774: move code from ModuleTestBase to toolbox
Reviewed-by: ksrini, jlahoda
This commit is contained in:
parent
5950e361a2
commit
325a065aff
43 changed files with 455 additions and 385 deletions
|
@ -45,7 +45,7 @@ public class ResolveTest extends ModuleTestBase {
|
|||
}
|
||||
|
||||
@Test
|
||||
void testMissingSimpleTypeUnnamedModule(Path base) throws Exception {
|
||||
public void testMissingSimpleTypeUnnamedModule(Path base) throws Exception {
|
||||
Path src = base.resolve("src");
|
||||
tb.writeJavaFiles(src, "class C { D d; }");
|
||||
|
||||
|
@ -62,7 +62,7 @@ public class ResolveTest extends ModuleTestBase {
|
|||
}
|
||||
|
||||
@Test
|
||||
void testMissingSimpleTypeNamedModule(Path base) throws Exception {
|
||||
public void testMissingSimpleTypeNamedModule(Path base) throws Exception {
|
||||
Path src = base.resolve("src");
|
||||
tb.writeJavaFiles(src,
|
||||
"module m { }",
|
||||
|
@ -81,7 +81,7 @@ public class ResolveTest extends ModuleTestBase {
|
|||
}
|
||||
|
||||
@Test
|
||||
void testUnexportedTypeUnreadableModule(Path base) throws Exception {
|
||||
public void testUnexportedTypeUnreadableModule(Path base) throws Exception {
|
||||
Path src = base.resolve("src");
|
||||
tb.writeJavaFiles(src.resolve("m1"),
|
||||
"module m1 { }",
|
||||
|
@ -105,7 +105,7 @@ public class ResolveTest extends ModuleTestBase {
|
|||
}
|
||||
|
||||
@Test
|
||||
void testUnexportedTypeReadableModule(Path base) throws Exception {
|
||||
public void testUnexportedTypeReadableModule(Path base) throws Exception {
|
||||
Path src = base.resolve("src");
|
||||
tb.writeJavaFiles(src.resolve("m1"),
|
||||
"module m1 { }",
|
||||
|
@ -129,7 +129,7 @@ public class ResolveTest extends ModuleTestBase {
|
|||
}
|
||||
|
||||
@Test
|
||||
void testQualifiedExportedTypeReadableModule(Path base) throws Exception {
|
||||
public void testQualifiedExportedTypeReadableModule(Path base) throws Exception {
|
||||
Path src = base.resolve("src");
|
||||
tb.writeJavaFiles(src.resolve("m1"),
|
||||
"module m1 { exports p1 to m3; }",
|
||||
|
@ -155,7 +155,7 @@ public class ResolveTest extends ModuleTestBase {
|
|||
}
|
||||
|
||||
@Test
|
||||
void testExportedTypeUnreadableModule(Path base) throws Exception {
|
||||
public void testExportedTypeUnreadableModule(Path base) throws Exception {
|
||||
Path src = base.resolve("src");
|
||||
tb.writeJavaFiles(src.resolve("m1"),
|
||||
"module m1 { exports p1; }",
|
||||
|
@ -179,7 +179,7 @@ public class ResolveTest extends ModuleTestBase {
|
|||
}
|
||||
|
||||
@Test
|
||||
void testExportedTypeReadableModule(Path base) throws Exception {
|
||||
public void testExportedTypeReadableModule(Path base) throws Exception {
|
||||
Path src = base.resolve("src");
|
||||
tb.writeJavaFiles(src.resolve("m1"),
|
||||
"module m1 { exports p1; }",
|
||||
|
@ -199,7 +199,7 @@ public class ResolveTest extends ModuleTestBase {
|
|||
}
|
||||
|
||||
@Test
|
||||
void testExportedTypeReadableModule2(Path base) throws Exception {
|
||||
public void testExportedTypeReadableModule2(Path base) throws Exception {
|
||||
Path src = base.resolve("src");
|
||||
tb.writeJavaFiles(src.resolve("m1"),
|
||||
"module m1 { exports p1 to m2; }",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue