/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 | 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 …]
|
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 …]
|
/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 | MathTest.java | 47 long expected = (long) a + (long) b; in testAddExactI() local 49 assertEquals(expected, Math.addExact(a, b)); in testAddExactI() 51 if (expected == a + b) { in testAddExactI() 58 long expected = (long) a - (long) b; in testSubtractExactI() local 60 assertEquals(expected, Math.subtractExact(a, b)); in testSubtractExactI() 63 if (expected == a - b) { in testSubtractExactI() 70 long expected = (long) a * (long) b; in testMultiplyExactI() local 72 assertEquals(expected, Math.multiplyExact(a, b)); in testMultiplyExactI() 74 if (expected == a * b) { in testMultiplyExactI() 81 long expected = (long) a + 1L; in testIncrementExactI() local [all …]
|
D | StrictMathTest.java | 44 long expected = (long) a + (long) b; in testAddExactI() local 46 assertEquals(expected, StrictMath.addExact(a, b)); in testAddExactI() 48 if (expected == a + b) { in testAddExactI() 55 long expected = (long) a - (long) b; in testSubtractExactI() local 57 assertEquals(expected, StrictMath.subtractExact(a, b)); in testSubtractExactI() 60 if (expected == a - b) { in testSubtractExactI() 67 long expected = (long) a * (long) b; in testMultiplyExactI() local 69 assertEquals(expected, StrictMath.multiplyExact(a, b)); in testMultiplyExactI() 71 if (expected == a * b) { in testMultiplyExactI() 97 BigInteger expected = BigInteger.valueOf(a).add(BigInteger.valueOf(b)); in testAddExactL() local [all …]
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldBidiTest.java | 79 } catch (IllegalArgumentException expected) { in testReorderVisuallyIllegalArguments() 86 } catch (IllegalArgumentException expected) { in testReorderVisuallyIllegalArguments() 93 } catch (IllegalArgumentException expected) { in testReorderVisuallyIllegalArguments() 101 } catch (IllegalArgumentException expected) { in testReorderVisuallyIllegalArguments() 109 } catch (IllegalArgumentException expected) { in testReorderVisuallyIllegalArguments() 118 } catch (IllegalArgumentException expected) { in testRequiresBidiIllegalArguments() 124 } catch (IllegalArgumentException expected) { in testRequiresBidiIllegalArguments() 131 } catch (IllegalArgumentException expected) { in testRequiresBidiIllegalArguments() 138 } catch (IllegalArgumentException expected) { in testRequiresBidiIllegalArguments() 149 } catch (IllegalArgumentException expected) { in testCreateLineBidiIllegalArguments() [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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
D | AbstractPreferencesTest.java | 110 } catch (IllegalArgumentException expected) { in testConstructor() 115 } catch (IllegalArgumentException expected) { in testConstructor() 120 } catch (IllegalArgumentException expected) { in testConstructor() 125 } catch (IllegalArgumentException expected) { in testConstructor() 130 } catch (NullPointerException expected) { in testConstructor() 224 } catch (NullPointerException expected) { in testGet() 237 } catch (IllegalStateException expected) { in testGet() 242 } catch (NullPointerException expected) { in testGet() 250 } catch (NullPointerException expected) { in testGetBoolean() 263 } catch (NullPointerException expected) { in testPutByteArray() [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/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/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/util/ |
D | CollectionsTest.java | 45 } catch (NoSuchElementException expected) { in testEmptyEnumeration() 64 } catch (NoSuchElementException expected) { in testEmptyIterator() 69 } catch (IllegalStateException expected) { in testEmptyIterator() 87 } catch (NoSuchElementException expected) { in testEmptyListIterator() 93 } catch (NoSuchElementException expected) { in testEmptyListIterator() 98 } catch (UnsupportedOperationException expected) { in testEmptyListIterator() 103 } catch (IllegalStateException expected) { in testEmptyListIterator() 239 } catch (UnsupportedOperationException expected) { in test_unmodifiableMap_putIfAbsent() 248 } catch (UnsupportedOperationException expected) { in test_unmodifiableMap_putIfAbsent() 256 } catch (UnsupportedOperationException expected) { in test_unmodifiableMap_remove() [all …]
|
D | ArraysTest.java | 41 } catch (NullPointerException expected) { in test_setAll$I() 47 } catch (NullPointerException expected) { in test_setAll$I() 68 } catch (NullPointerException expected) { in test_parallelSetAll$I() 74 } catch (NullPointerException expected) { in test_parallelSetAll$I() 95 } catch (NullPointerException expected) { in test_setAll$L() 101 } catch (NullPointerException expected) { in test_setAll$L() 122 } catch (NullPointerException expected) { in test_parallelSetAll$L() 128 } catch (NullPointerException expected) { in test_parallelSetAll$L() 149 } catch (NullPointerException expected) { in test_setAll$D() 155 } catch (NullPointerException expected) { in test_setAll$D() [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 | 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 …]
|
/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
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_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 | 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()
|
/libcore/ojluni/src/main/java/sun/net/ |
D | ProgressSource.java | 49 private long expected = -1; field in ProgressSource 69 public ProgressSource(URL url, String method, long expected) { in ProgressSource() argument 75 this.expected = expected; in ProgressSource() 134 return expected; in getExpected() 164 expected = expectedProgress; in updateProgress() 196 if (expected != -1) { in updateProgress() 197 if (progress >= expected && progress != 0) in updateProgress() 208 … + ", content-type=" + contentType + ", progress=" + progress + ", expected=" + expected + "]"; in toString()
|