Searched refs:expectedErrorClass (Results 1 – 2 of 2) sorted by relevance
/cts/tools/vm-tests-tf/src/dot/junit/ |
D | DxTestCase.java | 23 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 …]
|
D | DxAbstractMain.java | 25 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, null); 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() 39 fail("Expected error of type " + expectedErrorClass + ", but got " + in checkError() 48 public static Class<?> load(String className, Class<?> expectedErrorClass) { in load() argument 53 if (expectedErrorClass != null) { in load() 54 checkError(expectedErrorClass, t, false); in load() [all …]
|