/external/mockito/src/test/java/org/mockitoutil/ |
JUnitResultAssert.java | 32 * @param expectedException - the exception of each failure 34 public JUnitResultAssert fails(int expectedFailureCount, Class expectedException) { 37 if (!expectedException.isInstance(f.getException())) { 38 throw new AssertionError("Incorrect failure type, expected: " + expectedException + ", actual: " + f.getException().getClass().getSimpleName() + "\n" + 79 public JUnitResultAssert fails(Class expectedException, String exceptionMessage) { 80 fails(1, expectedException); 89 public JUnitResultAssert fails(String methodName, Class expectedException) { 91 if (methodName.equals(f.getDescription().getMethodName()) && expectedException.isInstance(f.getException())) { 95 throw new AssertionError("Method '" + methodName + "' did not fail with: " + expectedException.getSimpleName() 102 public JUnitResultAssert fails(int expectedFailureCount, String methodName, Class expectedException) { [all...] |
/cts/tests/tests/accounts/src/android/accounts/cts/ |
AccountTest.java | 21 } catch (IllegalArgumentException expectedException) { 29 } catch (IllegalArgumentException expectedException) {
|
AuthenticatorDescriptionTest.java | 22 } catch (IllegalArgumentException expectedException) { 30 } catch (IllegalArgumentException expectedException) {
|
AccountManagerTest.java | 512 } catch (AuthenticatorException expectedException) { [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/stringprep/ |
TestIDNARef.java | 106 private void doTestToUnicode(String src, String expected, int options, Object expectedException) 123 if(expectedException!=null && !unassignedException.equals(expectedException)){ 127 if(expectedException == null || !ex.equals(expectedException)){ 138 if(expectedException!=null && !unassignedException.equals(expectedException)){ 142 if(expectedException == null || !ex.equals(expectedException)){ 153 if(expectedException!=null && !unassignedException.equals(expectedException)) [all...] |
TestIDNA.java | 83 private void doTestToUnicode(String src, String expected, int options, Object expectedException) 94 if(expectedException!=null && !unassignedException.equals(expectedException)){ 98 if(expectedException == null || !ex.equals(expectedException)){ 109 if(expectedException!=null && !unassignedException.equals(expectedException)){ 113 if(expectedException == null || !ex.equals(expectedException)){ 124 if(expectedException!=null && !unassignedException.equals(expectedException)) [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/ |
TestIDNARef.java | 105 private void doTestToUnicode(String src, String expected, int options, Object expectedException) 122 if(expectedException!=null && !unassignedException.equals(expectedException)){ 126 if(expectedException == null || !ex.equals(expectedException)){ 137 if(expectedException!=null && !unassignedException.equals(expectedException)){ 141 if(expectedException == null || !ex.equals(expectedException)){ 152 if(expectedException!=null && !unassignedException.equals(expectedException)) [all...] |
TestIDNA.java | 82 private void doTestToUnicode(String src, String expected, int options, Object expectedException) 93 if(expectedException!=null && !unassignedException.equals(expectedException)){ 97 if(expectedException == null || !ex.equals(expectedException)){ 108 if(expectedException!=null && !unassignedException.equals(expectedException)){ 112 if(expectedException == null || !ex.equals(expectedException)){ 123 if(expectedException!=null && !unassignedException.equals(expectedException)) [all...] |
/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
ParametersTest.java | 105 private void verifyChannelQuery(Uri channelsUri, int expectedCount, boolean expectedException) { 108 if (expectedException) { 112 if (!expectedException) { 119 int expectedCount, boolean expectedException) { 122 if (expectedException) { 127 if (!expectedException) { 134 boolean expectedException) { 137 if (expectedException) { 142 if (!expectedException) {
|
/external/objenesis/main/src/test/java/org/objenesis/ |
ObjenesisTest.java | 20 import org.junit.rules.ExpectedException; 32 public ExpectedException expectedException = ExpectedException.none(); 73 expectedException.expect(IllegalArgumentException.class);
|
/art/test/064-field-access/src/ |
Main.java | 61 * The "expectedException" must match the class of the exception thrown, 67 Class<?> expectedException) { 103 if (expectedException != null) { 106 "', was expecting " + expectedException); 110 if (expectedException == null) { 115 if (!expectedException.equals(ex.getClass())) { 117 + expectedException.getName() + ", got " 641 Class<?> expectedException) { 677 if (expectedException != null) { 680 "', was expecting " + expectedException); [all...] |
/art/test/800-smali/src/ |
Main.java | 30 Throwable expectedException, Object expectedReturn) { 35 this.expectedException = expectedException; 43 Throwable expectedException; 227 if (tc.expectedException != null) { 243 if (tc.expectedException == null) { 246 exc.getCause().getClass().equals(tc.expectedException.getClass())) { 248 } else if (!tc.expectedException.getClass().equals(exc.getClass())) { 250 tc.expectedException.getClass().getName() +
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
ConfigurationXmlParserTest.java | 262 String expectedException = "device tag requires a name value"; 267 assertEquals(expectedException, expected.getMessage()); 319 String expectedException = "Tags [target_preparer] should be included in a <device> tag."; 324 assertEquals(expectedException, expected.getMessage()); 359 String expectedException = "device name cannot contain reserved character: ':'"; 371 assertEquals(expectedException, expected.getMessage()); 381 String expectedException = "device name cannot be reserved name: '" + 394 assertEquals(expectedException, expected.getMessage());
|
ConfigurationFactoryTest.java | [all...] |
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
SQLiteStatementTest.java | 267 SQLiteDoneException expectedException = null; 271 expectedException = ex; 278 assertNotNull("Should have thrown SQLiteDoneException", expectedException); 288 SQLiteDoneException expectedException = null; 292 expectedException = ex; 299 assertNotNull("Should have thrown SQLiteDoneException", expectedException);
|
/external/objenesis/tck/src/test/java/org/objenesis/tck/ |
CandidateLoaderTest.java | 103 catch(IOException expectedException) {
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/array/ |
PrimitiveArrayTest.java | 78 private void tryInvalid(String t, Class<?> expectedException) { 82 fail("Expected " + expectedException.getCanonicalName() + " but loaded = \"" + loaded 85 assertEquals(expectedException, e.getCause().getClass());
|
/libcore/luni/src/test/java/tests/security/spec/ |
ECFieldF2mTest.java | 88 * @param expectedException 93 final Exception expectedException) { 97 this.x = expectedException;
|
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/xml/ |
HasXPathTest.java | 112 } catch (IllegalArgumentException expectedException) {
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
FuturesTest.java | 531 RuntimeException expectedException = new RuntimeException(); 532 runExpectedExceptionFallbackTest(expectedException, false); 536 Exception expectedException = new Exception() {}; 537 runExpectedExceptionFallbackTest(expectedException, false); 558 RuntimeException expectedException = new RuntimeException(); 559 runExpectedExceptionFallbackTest(expectedException, true); 563 Exception expectedException = new Exception() {}; 564 runExpectedExceptionFallbackTest(expectedException, true); 569 Throwable expectedException, boolean wrapInFuture) throws Exception { 574 expect(fallback.create(raisedException)).andThrow(expectedException); [all...] |
/prebuilts/tools/common/easymock-tools/ |
easymock-3.1-tests.jar | |
/libcore/support/src/test/java/tests/resources/ |
junit4-4.3.1.jar | |
/prebuilts/tools/common/m2/repository/com/amazonaws/aws-java-sdk-swf-libraries/1.11.18/ |
aws-java-sdk-swf-libraries-1.11.18.jar | |
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
BaseShortcutManagerTest.java | [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
SSLSocketTest.java | 668 final RuntimeException expectedException = new RuntimeException("expected"); 687 throw expectedException; 696 assertSame(expectedException, test.actualException); [all...] |