mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8288989: Make tests not depend on the source code
Backport-of: 2838a916ab
This commit is contained in:
committed by
Vitaly Provodin
parent
a0c2ae8ba0
commit
7dbd81e2d0
@@ -50,8 +50,12 @@ import javax.tools.JavaFileObject;
|
||||
|
||||
public class TestDocletExample extends TestRunner {
|
||||
public static void main(String... args) throws Exception {
|
||||
var t = new TestDocletExample();
|
||||
t.runTests(m -> new Object[] { Path.of(m.getName()) });
|
||||
try {
|
||||
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;
|
||||
|
||||
@@ -58,7 +58,11 @@ import toolbox.ToolBox;
|
||||
*/
|
||||
public class TestJavaxToolsSnippets extends TestRunner {
|
||||
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");
|
||||
|
||||
Reference in New Issue
Block a user