/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyStore4Test.java | 45 } catch (KeyStoreException e) { in setUp() 51 } catch (KeyStoreException e) { in setUp() 69 } catch (KeyStoreException e) { in testGetInstanceString() 70 fail("unexpected exception: " + e); in testGetInstanceString() 76 } catch (KeyStoreException e) { in testGetInstanceString() 83 } catch (NullPointerException e) { in testGetInstanceString() 85 } catch (KeyStoreException e) { in testGetInstanceString() 86 fail("unexpected exception: " + e); in testGetInstanceString() 95 } catch (KeyStoreException e) { in testGetInstanceStringString() 96 fail("unexpected exception: " + e); in testGetInstanceStringString() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/ |
D | SAXParseExceptionTest.java | 47 SAXParseException e = new SAXParseException(ERR, l, c); in testSAXParseException_String_Locator_Exception() local 49 assertEquals(ERR, e.getMessage()); in testSAXParseException_String_Locator_Exception() 50 assertEquals(c, e.getException()); in testSAXParseException_String_Locator_Exception() 52 assertEquals(PUB, e.getPublicId()); in testSAXParseException_String_Locator_Exception() 53 assertEquals(SYS, e.getSystemId()); in testSAXParseException_String_Locator_Exception() 54 assertEquals(ROW, e.getLineNumber()); in testSAXParseException_String_Locator_Exception() 55 assertEquals(COL, e.getColumnNumber()); in testSAXParseException_String_Locator_Exception() 58 e = new SAXParseException(null, l, c); in testSAXParseException_String_Locator_Exception() 60 assertNull(e.getMessage()); in testSAXParseException_String_Locator_Exception() 61 assertEquals(c, e.getException()); in testSAXParseException_String_Locator_Exception() [all …]
|
D | SAXExceptionTest.java | 29 SAXException e = new SAXException(); in testSAXParseException() local 31 assertNull(e.getMessage()); in testSAXParseException() 32 assertNull(e.getException()); in testSAXParseException() 39 SAXException e = new SAXException(ERR, c); in testSAXException_String_Exception() local 41 assertEquals(ERR, e.getMessage()); in testSAXException_String_Exception() 42 assertEquals(c, e.getException()); in testSAXException_String_Exception() 45 e = new SAXException(null, c); in testSAXException_String_Exception() 47 assertNull(e.getMessage()); in testSAXException_String_Exception() 48 assertEquals(c, e.getException()); in testSAXException_String_Exception() 51 e = new SAXParseException(ERR, null); in testSAXException_String_Exception() [all …]
|
D | HandlerBaseTest.java | 41 } catch (SAXException e) { in testResolveEntity() 42 throw new RuntimeException(e); in testResolveEntity() 61 } catch (SAXException e) { in testStartDocument() 62 throw new RuntimeException(e); in testStartDocument() 69 } catch (SAXException e) { in testEndDocument() 70 throw new RuntimeException(e); in testEndDocument() 77 } catch (SAXException e) { in testStartElement() 78 throw new RuntimeException(e); in testStartElement() 85 } catch (SAXException e) { in testEndElement() 86 throw new RuntimeException(e); in testEndElement() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/ext/ |
D | DefaultHandler2Test.java | 37 } catch (SAXException e) { in testStartCDATA() 38 throw new RuntimeException("Unexpected exception", e); in testStartCDATA() 45 } catch (SAXException e) { in testEndCDATA() 46 throw new RuntimeException("Unexpected exception", e); in testEndCDATA() 53 } catch (SAXException e) { in testStartDTD() 54 throw new RuntimeException("Unexpected exception", e); in testStartDTD() 61 } catch (SAXException e) { in testEndDTD() 62 throw new RuntimeException("Unexpected exception", e); in testEndDTD() 69 } catch (SAXException e) { in testStartEntity() 70 throw new RuntimeException("Unexpected exception", e); in testStartEntity() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | AssertionErrorTest.java | 25 AssertionError e = new AssertionError(); in test_Constructor() local 26 assertNull(e.getMessage()); in test_Constructor() 27 assertNull(e.getCause()); in test_Constructor() 32 AssertionError e = new AssertionError(obj); in test_ConstructorObject() local 33 assertEquals("toString", e.getMessage()); in test_ConstructorObject() 34 assertNull(e.getCause()); in test_ConstructorObject() 37 e = new AssertionError(npe); in test_ConstructorObject() 38 assertEquals(npe.toString(), e.getMessage()); in test_ConstructorObject() 39 assertSame(npe, e.getCause()); in test_ConstructorObject() 43 AssertionError e = new AssertionError(true); in test_ConstructorBoolean() local [all …]
|
D | ExceptionInInitializerErrorTest.java | 26 ExceptionInInitializerError e = new ExceptionInInitializerError(); in test_Constructor() local 27 assertNull(e.getMessage()); in test_Constructor() 28 assertNull(e.getLocalizedMessage()); in test_Constructor() 29 assertNull(e.getCause()); in test_Constructor() 36 ExceptionInInitializerError e = new ExceptionInInitializerError("fixture"); in test_ConstructorLjava_lang_String() local 37 assertEquals("fixture", e.getMessage()); in test_ConstructorLjava_lang_String() 38 assertNull(e.getCause()); in test_ConstructorLjava_lang_String() 46 ExceptionInInitializerError e = new ExceptionInInitializerError(npe); in test_ConstructorLjava_lang_Throwable() local 47 assertNull(e.getMessage()); in test_ConstructorLjava_lang_Throwable() 48 assertNull(e.getLocalizedMessage()); in test_ConstructorLjava_lang_Throwable() [all …]
|
D | TypeNotPresentExceptionTest.java | 27 TypeNotPresentException e = new TypeNotPresentException(null, null); in test_constructorLjava_lang_StringLjava_lang_Throwable() local 28 assertNotNull(e); in test_constructorLjava_lang_StringLjava_lang_Throwable() 29 String m = e.getMessage(); in test_constructorLjava_lang_StringLjava_lang_Throwable() 32 e = new TypeNotPresentException(getClass().getName(), null); in test_constructorLjava_lang_StringLjava_lang_Throwable() 33 assertNotNull(e); in test_constructorLjava_lang_StringLjava_lang_Throwable() 34 m = e.getMessage(); in test_constructorLjava_lang_StringLjava_lang_Throwable() 38 e = new TypeNotPresentException(getClass().getName(), npe); in test_constructorLjava_lang_StringLjava_lang_Throwable() 39 assertNotNull(e.getMessage()); in test_constructorLjava_lang_StringLjava_lang_Throwable() 40 assertSame(npe, e.getCause()); in test_constructorLjava_lang_StringLjava_lang_Throwable() 47 TypeNotPresentException e = new TypeNotPresentException(null, null); in test_typeName() local [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/ |
D | DefaultHandlerTest.java | 42 } catch (SAXException e) { in testResolveEntity() 43 throw new RuntimeException(e); in testResolveEntity() 44 } catch (IOException e) { in testResolveEntity() 45 throw new RuntimeException(e); in testResolveEntity() 52 } catch (SAXException e) { in testNotationDecl() 53 throw new RuntimeException(e); in testNotationDecl() 61 } catch (SAXException e) { in testUnparsedEntityDecl() 62 throw new RuntimeException(e); in testUnparsedEntityDecl() 73 } catch (SAXException e) { in testStartDocument() 74 throw new RuntimeException(e); in testStartDocument() [all …]
|
D | XMLReaderFactoryTest.java | 38 } catch (SAXException e) { in testCreateXMLReader() 47 } catch (SAXException e) { in testCreateXMLReader() 57 } catch (SAXException e) { in testCreateXMLReader() 67 } catch (SAXException e) { in testCreateXMLReader() 77 } catch (ClassCastException e) { in testCreateXMLReader() 79 } catch (SAXException e) { in testCreateXMLReader() 80 throw new RuntimeException("Unexpected exception", e); in testCreateXMLReader() 89 } catch (SAXException e) { in testCreateXMLReader() 90 throw new RuntimeException("Unexpected exception", e); in testCreateXMLReader() 99 } catch (NullPointerException e) { in testMakeParserString() [all …]
|
D | XMLFilterImplTest.java | 106 } catch (SAXNotRecognizedException e) { in testGetSetFeature() 107 throw new RuntimeException("Unexpected exception", e); in testGetSetFeature() 108 } catch (SAXNotSupportedException e) { in testGetSetFeature() 109 throw new RuntimeException("Unexpected exception", e); in testGetSetFeature() 116 } catch (SAXNotRecognizedException e) { in testGetSetFeature() 118 } catch (SAXNotSupportedException e) { in testGetSetFeature() 119 throw new RuntimeException("Unexpected exception", e); in testGetSetFeature() 131 } catch (SAXNotRecognizedException e) { in testGetSetProperty() 132 throw new RuntimeException("Unexpected exception", e); in testGetSetProperty() 133 } catch (SAXNotSupportedException e) { in testGetSetProperty() [all …]
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertStore2Test.java | 48 } catch (NoSuchAlgorithmException e) { in testGetInstanceStringCertStoreParameters() 49 fail("unexpected exception: " + e); in testGetInstanceStringCertStoreParameters() 50 } catch (InvalidAlgorithmParameterException e) { in testGetInstanceStringCertStoreParameters() 51 fail("unexpected exception: " + e); in testGetInstanceStringCertStoreParameters() 58 } catch (InvalidAlgorithmParameterException e) { in testGetInstanceStringCertStoreParameters() 59 fail("unexpected exception: " + e); in testGetInstanceStringCertStoreParameters() 60 } catch (NoSuchAlgorithmException e) { in testGetInstanceStringCertStoreParameters() 61 fail("unexpected exception: " + e); in testGetInstanceStringCertStoreParameters() 67 } catch (InvalidAlgorithmParameterException e) { in testGetInstanceStringCertStoreParameters() 68 fail("unexpected exception: " + e); in testGetInstanceStringCertStoreParameters() [all …]
|
/libcore/luni/src/test/java/tests/java/security/ |
D | SecureRandomTest.java | 92 } catch (Exception e) { in testNextBytes() 129 } catch (NoSuchAlgorithmException e) { in testGetInstanceString() 130 fail(e.toString()); in testGetInstanceString() 149 } catch (NoSuchAlgorithmException e) { in testGetInstanceStringString() 151 } catch (NoSuchProviderException e) { in testGetInstanceStringString() 152 fail("unexpected: " + e); in testGetInstanceStringString() 153 } catch (IllegalArgumentException e) { in testGetInstanceStringString() 154 fail("unexpected: " + e); in testGetInstanceStringString() 155 } catch (NullPointerException e) { in testGetInstanceStringString() 156 fail("unexpected: " + e); in testGetInstanceStringString() [all …]
|
/libcore/luni/src/test/java/tests/targets/security/ |
D | KeyStoreTest.java | 55 } catch (KeyStoreException e) { in testKeyStoreLoad() 56 fail(e.getMessage()); in testKeyStoreLoad() 62 } catch (NoSuchAlgorithmException e) { in testKeyStoreLoad() 63 fail(e.getMessage()); in testKeyStoreLoad() 64 } catch (CertificateException e) { in testKeyStoreLoad() 65 fail(e.getMessage()); in testKeyStoreLoad() 66 } catch (IOException e) { in testKeyStoreLoad() 67 fail(e.getMessage()); in testKeyStoreLoad() 73 } catch (KeyStoreException e) { in testKeyStoreLoad() 74 fail(e.getMessage()); in testKeyStoreLoad() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | ArrayTest.java | 36 } catch (Exception e) { in test_getLjava_lang_ObjectI() 37 fail("Exception during get test : " + e.getMessage()); in test_getLjava_lang_ObjectI() 43 } catch (IllegalArgumentException e) { in test_getLjava_lang_ObjectI() 53 } catch (ArrayIndexOutOfBoundsException e) { in test_getLjava_lang_ObjectI() 67 } catch (Exception e) { in test_getLjava_lang_ObjectI() 68 fail("Exception during get test : " + e.getMessage()); in test_getLjava_lang_ObjectI() 74 } catch (IllegalArgumentException e) { in test_getLjava_lang_ObjectI() 84 } catch (ArrayIndexOutOfBoundsException e) { in test_getLjava_lang_ObjectI() 104 } catch (Exception e) { in test_getBooleanLjava_lang_ObjectI() 105 fail("Exception during get test : " + e.getMessage()); in test_getBooleanLjava_lang_ObjectI() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
D | PatternSyntaxExceptionTest.java | 31 PatternSyntaxException e = new PatternSyntaxException("Foo", "Bar", 0); in testPatternSyntaxException() local 32 assertEquals("Foo", e.getDescription()); in testPatternSyntaxException() 33 assertEquals("Bar", e.getPattern()); in testPatternSyntaxException() 34 assertEquals(0, e.getIndex()); in testPatternSyntaxException() 36 String s = e.getMessage(); in testPatternSyntaxException() 42 e = new PatternSyntaxException(null, "Bar", 0); in testPatternSyntaxException() 43 assertEquals(null, e.getDescription()); in testPatternSyntaxException() 44 assertEquals("Bar", e.getPattern()); in testPatternSyntaxException() 45 assertEquals(0, e.getIndex()); in testPatternSyntaxException() 47 s = e.getMessage(); in testPatternSyntaxException() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
D | DESKeySpecTest.java | 111 } catch (NullPointerException e) { in testDESKeySpec() 112 } catch (InvalidKeyException e) { in testDESKeySpec() 119 } catch (NullPointerException e) { in testDESKeySpec() 121 } catch (InvalidKeyException e) { in testDESKeySpec() 125 } catch (NullPointerException e) { in testDESKeySpec() 127 } catch (InvalidKeyException e) { in testDESKeySpec() 134 } catch (NullPointerException e) { in testDESKeySpec() 135 } catch (InvalidKeyException e) { in testDESKeySpec() 142 } catch (NullPointerException e) { in testDESKeySpec() 144 } catch (InvalidKeyException e) { in testDESKeySpec() [all …]
|
D | DESedeKeySpecTest.java | 48 } catch (NullPointerException e) { in testDESedeKeySpec() 49 } catch (InvalidKeyException e) { in testDESedeKeySpec() 56 } catch (NullPointerException e) { in testDESedeKeySpec() 58 } catch (InvalidKeyException e) { in testDESedeKeySpec() 64 } catch (NullPointerException e) { in testDESedeKeySpec() 66 } catch (InvalidKeyException e) { in testDESedeKeySpec() 73 } catch (NullPointerException e) { in testDESedeKeySpec() 74 } catch (InvalidKeyException e) { in testDESedeKeySpec() 83 } catch (NullPointerException e) { in testDESedeKeySpec() 85 } catch (InvalidKeyException e) { in testDESedeKeySpec() [all …]
|
/libcore/support/src/test/java/tests/security/ |
D | AlgorithmParameterAsymmetricHelper.java | 47 } catch (NoSuchAlgorithmException e) { in test() 48 Assert.fail(e.getMessage()); in test() 59 } catch (NoSuchAlgorithmException e) { in test() 60 Assert.fail(e.getMessage()); in test() 61 } catch (NoSuchPaddingException e) { in test() 62 Assert.fail(e.getMessage()); in test() 67 } catch (InvalidKeyException e) { in test() 68 Assert.fail(e.getMessage()); in test() 69 } catch (InvalidAlgorithmParameterException e) { in test() 70 Assert.fail(e.getMessage()); in test() [all …]
|
D | AlgorithmParameterSymmetricHelper.java | 55 } catch (NoSuchAlgorithmException e) { in test() 56 Assert.fail(e.getMessage()); in test() 72 } catch (NoSuchAlgorithmException e) { in test() 73 Assert.fail(e.getMessage()); in test() 74 } catch (NoSuchPaddingException e) { in test() 75 Assert.fail(e.getMessage()); in test() 80 } catch (InvalidKeyException e) { in test() 81 Assert.fail(e.getMessage()); in test() 82 } catch (InvalidAlgorithmParameterException e) { in test() 83 Assert.fail(e.getMessage()); in test() [all …]
|
/libcore/luni/src/main/java/java/util/ |
D | HashMap.java | 208 for (Entry<? extends K, ? extends V> e : map.entrySet()) { in constructorPutAll() 209 constructorPut(e.getKey(), e.getValue()); in constructorPutAll() 239 } catch (CloneNotSupportedException e) { in clone() 240 throw new AssertionError(e); in clone() 296 HashMapEntry<K, V> e = entryForNullKey; in get() local 297 return e == null ? null : e.value; in get() 302 for (HashMapEntry<K, V> e = tab[hash & (tab.length - 1)]; in get() 303 e != null; e = e.next) { in get() 304 K eKey = e.key; in get() 305 if (eKey == key || (e.hash == hash && key.equals(eKey))) { in get() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | AbstractExecutorServiceTest.java | 67 ExecutorService e = new DirectExecutorService(); in testExecuteRunnable() local 69 Future<?> future = e.submit(new CheckedRunnable() { in testExecuteRunnable() 84 ExecutorService e = new DirectExecutorService(); in testSubmitCallable() local 85 Future<String> future = e.submit(new StringTask()); in testSubmitCallable() 94 ExecutorService e = new DirectExecutorService(); in testSubmitRunnable() local 95 Future<?> future = e.submit(new NoOpRunnable()); in testSubmitRunnable() 104 ExecutorService e = new DirectExecutorService(); in testSubmitRunnable2() local 105 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2() 116 ExecutorService e = new DirectExecutorService(); in testSubmitPrivilegedAction() 117 Future future = e.submit(Executors.callable(new PrivilegedAction() { in testSubmitPrivilegedAction() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest1.java | 384 } catch (IOException e) { in test_18_1_writeObject() 385 fail("IOException serializing data : " + e.getMessage()); in test_18_1_writeObject() 386 } catch (ClassNotFoundException e) { in test_18_1_writeObject() 388 + e.getMessage()); in test_18_1_writeObject() 410 } catch (IOException e) { in test_18_2_writeObject() 411 fail("IOException serializing data : " + e.getMessage()); in test_18_2_writeObject() 412 } catch (ClassNotFoundException e) { in test_18_2_writeObject() 414 + e.getMessage()); in test_18_2_writeObject() 438 } catch (IOException e) { in test_18_3_writeObject() 439 fail("IOException serializing data : " + e.getMessage()); in test_18_3_writeObject() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | OldFileChannelTest.java | 50 } catch (UnsupportedEncodingException e) { 51 throw new Error(e); 102 } catch (IOException e) { in tearDown() 109 } catch (IOException e) { in tearDown() 116 } catch (IOException e) { in tearDown() 123 } catch (IOException e) { in tearDown() 131 } catch (IOException e) { in tearDown() 211 } catch (IllegalArgumentException e) { in test_tryLockJJZ_IllegalArgument() 218 } catch (IllegalArgumentException e) { in test_tryLockJJZ_IllegalArgument() 225 } catch (IllegalArgumentException e) { in test_tryLockJJZ_IllegalArgument() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | Matcher2Test.java | 45 } catch (IllegalStateException e) { in testErrorConditions() 51 } catch (IllegalStateException e) { in testErrorConditions() 57 } catch (IllegalStateException e) { in testErrorConditions() 63 } catch (IllegalStateException e) { in testErrorConditions() 69 } catch (IllegalStateException e) { in testErrorConditions() 75 } catch (IllegalStateException e) { in testErrorConditions() 82 } catch (IllegalArgumentException e) { in testErrorConditions() 103 } catch (IndexOutOfBoundsException e) { in testErrorConditions2() 109 } catch (IndexOutOfBoundsException e) { in testErrorConditions2() 115 } catch (IndexOutOfBoundsException e) { in testErrorConditions2() [all …]
|