Home
last modified time | relevance | path

Searched refs:expectedErrorClass (Results 1 – 2 of 2) sorted by relevance

/cts/tools/vm-tests-tf/src/dot/junit/
DDxTestCase.java23 private static void checkError(Class<?> expectedErrorClass, Throwable thrown, in checkError() argument
25 if (expectedErrorClass != null && thrown == null) { in checkError()
26 fail("Expected error of type " + expectedErrorClass); in checkError()
27 } else if (expectedErrorClass == null && thrown != null) { in checkError()
29 } else if (expectedErrorClass != null && thrown != null) { in checkError()
36 if (!expectedErrorClass.equals(thrown.getClass())) { in checkError()
37 fail("Expected error of type " + expectedErrorClass + ", but got " + in checkError()
46 public static Class<?> load(String className, Class<?> expectedErrorClass) { in load() argument
49 checkError(expectedErrorClass, null, false); in load()
52 if (expectedErrorClass != null) { in load()
[all …]
DDxAbstractMain.java25 private static void checkError(Class<?> expectedErrorClass, Throwable thrown, in checkError() argument
27 if (expectedErrorClass != null && thrown == null) { in checkError()
28 fail("Expected error of type " + expectedErrorClass); in checkError()
29 } else if (expectedErrorClass == null && thrown != null) { in checkError()
31 } else if (expectedErrorClass != null && thrown != null) { in checkError()
38 if (!expectedErrorClass.equals(thrown.getClass())) { in checkError()
40 fail("Expected error of type " + expectedErrorClass + ", but got " + in checkError()
49 public static Class<?> load(String className, Class<?> expectedErrorClass) { in load() argument
52 checkError(expectedErrorClass, null, false); in load()
55 if (expectedErrorClass != null) { in load()
[all …]