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

@ -65,7 +65,7 @@ public class QueryBeforeEnter extends ModuleTestBase {
}
@Test
void testEmpty(Path base) throws Exception {
public void testEmpty(Path base) throws Exception {
JavaCompiler javaCompiler = ToolProvider.getSystemJavaCompiler();
com.sun.source.util.JavacTask task =
(com.sun.source.util.JavacTask) javaCompiler.getTask(null, null, null, null, null, null);
@ -75,7 +75,7 @@ public class QueryBeforeEnter extends ModuleTestBase {
}
@Test
void testUnnamed(Path base) throws Exception {
public void testUnnamed(Path base) throws Exception {
Path moduleSrc = base.resolve("module-src");
Path m1 = moduleSrc.resolve("m1");
@ -151,7 +151,7 @@ public class QueryBeforeEnter extends ModuleTestBase {
}
@Test
void testSingleNamed(Path base) throws Exception {
public void testSingleNamed(Path base) throws Exception {
Path moduleSrc = base.resolve("module-src");
Path m1 = moduleSrc.resolve("m1");
@ -226,7 +226,7 @@ public class QueryBeforeEnter extends ModuleTestBase {
}
@Test
void testMultiModule(Path base) throws Exception {
public void testMultiModule(Path base) throws Exception {
Path modulePathSrc = base.resolve("module-path-src");
Path m1 = modulePathSrc.resolve("m1");
@ -311,7 +311,7 @@ public class QueryBeforeEnter extends ModuleTestBase {
}
@Test
void testTooSoon(Path base) throws Exception {
public void testTooSoon(Path base) throws Exception {
Path src = base.resolve("src");
tb.writeJavaFiles(src,