/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyStore4Test.java | 46 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/ |
D | ArrayTest.java | 46 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/libcore/java/lang/ |
D | OldStringBufferTest.java | 29 fail("StringIndexOutOfBoundsException was not thrown."); in test_deleteCharAtI() 36 fail("StringIndexOutOfBoundsException was not thrown."); in test_deleteCharAtI() 52 fail("IndexOutOfBoundsException is not thrown."); in test_getCharsII$CI() 59 fail("IndexOutOfBoundsException is not thrown."); in test_getCharsII$CI() 66 fail("IndexOutOfBoundsException is not thrown."); in test_getCharsII$CI() 73 fail("IndexOutOfBoundsException is not thrown."); in test_getCharsII$CI() 80 fail("IndexOutOfBoundsException is not thrown."); in test_getCharsII$CI() 87 fail("IndexOutOfBoundsException is not thrown."); in test_getCharsII$CI() 96 fail("StringIndexOutOfBoundsException is not thrown."); in test_insertID() 103 fail("StringIndexOutOfBoundsException is not thrown."); in test_insertID() [all …]
|
D | OldSystemTest.java | 40 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 …]
|
D | OldRuntimeTest.java | 50 fail("IllegalStateException was not thrown."); in test_addShutdownHook() 60 fail(t.getMessage()); in test_addShutdownHook() 65 fail("IllegalArgumentException was not thrown."); in test_addShutdownHook() 102 fail("NullPointerException should be thrown."); in test_execLjava_lang_StringLjava_lang_StringArray() 104 fail("IOException was thrown."); in test_execLjava_lang_StringLjava_lang_StringArray() 124 fail("IllegalArgumentException should be thrown."); in test_execLjava_lang_StringLjava_lang_StringArray() 128 fail("IOException was thrown."); in test_execLjava_lang_StringLjava_lang_StringArray() 140 fail("NullPointerException should be thrown."); in test_execLjava_lang_StringArrayLjava_lang_StringArray() 142 fail("IOException was thrown."); in test_execLjava_lang_StringArrayLjava_lang_StringArray() 149 fail("NullPointerException should be thrown."); in test_execLjava_lang_StringArrayLjava_lang_StringArray() [all …]
|
/libcore/luni/src/test/java/tests/java/security/ |
D | SecureRandomTest.java | 64 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/ |
D | DESKeySpecTest.java | 109 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 …]
|
D | DESedeKeySpecTest.java | 46 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 …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | ArrayTest.java | 37 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/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
D | Matcher2Test.java | 42 fail("IllegalStateException expected"); in testErrorConditions() 48 fail("IllegalStateException expected"); in testErrorConditions() 54 fail("IllegalStateException expected"); in testErrorConditions() 60 fail("IllegalStateException expected"); in testErrorConditions() 66 fail("IllegalStateException expected"); in testErrorConditions() 72 fail("IllegalStateException expected"); in testErrorConditions() 79 fail("IllegalArgumentException expected"); in testErrorConditions() 100 fail("IndexOutOfBoundsException expected"); in testErrorConditions2() 106 fail("IndexOutOfBoundsException expected"); in testErrorConditions2() 112 fail("IndexOutOfBoundsException expected"); in testErrorConditions2() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | Matcher2Test.java | 44 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/ |
D | OldFileChannelTest.java | 210 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/ |
D | OldResultSetMetaDataTest.java | 43 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | ReadOnlyCharBufferTest.java | 47 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 …]
|
D | ReadOnlyIntBufferTest.java | 43 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 …]
|
D | ReadOnlyLongBufferTest.java | 43 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 …]
|
D | ReadOnlyShortBufferTest.java | 43 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 …]
|
D | ReadOnlyDoubleBufferTest.java | 44 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 …]
|
D | ReadOnlyFloatBufferTest.java | 43 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 …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldDataInputOutputStreamTest.java | 42 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 …]
|
D | OldObjectInputStreamGetFieldTest.java | 104 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/ |
D | CertStore2Test.java | 49 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 …]
|
D | CertificateFactorySpiTest.java | 59 fail("UnsupportedOperationException must be thrown"); in testCertificateFactorySpi01() 64 fail("UnsupportedOperationException must be thrown"); in testCertificateFactorySpi01() 70 fail("UnsupportedOperationException must be thrown"); in testCertificateFactorySpi01() 75 fail("UnsupportedOperationException must be thrown"); in testCertificateFactorySpi01() 82 fail("CertificateException must be thrown"); in testCertificateFactorySpi01() 89 fail("CertificateException must be thrown"); in testCertificateFactorySpi01() 97 fail("CRLException must be thrown"); in testCertificateFactorySpi01() 105 fail("CRLException must be thrown"); in testCertificateFactorySpi01() 122 fail("CertificateException must be thrown"); in testCertificateFactorySpi02() 128 fail("CertificateException must be thrown"); in testCertificateFactorySpi02() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | BufferedOutputStreamTest.java | 59 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | StringTest.java | 108 fail("No IndexOutOfBoundsException"); in test_Constructor$BII() 127 fail("Should throw UnsupportedEncodingException"); in test_Constructor$BIILjava_lang_String() 150 fail("No IndexOutOfBoundsException"); in test_Constructor$CII() 173 fail("No NPE"); in test_ConstructorLjava_lang_StringBuilder() 194 fail("No NPE"); in test_Constructor$III() 200 fail("No IOOBE, negative offset"); in test_Constructor$III() 206 fail("No IOOBE, negative count"); in test_Constructor$III() 212 fail("No IOOBE, negative count"); in test_Constructor$III() 218 fail("No IOOBE, too large"); in test_Constructor$III() 236 fail("No NPE"); in test_contentEqualsLjava_lang_CharSequence() [all …]
|