Searched refs:exceptionType (Results 1 – 3 of 3) sorted by relevance
31 val exceptionType = exception?.toString() ?: "an exception" in assertThrows() constant34 throw AssertionError(message ?: "Expected to throw $exceptionType but nothing thrown") in assertThrows()
483 int mode, Class<T> exceptionType) { in assertExceptionThrownForMode() argument492 fail("BugreportMode " + mode + " should cause " + exceptionType.getSimpleName()); in assertExceptionThrownForMode()494 if (!exceptionType.isInstance(thrown)) { in assertExceptionThrownForMode()
298 private void testForegroundServiceTypeDisabledCommon(int type, int exceptionType, in testForegroundServiceTypeDisabledCommon() argument324 assertEquals(exceptionType, startForegroundServiceWithType(apiCurComp, type)); in testForegroundServiceTypeDisabledCommon()