Home
last modified time | relevance | path

Searched refs:e (Results 1 – 25 of 1377) sorted by relevance

12345678910>>...56

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyStore4Test.java45 } 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/
DSAXParseExceptionTest.java47 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 …]
DSAXExceptionTest.java29 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 …]
DHandlerBaseTest.java41 } 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/
DDefaultHandler2Test.java37 } 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/
DAssertionErrorTest.java25 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 …]
DExceptionInInitializerErrorTest.java26 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 …]
DTypeNotPresentExceptionTest.java27 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/
DDefaultHandlerTest.java42 } 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 …]
DXMLReaderFactoryTest.java38 } 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 …]
DXMLFilterImplTest.java106 } 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/
DCertStore2Test.java48 } 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/
DSecureRandomTest.java92 } 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/
DKeyStoreTest.java55 } 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/
DArrayTest.java36 } 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/
DPatternSyntaxExceptionTest.java31 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/
DDESKeySpecTest.java111 } 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 …]
DDESedeKeySpecTest.java48 } 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/
DAlgorithmParameterAsymmetricHelper.java47 } 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 …]
DAlgorithmParameterSymmetricHelper.java55 } 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/
DHashMap.java208 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/
DAbstractExecutorServiceTest.java67 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/
DSerializationStressTest1.java384 } 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/
DOldFileChannelTest.java50 } 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/
DMatcher2Test.java45 } 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 …]

12345678910>>...56