/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 …]
|
D | CertificateFactorySpiTest.java | 60 } catch (UnsupportedOperationException e) { in testCertificateFactorySpi01() 65 } catch (UnsupportedOperationException e) { in testCertificateFactorySpi01() 71 } catch (UnsupportedOperationException e) { in testCertificateFactorySpi01() 76 } catch (UnsupportedOperationException e) { in testCertificateFactorySpi01() 83 } catch (CertificateException e) { in testCertificateFactorySpi01() 90 } catch (CertificateException e) { in testCertificateFactorySpi01() 98 } catch (CRLException e) { in testCertificateFactorySpi01() 106 } catch (CRLException e) { in testCertificateFactorySpi01() 123 } catch (CertificateException e) { in testCertificateFactorySpi02() 129 } catch (CertificateException e) { in testCertificateFactorySpi02() [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/ojluni/src/main/java/java/util/zip/ |
D | ZipOutputStream.java | 86 private static int version(ZipEntry e) throws ZipException { in version() argument 87 switch (e.method) { in version() 191 public void putNextEntry(ZipEntry e) throws IOException { in putNextEntry() argument 196 if (e.xdostime == -1) { in putNextEntry() 199 e.setTime(System.currentTimeMillis()); in putNextEntry() 201 if (e.method == -1) { in putNextEntry() 202 e.method = method; // use default method in putNextEntry() 205 e.flag = 0; in putNextEntry() 206 switch (e.method) { in putNextEntry() 210 if (e.size == -1 || e.csize == -1 || e.crc == -1) in putNextEntry() [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/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/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/ojluni/src/main/java/java/util/ |
D | Hashtable.java | 300 for (HashtableEntry<?,?> e = tab[i] ; e != null ; e = e.next) { in contains() 301 if (e.value.equals(value)) { in contains() 339 for (HashtableEntry<?,?> e = tab[index] ; e != null ; e = e.next) { in containsKey() 340 if ((e.hash == hash) && e.key.equals(key)) { in containsKey() 367 for (HashtableEntry<?,?> e = tab[index] ; e != null ; e = e.next) { in get() 368 if ((e.hash == hash) && e.key.equals(key)) { in get() 369 return (V)e.value; in get() 411 HashtableEntry<K,V> e = old; in rehash() local 414 int index = (e.hash & 0x7FFFFFFF) % newCapacity; in rehash() 415 e.next = (HashtableEntry<K,V>)newMap[index]; in rehash() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | AbstractExecutorServiceTest.java | 68 ExecutorService e = new DirectExecutorService(); in testExecuteRunnable() local 70 Future<?> future = e.submit(new CheckedRunnable() { in testExecuteRunnable() 85 ExecutorService e = new DirectExecutorService(); in testSubmitCallable() local 86 Future<String> future = e.submit(new StringTask()); in testSubmitCallable() 95 ExecutorService e = new DirectExecutorService(); in testSubmitRunnable() local 96 Future<?> future = e.submit(new NoOpRunnable()); in testSubmitRunnable() 105 ExecutorService e = new DirectExecutorService(); in testSubmitRunnable2() local 106 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2() 117 ExecutorService e = new DirectExecutorService(); in testSubmitPrivilegedAction() 118 Future future = e.submit(Executors.callable(new PrivilegedAction() { in testSubmitPrivilegedAction() [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/luni/src/test/java/libcore/java/lang/ |
D | OldStackTraceElementTest.java | 50 } catch (Exception e) { in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_StringI() 51 StackTraceElement ste1 = e.getStackTrace()[0]; in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_StringI() 72 } catch (NullPointerException e) { in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_StringI() 81 } catch (NullPointerException e) { in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_StringI() 89 } catch (NullPointerException e) { in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_StringI() 90 fail("Unexpected exception " + e.toString()); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_StringI() 98 } catch (Exception e) { in test_equalsLjava_lang_Object() 99 StackTraceElement ste1 = e.getStackTrace()[0]; in test_equalsLjava_lang_Object() 113 } catch (Exception e) { in test_getClassName() 116 e.getStackTrace()[0].getClassName()); in test_getClassName() [all …]
|