8155774: move code from ModuleTestBase to toolbox

Reviewed-by: ksrini, jlahoda
This commit is contained in:
Jonathan Gibbons 2016-05-02 16:17:39 -07:00
parent 5950e361a2
commit 325a065aff
43 changed files with 455 additions and 385 deletions

View file

@ -46,7 +46,7 @@ public class ReportNonExistentPackageTest extends ModuleTestBase {
}
@Test
void testExportUnknownPackage(Path base) throws Exception {
public void testExportUnknownPackage(Path base) throws Exception {
Path src = base.resolve("src");
tb.writeJavaFiles(src, "module m { exports p1; }");
Path classes = base.resolve("classes");
@ -64,7 +64,7 @@ public class ReportNonExistentPackageTest extends ModuleTestBase {
}
@Test
void testExportEmptyPackage(Path base) throws Exception {
public void testExportEmptyPackage(Path base) throws Exception {
Path src = base.resolve("src");
tb.writeJavaFiles(src,
"module m { exports p1; }",
@ -84,7 +84,7 @@ public class ReportNonExistentPackageTest extends ModuleTestBase {
}
@Test
void testPackageWithMemberWOPackageDeclaration(Path base) throws Exception {
public void testPackageWithMemberWOPackageDeclaration(Path base) throws Exception {
Path src = base.resolve("src");
tb.writeJavaFiles(src, "module m { exports p1; }");
Path p1 = src.resolve("p1");