/libcore/dom/src/test/java/org/w3c/domts/ |
D | DOMTestInnerClass.java | 53 public void assertSame(String assertID, Object expected, Object actual) { in assertSame() argument 54 test.assertSame(assertID, expected, actual); in assertSame() 75 public void assertEqualsIgnoreCase(String assertID, String expected, in assertEqualsIgnoreCase() argument 77 test.assertEqualsIgnoreCase(assertID, expected, actual); in assertEqualsIgnoreCase() 80 public void assertEqualsIgnoreCase(String assertID, Collection expected, in assertEqualsIgnoreCase() argument 82 test.assertEqualsIgnoreCase(assertID, expected, actual); in assertEqualsIgnoreCase() 85 public void assertEqualsIgnoreCase(String assertID, List expected, in assertEqualsIgnoreCase() argument 87 test.assertEqualsIgnoreCase(assertID, expected, actual); in assertEqualsIgnoreCase() 90 public void assertEquals(String assertID, String expected, String actual) { in assertEquals() argument 91 test.assertEquals(assertID, expected, actual); in assertEquals() [all …]
|
D | DOMTestCase.java | 213 public void assertSame(String assertID, Object expected, Object actual) { in assertSame() argument 214 framework.assertSame(this, assertID, expected, actual); in assertSame() 294 String expected, in assertEqualsIgnoreCase() argument 296 framework.assertEqualsIgnoreCase(this, assertID, expected, actual); in assertEqualsIgnoreCase() 312 Collection expected, in assertEqualsIgnoreCase() argument 314 framework.assertEqualsIgnoreCase(this, assertID, expected, actual); in assertEqualsIgnoreCase() 330 List expected, in assertEqualsIgnoreCase() argument 332 framework.assertEqualsIgnoreCase(this, assertID, expected, actual); in assertEqualsIgnoreCase() 348 String expected, in assertEqualsAutoCase() argument 359 framework.assertEqualsIgnoreCase(this, assertID, expected, actual); in assertEqualsAutoCase() [all …]
|
D | DOMTestFramework.java | 47 Object expected, in assertSame() argument 77 String expected, in assertEqualsIgnoreCase() argument 83 Collection expected, in assertEqualsIgnoreCase() argument 89 List expected, in assertEqualsIgnoreCase() argument 95 String expected, in assertEquals() argument 101 int expected, in assertEquals() argument 107 boolean expected, in assertEquals() argument 113 double expected, in assertEquals() argument 119 Collection expected, in assertEquals() argument 125 String expected, in assertNotEqualsIgnoreCase() argument [all …]
|
D | JUnitTestCaseAdapter.java | 202 public void assertSame(DOMTestCase test, String assertID, Object expected, Object actual) { in assertSame() argument 203 boolean same = (expected == actual); in assertSame() 209 if(expected == null || actual == null || in assertSame() 210 !(expected instanceof Node) || !(actual instanceof Node)) { in assertSame() 211 assertEquals(assertID,expected,actual); in assertSame() 217 assertEquals(assertID,expected,actual); in assertSame() 238 …public void assertEqualsIgnoreCase(DOMTestCase test, String assertID, String expected, String actu… in assertEqualsIgnoreCase() argument 239 if (!expected.equalsIgnoreCase(actual)) { in assertEqualsIgnoreCase() 240 assertEquals(assertID,expected, actual); in assertEqualsIgnoreCase() 244 …public void assertEqualsIgnoreCase(DOMTestCase test, String assertID, Collection expected, Collect… in assertEqualsIgnoreCase() argument [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/sql/ |
D | TimestampTest.java | 74 } catch (IllegalArgumentException expected) { } in testValueOfInvalid() 79 } catch (IllegalArgumentException expected) { } in testValueOfInvalid() 84 } catch (IllegalArgumentException expected) { } in testValueOfInvalid() 89 } catch (IllegalArgumentException expected) { } in testValueOfInvalid() 94 } catch (IllegalArgumentException expected) { } in testValueOfInvalid() 99 } catch (IllegalArgumentException expected) { } in testValueOfInvalid() 104 } catch (IllegalArgumentException expected) { } in testValueOfInvalid() 109 } catch (IllegalArgumentException expected) { } in testValueOfInvalid() 114 } catch (IllegalArgumentException expected) { } in testValueOfInvalid() 119 } catch (IllegalArgumentException expected) { } in testValueOfInvalid() [all …]
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | SecretKeyFactoryTest.java | 56 } catch (InvalidKeySpecException expected) { in test_PBKDF2_required_parameters() 62 } catch (InvalidKeySpecException expected) { in test_PBKDF2_required_parameters() 68 } catch (InvalidKeySpecException expected) { in test_PBKDF2_required_parameters() 77 } catch (InvalidKeySpecException expected) { in test_PBKDF2_required_parameters() 83 } catch (InvalidKeySpecException expected) { in test_PBKDF2_required_parameters() 89 } catch (InvalidKeySpecException expected) { in test_PBKDF2_required_parameters() 96 } catch (IllegalArgumentException expected) { in test_PBKDF2_required_parameters() 103 } catch (IllegalArgumentException expected) { in test_PBKDF2_required_parameters() 111 byte[] expected = new byte[] { in test_PBKDF2_b3059950() 117 test_PBKDF2_UTF8(PASSWORD, SALT, ITERATIONS, KEY_LENGTH, expected); in test_PBKDF2_b3059950() [all …]
|
/libcore/support/src/test/java/org/apache/harmony/testframework/ |
D | CharSinkTester.java | 83 private static void assertArrayEquals(char[] expected, char[] actual) { in assertArrayEquals() argument 84 Assert.assertEquals(Arrays.toString(expected), Arrays.toString(actual)); in assertArrayEquals() 94 char[] expected = new char[] { }; in sinkTestNoWriting() local 98 assertArrayEquals(expected, getChars()); in sinkTestNoWriting() 102 char[] expected = new char[] { }; in sinkTestWriteZeroChars() local 111 assertArrayEquals(expected, getChars()); in sinkTestWriteZeroChars() 115 char[] expected = "EFGCDECBA".toCharArray(); in sinkTestWriteCharByChar() local 118 for (char c : expected) { in sinkTestWriteCharByChar() 123 assertArrayEquals(expected, getChars()); in sinkTestWriteCharByChar() 127 char[] expected = "EFGCDECBA".toCharArray(); in sinkTestWriteArray() local [all …]
|
D | SinkTester.java | 84 private static void assertArrayEquals(byte[] expected, byte[] actual) { in assertArrayEquals() argument 85 Assert.assertEquals(Arrays.toString(expected), Arrays.toString(actual)); in assertArrayEquals() 95 byte[] expected = new byte[] { }; in sinkTestNoWriting() 99 assertArrayEquals(expected, getBytes()); in sinkTestNoWriting() 103 byte[] expected = new byte[] { }; in sinkTestWriteZeroBytes() 112 assertArrayEquals(expected, getBytes()); in sinkTestWriteZeroBytes() 116 byte[] expected = new byte[] { 5, 6, 7, 3, 4, 5, 3, 2, 1 }; in sinkTestWriteByteByByte() 119 for (byte b : expected) { in sinkTestWriteByteByByte() 124 assertArrayEquals(expected, getBytes()); in sinkTestWriteByteByByte() 128 byte[] expected = new byte[] { in sinkTestWriteArray() [all …]
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | UrlEncodingTest.java | 55 } catch (URISyntaxException expected) { in testDecodingSpace() 69 } catch (URISyntaxException expected) { in testUriDecodingPartial() 74 } catch (URISyntaxException expected) { in testUriDecodingPartial() 82 } catch (IllegalArgumentException expected) { in testUrlDecoderDecodingPartial() 87 } catch (IllegalArgumentException expected) { in testUrlDecoderDecodingPartial() 95 } catch (URISyntaxException expected) { in testUriDecodingInvalid() 103 } catch (IllegalArgumentException expected) { in testUrlDecoderDecodingInvalid() 111 } catch (IllegalCharsetNameException expected) { in testUrlDecoderFailsOnNullCharset() 112 } catch (NullPointerException expected) { in testUrlDecoderFailsOnNullCharset() 120 } catch (IllegalCharsetNameException expected) { in testUrlDecoderFailsOnEmptyCharset() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
D | AbstractPreferencesTest.java | 103 } catch (IllegalArgumentException expected) { in testConstructor() 108 } catch (IllegalArgumentException expected) { in testConstructor() 113 } catch (IllegalArgumentException expected) { in testConstructor() 118 } catch (IllegalArgumentException expected) { in testConstructor() 123 } catch (NullPointerException expected) { in testConstructor() 217 } catch (NullPointerException expected) { in testGet() 230 } catch (IllegalStateException expected) { in testGet() 235 } catch (NullPointerException expected) { in testGet() 243 } catch (NullPointerException expected) { in testGetBoolean() 256 } catch (NullPointerException expected) { in testPutByteArray() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | WrappedCharBufferTest2.java | 91 } catch (ReadOnlyBufferException expected) { in testPutcharArrayintint() 92 } catch (NullPointerException expected) { in testPutcharArrayintint() 97 } catch (ReadOnlyBufferException expected) { in testPutcharArrayintint() 98 } catch (BufferOverflowException expected) { in testPutcharArrayintint() 103 } catch (ReadOnlyBufferException expected) { in testPutcharArrayintint() 104 } catch (IndexOutOfBoundsException expected) { in testPutcharArrayintint() 113 } catch (ReadOnlyBufferException expected) { in testPutCharBuffer() 118 } catch (ReadOnlyBufferException expected) { in testPutCharBuffer() 119 } catch (NullPointerException expected) { in testPutCharBuffer() 124 } catch (ReadOnlyBufferException expected) { in testPutCharBuffer() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyRepTest.java | 49 } catch (NullPointerException expected) { in testKeyRep02() 54 } catch (NullPointerException expected) { in testKeyRep02() 59 } catch (NullPointerException expected) { in testKeyRep02() 64 } catch (NullPointerException expected) { in testKeyRep02() 73 } catch (NotSerializableException expected) { in testReadResolve01() 80 } catch (NotSerializableException expected) { in testReadResolve01() 87 } catch (NotSerializableException expected) { in testReadResolve01() 96 } catch (NotSerializableException expected) { in testReadResolve02() 103 } catch (NotSerializableException expected) { in testReadResolve02() 110 } catch (NotSerializableException expected) { in testReadResolve02() [all …]
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | MathContextTest.java | 43 } catch (IllegalArgumentException expected) { in testConstructor() 48 } catch (IllegalArgumentException expected) { in testConstructor() 55 } catch (IllegalArgumentException expected) { in testConstructor() 62 } catch (IllegalArgumentException expected) { in testConstructor() 67 } catch (IllegalArgumentException expected) { in testConstructor() 72 } catch (IllegalArgumentException expected) { in testConstructor() 79 } catch (IllegalArgumentException expected) { in testConstructor() 84 } catch (IllegalArgumentException expected) { in testConstructor()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldOutputStreamTest.java | 55 boolean expected; in test_write$B() 64 expected = true; in test_write$B() 66 for (int i = 0; i < (shortByteArray.length) && expected; i++) { in test_write$B() 67 expected = (shortByteArray[i] == buffer[i]); in test_write$B() 70 expected); in test_write$B() 80 boolean expected; in test_write$BII() 89 expected = true; in test_write$BII() 91 for (int i = 6, j = 0; j < 5 && expected; i++, j++) { in test_write$BII() 92 expected = (shortByteArray[i] == buffer[j]); in test_write$BII() 95 expected); in test_write$BII()
|
D | FileInputStreamTest.java | 89 } catch (FileNotFoundException expected) { in testDirectories() 113 } catch (IOException expected) { in testFileDescriptorOwnership() 118 } catch (IOException expected) { in testFileDescriptorOwnership() 123 } catch (IOException expected) { in testFileDescriptorOwnership() 128 } catch (IOException expected) { in testFileDescriptorOwnership() 138 } catch (IOException expected) { in testFileDescriptorOwnership() 143 } catch (IOException expected) { in testFileDescriptorOwnership() 148 } catch (IOException expected) { in testFileDescriptorOwnership() 153 } catch (IOException expected) { in testFileDescriptorOwnership() 169 } catch (IOException expected) { in testClose() [all …]
|
D | DataOutputStreamTest.java | 98 byte[] expected = new byte[2 + 65535]; in test_writeUTF() 99 expected[0] = (byte) 0xff; in test_writeUTF() 100 expected[1] = (byte) 0xff; in test_writeUTF() 102 expected[2] = (byte) 0xd9; in test_writeUTF() 103 expected[3] = (byte) 0xa6; in test_writeUTF() 105 expected[4] = (byte) 0xe2; in test_writeUTF() 106 expected[5] = (byte) 0x98; in test_writeUTF() 107 expected[6] = (byte) 0x83; in test_writeUTF() 108 Arrays.fill(expected, 7, expected.length, (byte) 'a'); in test_writeUTF() 109 assertEquals(Arrays.toString(expected), Arrays.toString(bytes.toByteArray())); in test_writeUTF() [all …]
|
D | FilterInputStreamNullSourceTest.java | 53 } catch (NullPointerException expected) { in testCipherInputStream() 61 } catch (NullPointerException expected) { in testCipherInputStream() 82 } catch (NullPointerException expected) { in testInflaterInputStream() 87 } catch (NullPointerException expected) { in testInflaterInputStream() 92 } catch (NullPointerException expected) { in testInflaterInputStream() 109 } catch (IOException expected) { in assertReadsFailWithIoException() 115 } catch (IOException expected) { in assertReadsFailWithIoException() 125 } catch (NullPointerException expected) { in assertReadsFailWithNullPointerException() 131 } catch (NullPointerException expected) { in assertReadsFailWithNullPointerException() 137 } catch (NullPointerException expected) { in assertReadsFailWithNullPointerException()
|
/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
D | hc_nodeappendchilddocfragment.java | 79 java.util.List expected = new java.util.ArrayList(); in runTest() local 80 expected.add("em"); in runTest() 81 expected.add("strong"); in runTest() 82 expected.add("code"); in runTest() 83 expected.add("sup"); in runTest() 84 expected.add("var"); in runTest() 85 expected.add("acronym"); in runTest() 86 expected.add("br"); in runTest() 87 expected.add("b"); in runTest() 108 assertEqualsAutoCase("element", "nodeNames", expected, result); in runTest()
|
D | nodeappendchilddocfragment.java | 75 java.util.List expected = new java.util.ArrayList(); in runTest() local 76 expected.add("employeeId"); in runTest() 77 expected.add("name"); in runTest() 78 expected.add("position"); in runTest() 79 expected.add("salary"); in runTest() 80 expected.add("gender"); in runTest() 81 expected.add("address"); in runTest() 82 expected.add("newChild1"); in runTest() 83 expected.add("newChild2"); in runTest() 104 assertEquals("elementNames", expected, result); in runTest()
|
D | hc_nodechildnodesappendchild.java | 80 java.util.List expected = new java.util.ArrayList(); in runTest() local 81 expected.add("em"); in runTest() 82 expected.add("strong"); in runTest() 83 expected.add("code"); in runTest() 84 expected.add("sup"); in runTest() 85 expected.add("var"); in runTest() 86 expected.add("acronym"); in runTest() 87 expected.add("br"); in runTest() 107 assertEqualsAutoCase("element", "childElements", expected, actual); in runTest()
|
D | hc_nodeinsertbefore.java | 76 java.util.List expected = new java.util.ArrayList(); in runTest() local 77 expected.add("em"); in runTest() 78 expected.add("strong"); in runTest() 79 expected.add("code"); in runTest() 80 expected.add("br"); in runTest() 81 expected.add("sup"); in runTest() 82 expected.add("var"); in runTest() 83 expected.add("acronym"); in runTest() 102 assertEqualsAutoCase("element", "nodeNames", expected, actual); in runTest()
|
D | hc_nodechildnodes.java | 73 java.util.List expected = new java.util.ArrayList(); in runTest() local 74 expected.add("em"); in runTest() 75 expected.add("strong"); in runTest() 76 expected.add("code"); in runTest() 77 expected.add("sup"); in runTest() 78 expected.add("var"); in runTest() 79 expected.add("acronym"); in runTest() 97 assertEqualsAutoCase("element", "elementNames", expected, actual); in runTest()
|
D | hc_nodelisttraverselist.java | 72 java.util.List expected = new java.util.ArrayList(); in runTest() local 73 expected.add("em"); in runTest() 74 expected.add("strong"); in runTest() 75 expected.add("code"); in runTest() 76 expected.add("sup"); in runTest() 77 expected.add("var"); in runTest() 78 expected.add("acronym"); in runTest() 97 assertEqualsAutoCase("element", "nodeNames", expected, result); in runTest()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | UUIDTest.java | 30 } catch (IllegalArgumentException expected) { } in testFromStringInvalidValues() 35 } catch (IllegalArgumentException expected) { } in testFromStringInvalidValues() 40 } catch (IllegalArgumentException expected) { } in testFromStringInvalidValues() 45 } catch (IllegalArgumentException expected) { } in testFromStringInvalidValues() 50 } catch (IllegalArgumentException expected) { } in testFromStringInvalidValues()
|