Home
last modified time | relevance | path

Searched refs:expectedExceptionType (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/
DTestUtils.java33 public static void assertExpectException(Class<? extends Throwable> expectedExceptionType, in assertExpectException() argument
39 "Expected exception type was " + expectedExceptionType.getName() in assertExpectException()
41 expectedExceptionType.isAssignableFrom(e.getClass())); in assertExpectException()
47 Assert.fail("Expected exception type " + expectedExceptionType.getName() in assertExpectException()
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
DShortcutManagerTestUtils.java413 public static void assertExpectException(Class<? extends Throwable> expectedExceptionType, in assertExpectException() argument
415 assertExpectException("", expectedExceptionType, expectedExceptionMessageRegex, r); in assertExpectException()
429 Class<? extends Throwable> expectedExceptionType, in assertExpectException() argument
435 "Expected exception type was " + expectedExceptionType.getName() in assertExpectException()
437 expectedExceptionType.isAssignableFrom(e.getClass())); in assertExpectException()
443 Assert.fail("Expected exception type " + expectedExceptionType.getName() in assertExpectException()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/
DJsonParserTest.cs450 public void NumberToInt32_Invalid(string jsonValue, System.Type expectedExceptionType) in NumberToInt32_Invalid() argument
453 Assert.Throws(expectedExceptionType, () => TestAllTypes.Parser.ParseJson(json)); in NumberToInt32_Invalid()
591 public void NumberToFloat_Invalid(string jsonValue, System.Type expectedExceptionType) in NumberToFloat_Invalid() argument
594 Assert.Throws(expectedExceptionType, () => TestAllTypes.Parser.ParseJson(json)); in NumberToFloat_Invalid()