Home
last modified time | relevance | path

Searched refs:expectedException (Results 1 – 7 of 7) sorted by relevance

/aosp12/art/test/064-field-access/src/
H A DMain.java71 Class<?> expectedException) { in getValue() argument
107 if (expectedException != null) { in getValue()
110 "', was expecting " + expectedException); in getValue()
114 if (expectedException == null) { in getValue()
121 + expectedException.getName() + ", got " in getValue()
649 Class<?> expectedException) { in getValue() argument
685 if (expectedException != null) { in getValue()
692 if (expectedException == null) { in getValue()
714 if (expectedException != null) { in invoke()
716 expectedException); in invoke()
[all …]
/aosp12/packages/providers/TvProvider/tests/src/com/android/providers/tv/
H A DParametersTest.java105 private void verifyChannelQuery(Uri channelsUri, int expectedCount, boolean expectedException) { in verifyChannelQuery() argument
108 if (expectedException) { in verifyChannelQuery()
112 if (!expectedException) { in verifyChannelQuery()
119 int expectedCount, boolean expectedException) { in verifyChannelUpdate() argument
122 if (expectedException) { in verifyChannelUpdate()
127 if (!expectedException) { in verifyChannelUpdate()
134 boolean expectedException) { in verifyChannelDelete() argument
137 if (expectedException) { in verifyChannelDelete()
142 if (!expectedException) { in verifyChannelDelete()
/aosp12/art/test/800-smali/src/
H A DMain.java30 Throwable expectedException, Object expectedReturn, in TestCase() argument
36 this.expectedException = expectedException; in TestCase()
42 Throwable expectedException, Object expectedReturn) { in TestCase() argument
43 this(testName, testClass, testMethodName, values, expectedException, in TestCase()
51 Throwable expectedException; field in Main.TestCase
252 if (tc.expectedException != null) { in runTest()
272 if (tc.expectedException == null) { in runTest()
275 exc.getCause().getClass().equals(tc.expectedException.getClass())) { in runTest()
277 } else if (!tc.expectedException.getClass().equals(exc.getClass())) { in runTest()
279 tc.expectedException.getClass().getName() + in runTest()
/aosp12/system/tools/aidl/tests/java/src/android/aidl/tests/
H A DTestVersionedInterface.java59 @Rule public ExpectedException expectedException = ExpectedException.none(); field in TestVersionedInterface
63 expectedException.expect(RemoteException.class); in testUnimplementedMethodTriggersException()
64 expectedException.expectMessage("Method newApi is unimplemented."); in testUnimplementedMethodTriggersException()
76 expectedException.expect(IllegalArgumentException.class); in testUnknownUnionFieldTriggersException()
/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
H A DIkeTestUtils.java53 byte[] inputPacket, Class<T> expectedException) throws Exception { in decodeAndVerifyUnprotectedErrorMsg() argument
60 assertTrue(expectedException.isInstance(resultError.ikeException)); in decodeAndVerifyUnprotectedErrorMsg()
/aosp12/frameworks/base/core/tests/coretests/src/android/os/
H A DPowerManagerTest.java234 } catch (IllegalArgumentException expectedException) { in testThermalStatusCallback()
256 } catch (IllegalArgumentException expectedException) { in testThermalStatusCallback()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DBaseShortcutManagerTest.java2152 @NonNull String shortcutId, int userId, Class<?> expectedException) {
2161 assertEquals("Exception type different", expectedException, thrown.getClass());