Home
last modified time | relevance | path

Searched refs:fail (Results 1 – 25 of 994) sorted by relevance

12345678910>>...40

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyStore4Test.java46 fail("test class not available"); in setUp()
52 fail("test keystore not available"); in setUp()
70 fail("unexpected exception: " + e); in testGetInstanceString()
75 fail("expected KeyStoreException"); in testGetInstanceString()
82 fail("expected NullPointerException"); in testGetInstanceString()
86 fail("unexpected exception: " + e); in testGetInstanceString()
96 fail("unexpected exception: " + e); in testGetInstanceStringString()
98 fail("unexpected exception: " + e); in testGetInstanceStringString()
103 fail("expected KeyStoreException"); in testGetInstanceStringString()
107 fail("unexpected exception: " + e); in testGetInstanceStringString()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DArrayTest.java46 try { Array.getBoolean(bytes, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean()
47 try { Array.getBoolean(chars, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean()
48 try { Array.getBoolean(doubles, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean()
49 try { Array.getBoolean(floats, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean()
50 try { Array.getBoolean(ints, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean()
51 try { Array.getBoolean(longs, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean()
52 try { Array.getBoolean(shorts, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean()
53 try { Array.getBoolean(null, 0); fail(); } catch (NullPointerException expected) {} in testGetBoolean()
57 try { Array.getByte(booleans, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetByte()
59 try { Array.getByte(chars, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetByte()
[all …]
/libcore/luni/src/test/java/tests/java/security/
DSecureRandomTest.java64 fail("next failed"); in testNext()
75 fail("setSeed failed"); in testSetSeedlong()
85 fail("nextBytes failed"); in testNextBytes()
91 fail("expected exception"); in testNextBytes()
104 fail("incorrect SecureRandom implementation" + p.getName()); in testSecureRandom()
116 fail("No setSeed"); in testSecureRandombyteArray()
130 fail(e.toString()); in testGetInstanceString()
133 fail("getInstance failed"); in testGetInstanceString()
143 fail("getInstance failed"); in testGetInstanceStringString()
148 fail("expected NoSuchAlgorithmException"); in testGetInstanceStringString()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DDESKeySpecTest.java109 fail("Should raise an NullPointerException " in testDESKeySpec()
113 fail("Should raise an NullPointerException " in testDESKeySpec()
118 fail("Should raise an InvalidKeyException on a short byte array."); in testDESKeySpec()
120 fail("Unexpected NullPointerException was thrown."); in testDESKeySpec()
126 fail("Unexpected NullPointerException was thrown."); in testDESKeySpec()
128 fail("Unexpected InvalidKeyException was thrown."); in testDESKeySpec()
132 fail("Should raise an NullPointerException " in testDESKeySpec()
136 fail("Should raise an NullPointerException " in testDESKeySpec()
141 fail("Should raise an InvalidKeyException on a short byte array."); in testDESKeySpec()
143 fail("Unexpected NullPointerException was thrown."); in testDESKeySpec()
[all …]
DDESedeKeySpecTest.java46 fail("Should raise an NullPointerException " in testDESedeKeySpec()
50 fail("Should raise an NullPointerException " in testDESedeKeySpec()
55 fail("Should raise an InvalidKeyException on a short byte array."); in testDESedeKeySpec()
57 fail("Unexpected NullPointerException was thrown."); in testDESedeKeySpec()
65 fail("Unexpected NullPointerException was thrown."); in testDESedeKeySpec()
67 fail("Unexpected InvalidKeyException was thrown."); in testDESedeKeySpec()
71 fail("Should raise an NullPointerException " in testDESedeKeySpec()
75 fail("Should raise an NullPointerException " in testDESedeKeySpec()
82 fail("Should raise an InvalidKeyException on a short byte array."); in testDESedeKeySpec()
84 fail("Unexpected NullPointerException was thrown."); in testDESedeKeySpec()
[all …]
DPBEKeySpecTest.java48 fail("Unexpected NullPointerException was thrown."); in testPBEKeySpec1()
77 fail("Unexpected IllegalArgumentException was thrown."); in testPBEKeySpec2()
79 fail("Unexpected NullPointerException was thrown."); in testPBEKeySpec2()
84 fail("A NullPointerException should be was thrown " in testPBEKeySpec2()
87 fail("Unexpected IllegalArgumentException was thrown."); in testPBEKeySpec2()
93 fail("An IllegalArgumentException should be thrown " in testPBEKeySpec2()
100 fail("An IllegalArgumentException should be thrown " in testPBEKeySpec2()
107 fail("An IllegalArgumentException should be thrown " in testPBEKeySpec2()
114 fail("An IllegalArgumentException should be thrown " in testPBEKeySpec2()
121 fail("An IllegalArgumentException should be thrown " in testPBEKeySpec2()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DArrayTest.java37 fail("Exception during get test : " + e.getMessage()); in test_getLjava_lang_ObjectI()
48 fail("Passing non-array failed to throw exception"); in test_getLjava_lang_ObjectI()
58 fail("Invalid index failed to throw exception"); in test_getLjava_lang_ObjectI()
68 fail("Exception during get test : " + e.getMessage()); in test_getLjava_lang_ObjectI()
79 fail("Passing non-array failed to throw exception"); in test_getLjava_lang_ObjectI()
89 fail("Invalid index failed to throw exception"); in test_getLjava_lang_ObjectI()
105 fail("Exception during get test : " + e.getMessage()); in test_getBooleanLjava_lang_ObjectI()
115 fail("Passing non-array failed to throw exception"); in test_getBooleanLjava_lang_ObjectI()
125 fail("Invalid index failed to throw exception"); in test_getBooleanLjava_lang_ObjectI()
135 fail("Null argument failed to throw NPE"); in test_getBooleanLjava_lang_ObjectI()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DMatcher2Test.java44 fail("IllegalStateException expected"); in testErrorConditions()
50 fail("IllegalStateException expected"); in testErrorConditions()
56 fail("IllegalStateException expected"); in testErrorConditions()
62 fail("IllegalStateException expected"); in testErrorConditions()
68 fail("IllegalStateException expected"); in testErrorConditions()
74 fail("IllegalStateException expected"); in testErrorConditions()
81 fail("IllegalArgumentException expected"); in testErrorConditions()
102 fail("IndexOutOfBoundsException expected"); in testErrorConditions2()
108 fail("IndexOutOfBoundsException expected"); in testErrorConditions2()
114 fail("IndexOutOfBoundsException expected"); in testErrorConditions2()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/channels/
DOldFileChannelTest.java210 fail("should throw IllegalArgumentException"); in test_tryLockJJZ_IllegalArgument()
217 fail("should throw IllegalArgumentException"); in test_tryLockJJZ_IllegalArgument()
224 fail("should throw IllegalArgumentException"); in test_tryLockJJZ_IllegalArgument()
231 fail("should throw IllegalArgumentException"); in test_tryLockJJZ_IllegalArgument()
264 fail("should throw IllegalArgumentException"); in test_readLByteBufferJ_IllegalArgument()
271 fail("should throw IllegalArgumentException"); in test_readLByteBufferJ_IllegalArgument()
278 fail("should throw IllegalArgumentException"); in test_readLByteBufferJ_IllegalArgument()
287 fail("should throw IllegalArgumentException"); in test_readLByteBufferJ_IllegalArgument()
295 fail("should throw IllegalArgumentException"); in test_readLByteBufferJ_IllegalArgument()
303 fail("should throw IllegalArgumentException"); in test_readLByteBufferJ_IllegalArgument()
[all …]
/libcore/luni/src/test/java/libcore/java/sql/
DOldResultSetMetaDataTest.java43 fail("Couldn't get ResultSetMetaData object"); in setUp()
53 fail("Couldn't close Statement object"); in tearDown()
63 fail("SQLException is thrown: " + e.getMessage()); in testGetCatalogName()
69 fail("Exception expected"); in testGetCatalogName()
82 fail("SQLException is thrown: " + e.getMessage()); in testGetColumnClassName()
89 fail("SQLException is thrown"); in testGetColumnClassName()
96 fail("SQLException is thrown"); in testGetColumnClassName()
105 fail("SQLException is thrown: " + e.getMessage()); in testGetColumnCount()
111 fail("Exception expected"); in testGetColumnCount()
127 fail("SQLException is thrown: " + e.getMessage()); in testGetColumnLabel()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DOldSystemTest.java40 fail("ArrayStoreException is not thrown."); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
48 fail("ArrayStoreException is not thrown."); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
56 fail("ArrayStoreException is not thrown."); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
64 fail("ArrayStoreException is not thrown."); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
72 fail("ArrayStoreException is not thrown."); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
80 fail("ArrayStoreException is not thrown."); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
88 fail("NullPointerException is not thrown."); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
96 fail("NullPointerException is not thrown."); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
103 fail("IndexOutOfBoundsException is not thrown."); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
110 fail("IndexOutOfBoundsException is not thrown."); in test_arraycopyLjava_lang_ObjectILjava_lang_ObjectII()
[all …]
DOldRuntimeTest.java56 fail("IllegalStateException was not thrown."); in test_addShutdownHook()
66 fail(t.getMessage()); in test_addShutdownHook()
71 fail("IllegalArgumentException was not thrown."); in test_addShutdownHook()
108 fail("NullPointerException should be thrown."); in test_execLjava_lang_StringLjava_lang_StringArray()
110 fail("IOException was thrown."); in test_execLjava_lang_StringLjava_lang_StringArray()
130 fail("IllegalArgumentException should be thrown."); in test_execLjava_lang_StringLjava_lang_StringArray()
134 fail("IOException was thrown."); in test_execLjava_lang_StringLjava_lang_StringArray()
146 fail("NullPointerException should be thrown."); in test_execLjava_lang_StringArrayLjava_lang_StringArray()
148 fail("IOException was thrown."); in test_execLjava_lang_StringArrayLjava_lang_StringArray()
155 fail("NullPointerException should be thrown."); in test_execLjava_lang_StringArrayLjava_lang_StringArray()
[all …]
DOldStringTest.java47 fail("IndexOutOfBoundsException was not thrown."); in test_charAtI()
54 fail("IndexOutOfBoundsException was not thrown."); in test_charAtI()
61 fail("IndexOutOfBoundsException was not thrown."); in test_charAtI()
73 fail("NullPointerException is not thrown."); in test_endsWithLjava_lang_String()
95 fail("Expected IndexOutOfBoundsException"); in test_getBytesII$BI()
102 fail("IndexOutOfBoundsException was not thrown."); in test_getBytesII$BI()
109 fail("IndexOutOfBoundsException was not thrown."); in test_getBytesII$BI()
117 fail("Expected IndexOutOfBoundsException"); in test_getCharsII$CI()
124 fail("IndexOutOfBoundsException was not thrown."); in test_getCharsII$CI()
131 fail("IndexOutOfBoundsException was not thrown."); in test_getCharsII$CI()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DReadOnlyCharBufferTest.java47 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testArray()
60 fail("Should throw Exception"); //$NON-NLS-1$ in testArrayOffset()
68 fail("Should throw Exception"); //$NON-NLS-1$ in testCompact()
77 fail("Should throw Exception"); //$NON-NLS-1$ in testPutchar()
87 fail("Should throw Exception"); //$NON-NLS-1$ in testPutcharArray()
93 fail("Should throw Exception"); //$NON-NLS-1$ in testPutcharArray()
103 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutcharArrayintint()
109 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutcharArrayintint()
115 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutcharArrayintint()
121 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutcharArrayintint()
[all …]
DReadOnlyFloatBufferTest.java43 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testArray()
57 fail("Should throw Exception"); //$NON-NLS-1$ in testArrayOffset()
66 fail("Should throw Exception"); //$NON-NLS-1$ in testCompact()
75 fail("Should throw Exception"); //$NON-NLS-1$ in testPutfloat()
85 fail("Should throw Exception"); //$NON-NLS-1$ in testPutfloatArray()
91 fail("Should throw Exception"); //$NON-NLS-1$ in testPutfloatArray()
101 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutfloatArrayintint()
107 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutfloatArrayintint()
113 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutfloatArrayintint()
119 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutfloatArrayintint()
[all …]
DReadOnlyLongBufferTest.java43 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testArray()
57 fail("Should throw Exception"); //$NON-NLS-1$ in testArrayOffset()
66 fail("Should throw Exception"); //$NON-NLS-1$ in testCompact()
75 fail("Should throw Exception"); //$NON-NLS-1$ in testPutlong()
85 fail("Should throw Exception"); //$NON-NLS-1$ in testPutlongArray()
91 fail("Should throw Exception"); //$NON-NLS-1$ in testPutlongArray()
101 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutlongArrayintint()
107 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutlongArrayintint()
113 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutlongArrayintint()
119 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutlongArrayintint()
[all …]
DReadOnlyDoubleBufferTest.java44 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testArray()
57 fail("Should throw Exception"); //$NON-NLS-1$ in testArrayOffset()
65 fail("Should throw Exception"); //$NON-NLS-1$ in testCompact()
74 fail("Should throw Exception"); //$NON-NLS-1$ in testPutdouble()
84 fail("Should throw Exception"); //$NON-NLS-1$ in testPutdoubleArray()
90 fail("Should throw Exception"); //$NON-NLS-1$ in testPutdoubleArray()
100 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutdoubleArrayintint()
106 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutdoubleArrayintint()
112 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutdoubleArrayintint()
118 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutdoubleArrayintint()
[all …]
DReadOnlyShortBufferTest.java43 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testArray()
57 fail("Should throw Exception"); //$NON-NLS-1$ in testArrayOffset()
66 fail("Should throw Exception"); //$NON-NLS-1$ in testCompact()
75 fail("Should throw Exception"); //$NON-NLS-1$ in testPutshort()
85 fail("Should throw Exception"); //$NON-NLS-1$ in testPutshortArray()
91 fail("Should throw Exception"); //$NON-NLS-1$ in testPutshortArray()
101 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutshortArrayintint()
107 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutshortArrayintint()
113 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutshortArrayintint()
119 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutshortArrayintint()
[all …]
DReadOnlyIntBufferTest.java43 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testArray()
57 fail("Should throw Exception"); //$NON-NLS-1$ in testArrayOffset()
66 fail("Should throw Exception"); //$NON-NLS-1$ in testCompact()
75 fail("Should throw Exception"); //$NON-NLS-1$ in testPutint()
85 fail("Should throw Exception"); //$NON-NLS-1$ in testPutintArray()
91 fail("Should throw Exception"); //$NON-NLS-1$ in testPutintArray()
101 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutintArrayintint()
107 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutintArrayintint()
113 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutintArrayintint()
119 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutintArrayintint()
[all …]
DWrappedCharBufferTest2.java42 fail("Should throw Exception"); //$NON-NLS-1$ in testWrappedCharSequence_IllegalArg()
48 fail("Should throw Exception"); //$NON-NLS-1$ in testWrappedCharSequence_IllegalArg()
54 fail("Should throw Exception"); //$NON-NLS-1$ in testWrappedCharSequence_IllegalArg()
60 fail("Should throw Exception"); //$NON-NLS-1$ in testWrappedCharSequence_IllegalArg()
66 fail("Should throw Exception"); //$NON-NLS-1$ in testWrappedCharSequence_IllegalArg()
75 fail("Should throw UnsupportedOperationException"); //$NON-NLS-1$ in testArray()
84 fail("Should throw ReadOnlyBufferException"); //$NON-NLS-1$ in testPutcharArrayintint()
90 fail("Should throw NullPointerException"); //$NON-NLS-1$ in testPutcharArrayintint()
96 fail("Should throw BufferOverflowException"); //$NON-NLS-1$ in testPutcharArrayintint()
102 fail("Should throw IndexOutOfBoundsException"); //$NON-NLS-1$ in testPutcharArrayintint()
[all …]
/libcore/luni/src/test/java/libcore/java/io/
DOldDataInputOutputStreamTest.java42 fail("Test 1: IOException expected."); in test_read_writeBoolean()
55 fail("Test 3: EOFException expected."); in test_read_writeBoolean()
63 fail("Test 4: IOException expected."); in test_read_writeBoolean()
74 fail("Test 1: IOException expected."); in test_read_writeByte()
87 fail("Test 3: EOFException expected."); in test_read_writeByte()
95 fail("Test 4: IOException expected."); in test_read_writeByte()
106 fail("Test 1: IOException expected."); in test_read_writeChar()
119 fail("Test 3: EOFException expected."); in test_read_writeChar()
127 fail("Test 4: IOException expected."); in test_read_writeChar()
138 fail("Test 1: IOException expected."); in test_read_writeDouble()
[all …]
DOldObjectInputStreamGetFieldTest.java104 fail("IllegalArgumentException expected."); in test_defaultedLjava_lang_String()
129 fail("IllegalArgumentException expected for not existing name " + in test_getException()
135 fail("IllegalArgumentException expected for not existing name " + in test_getException()
141 fail("IllegalArgumentException expected for not existing name " + in test_getException()
147 fail("IllegalArgumentException expected for not existing name " + in test_getException()
153 fail("IllegalArgumentException expected for not existing name " + in test_getException()
159 fail("IllegalArgumentException expected for not existing name " + in test_getException()
165 fail("IllegalArgumentException expected for not existing name " + in test_getException()
171 fail("IllegalArgumentException expected for not existing name " + in test_getException()
177 fail("IllegalArgumentException expected for not existing name " + in test_getException()
[all …]
/libcore/luni/src/test/java/tests/security/cert/
DCertStore2Test.java49 fail("unexpected exception: " + e); in testGetInstanceStringCertStoreParameters()
51 fail("unexpected exception: " + e); in testGetInstanceStringCertStoreParameters()
59 fail("unexpected exception: " + e); in testGetInstanceStringCertStoreParameters()
61 fail("unexpected exception: " + e); in testGetInstanceStringCertStoreParameters()
66 fail("expected NoSuchAlgorithmException"); in testGetInstanceStringCertStoreParameters()
68 fail("unexpected exception: " + e); in testGetInstanceStringCertStoreParameters()
76 fail("expected InvalidAlgorithmParameterException"); in testGetInstanceStringCertStoreParameters()
80 fail("unexpected exception: " + e); in testGetInstanceStringCertStoreParameters()
95 fail("unexpected exception: " + e); in testGetInstanceStringCertStoreParametersString()
97 fail("unexpected exception: " + e); in testGetInstanceStringCertStoreParametersString()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DBufferedOutputStreamTest.java59 fail("should throw NullPointerException"); in test_flush_Constructor_NullStream()
65 fail("should throw NullPointerException"); in test_flush_Constructor_NullStream()
73 fail("should throw NullPointerException"); in test_flush_Constructor_NullStream()
79 fail("should throw NullPointerException"); in test_flush_Constructor_NullStream()
86 fail("should throw IllegalArgumentException"); in test_flush_Constructor_NullStream()
92 fail("should throw IllegalArgumentException"); in test_flush_Constructor_NullStream()
172 fail("should throw NullPointerException"); in test_write_$BII_Exception()
179 fail("should throw NullPointerException"); in test_write_$BII_Exception()
186 fail("should throw NullPointerException"); in test_write_$BII_Exception()
193 fail("should throw NullPointerException"); in test_write_$BII_Exception()
[all …]
/libcore/luni/src/test/java/tests/security/interfaces/
DDSAKeyPairGeneratorTest.java54 fail("Unexpected exception for SecureRandom: " + e); in test_DSAKeyPairGenerator01()
60 fail("Unexpected exception: " + e); in test_DSAKeyPairGenerator01()
65 fail("InvalidParameterException was not thrown"); in test_DSAKeyPairGenerator01()
69 fail(e + " was thrown instead of InvalidParameterException"); in test_DSAKeyPairGenerator01()
73 fail("InvalidParameterException was not thrown"); in test_DSAKeyPairGenerator01()
77 fail(e + " was thrown instead of InvalidParameterException"); in test_DSAKeyPairGenerator01()
93 fail("Unexpected exception for SecureRandom: " + e); in test_DSAKeyPairGenerator02()
99 fail("InvalidParameterException was not thrown"); in test_DSAKeyPairGenerator02()
103 fail("Incorrect exception's message: " + str); in test_DSAKeyPairGenerator02()
106 fail(e + " was thrown instead of InvalidParameterException"); in test_DSAKeyPairGenerator02()
[all …]

12345678910>>...40