/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/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 | 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 …]
|
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 …]
|
/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/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 …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | MapOfTest.java | 264 <K, V> Map<K, V> create(Map.Entry<K, V>... e) { in create() argument 265 switch (e.length) { in create() 267 case 1: return Map.of(k(0, e), v(0, e)); in create() 268 case 2: return Map.of(k(0, e), v(0, e), k(1, e), v(1, e)); in create() 269 case 3: return Map.of(k(0, e), v(0, e), k(1, e), v(1, e), k(2, e), v(2, e)); in create() 270 … case 4: return Map.of(k(0, e), v(0, e), k(1, e), v(1, e), k(2, e), v(2, e), k(3, e), v(3, e)); in create() 271 …case 5: return Map.of(k(0, e), v(0, e), k(1, e), v(1, e), k(2, e), v(2, e), k(3, e), v(3, e), k(4,… in create() 272 …ase 6: return Map.of(k(0, e), v(0, e), k(1, e), v(1, e), k(2, e), v(2, e), k(3, e), v(3, e), k(4, … in create() 273 …turn Map.of(k(0, e), v(0, e), k(1, e), v(1, e), k(2, e), v(2, e), k(3, e), v(3, e), k(4, e), v(4, … in create() 274 …of(k(0, e), v(0, e), k(1, e), v(1, e), k(2, e), v(2, e), k(3, e), v(3, e), k(4, e), v(4, e), k(5, … in create() [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/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/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/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() 43 e = new PatternSyntaxException(null, "Bar", 0); in testPatternSyntaxException() 44 assertEquals(null, e.getDescription()); in testPatternSyntaxException() 45 assertEquals("Bar", e.getPattern()); in testPatternSyntaxException() 46 assertEquals(0, e.getIndex()); in testPatternSyntaxException() 48 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 | 318 for (HashtableEntry<?,?> e = tab[i] ; e != null ; e = e.next) { in contains() 319 if (e.value.equals(value)) { in contains() 357 for (HashtableEntry<?,?> e = tab[index] ; e != null ; e = e.next) { in containsKey() 358 if ((e.hash == hash) && e.key.equals(key)) { in containsKey() 385 for (HashtableEntry<?,?> e = tab[index] ; e != null ; e = e.next) { in get() 386 if ((e.hash == hash) && e.key.equals(key)) { in get() 387 return (V)e.value; in get() 429 HashtableEntry<K,V> e = old; in rehash() local 432 int index = (e.hash & 0x7FFFFFFF) % newCapacity; in rehash() 433 e.next = (HashtableEntry<K,V>)newMap[index]; in rehash() [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 …]
|
/libcore/luni/src/test/java/libcore/javax/xml/transform/ |
D | TransformerConfigurationExceptionTest.java | 33 TransformerConfigurationException e = new TransformerConfigurationException(); in constructor() local 34 assertEquals("Configuration Error", e.getMessage()); in constructor() 35 assertNull(e.getCause()); in constructor() 41 TransformerConfigurationException e = new TransformerConfigurationException("message", t); in constructorWithStringAndThrowable() local 42 assertEquals("message", e.getMessage()); in constructorWithStringAndThrowable() 43 assertEquals(t, e.getCause()); in constructorWithStringAndThrowable() 49 TransformerConfigurationException e = new TransformerConfigurationException("message", in constructorWithStringAndSourceLocator() local 51 assertEquals("message", e.getMessage()); in constructorWithStringAndSourceLocator() 52 assertNull(e.getCause()); in constructorWithStringAndSourceLocator() 53 assertEquals(locator, e.getLocator()); in constructorWithStringAndSourceLocator() [all …]
|
/libcore/ojluni/src/test/java/net/DatagramSocket/ |
D | ReuseAddressTest.java | 95 } catch (IOException e) { in DatagramSocket0029() 96 fail("unexpected: " + e); in DatagramSocket0029() 97 } catch (SecurityException e) { in DatagramSocket0029() 123 } catch (SocketException e) { in DatagramSocket0030() 125 + " unexpected " + e); in DatagramSocket0030() 134 } catch (SocketException e) { in DatagramSocket0030() 136 + " unexpected " + e); in DatagramSocket0030() 144 } catch (IOException e) { in DatagramSocket0030() 145 e.printStackTrace(System.out); in DatagramSocket0030() 146 fail("unexpected: " + e); in DatagramSocket0030() [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/ojluni/src/test/java/util/concurrent/tck/ |
D | AbstractExecutorServiceTest.java | 91 ExecutorService e = new DirectExecutorService(); in testExecuteRunnable() local 93 Future<?> future = e.submit(new CheckedRunnable() { in testExecuteRunnable() 108 ExecutorService e = new DirectExecutorService(); in testSubmitCallable() local 109 Future<String> future = e.submit(new StringTask()); in testSubmitCallable() 118 ExecutorService e = new DirectExecutorService(); in testSubmitRunnable() local 119 Future<?> future = e.submit(new NoOpRunnable()); in testSubmitRunnable() 128 ExecutorService e = new DirectExecutorService(); in testSubmitRunnable2() local 129 Future<String> future = e.submit(new NoOpRunnable(), TEST_STRING); in testSubmitRunnable2() 140 ExecutorService e = new DirectExecutorService(); in testSubmitPrivilegedAction() 141 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/invoke/ |
D | LambdaConversionExceptionTest.java | 38 } catch (LambdaConversionException e) { in constructor() 39 assertNull(e.getMessage()); in constructor() 40 assertNull(e.getCause()); in constructor() 48 } catch (LambdaConversionException e) { in constructorLString() 49 assertEquals(MESSAGE, e.getMessage()); in constructorLString() 50 assertNull(e.getCause()); in constructorLString() 62 } catch (LambdaConversionException e) { in constructorLStringLThrowable() 63 assertEquals(MESSAGE, e.getMessage()); in constructorLStringLThrowable() 64 assertTrue(e.getCause() instanceof IllegalArgumentException); in constructorLStringLThrowable() 76 } catch (LambdaConversionException e) { in constructorLThrowable() [all …]
|