8288989: Make tests not depend on the source code
Reviewed-by: mcimadamore
This commit is contained in:
parent
d2ba3b1ef7
commit
2838a916ab
@ -50,8 +50,12 @@ import javax.tools.JavaFileObject;
|
|||||||
|
|
||||||
public class TestDocletExample extends TestRunner {
|
public class TestDocletExample extends TestRunner {
|
||||||
public static void main(String... args) throws Exception {
|
public static void main(String... args) throws Exception {
|
||||||
var t = new TestDocletExample();
|
try {
|
||||||
t.runTests(m -> new Object[] { Path.of(m.getName()) });
|
var t = new TestDocletExample();
|
||||||
|
t.runTests(m -> new Object[] { Path.of(m.getName()) });
|
||||||
|
} catch (SnippetUtils.ConfigurationException e) {
|
||||||
|
System.err.println("NOTE: " + e.getMessage() + "; test skipped");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SnippetUtils snippets;
|
SnippetUtils snippets;
|
||||||
|
@ -58,7 +58,11 @@ import toolbox.ToolBox;
|
|||||||
*/
|
*/
|
||||||
public class TestJavaxToolsSnippets extends TestRunner {
|
public class TestJavaxToolsSnippets extends TestRunner {
|
||||||
public static void main(String... args) throws Exception {
|
public static void main(String... args) throws Exception {
|
||||||
new TestJavaxToolsSnippets().runTests(m -> new Object[] { Path.of(m.getName()) });
|
try {
|
||||||
|
new TestJavaxToolsSnippets().runTests(m -> new Object[] { Path.of(m.getName()) });
|
||||||
|
} catch (SnippetUtils.ConfigurationException e) {
|
||||||
|
System.err.println("NOTE: " + e.getMessage() + "; test skipped");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SnippetUtils snippets = new SnippetUtils("java.compiler");
|
SnippetUtils snippets = new SnippetUtils("java.compiler");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user