/libcore/dom/src/test/java/org/w3c/domts/ |
D | DOMTestInnerClass.java | 37 public void assertTrue(String assertID, boolean actual) { in assertTrue() argument 38 test.assertTrue(assertID, actual); in assertTrue() 41 public void assertFalse(String assertID, boolean actual) { in assertFalse() argument 42 test.assertFalse(assertID, actual); in assertFalse() 45 public void assertNull(String assertID, Object actual) { in assertNull() argument 46 test.assertNull(assertID, actual); in assertNull() 49 public void assertNotNull(String assertID, Object actual) { in assertNotNull() argument 50 test.assertNotNull(assertID, actual); in assertNotNull() 53 public void assertSame(String assertID, Object expected, Object actual) { in assertSame() argument 54 test.assertSame(assertID, expected, actual); in assertSame() [all …]
|
D | DOMTestCase.java | 138 public void assertTrue(String assertID, boolean actual) { in assertTrue() argument 139 framework.assertTrue(this, assertID, actual); in assertTrue() 150 public void assertTrue(String assertID, Object actual) { in assertTrue() argument 151 framework.assertTrue(this, assertID, ( (Boolean) actual).booleanValue()); in assertTrue() 162 public void assertFalse(String assertID, boolean actual) { in assertFalse() argument 163 framework.assertFalse(this, assertID, actual); in assertFalse() 174 public void assertFalse(String assertID, Object actual) { in assertFalse() argument 178 ( (Boolean) actual).booleanValue()); in assertFalse() 189 public void assertNull(String assertID, Object actual) { in assertNull() argument 190 framework.assertNull(this, assertID, actual); in assertNull() [all …]
|
D | JUnitTestCaseAdapter.java | 184 public void assertTrue(DOMTestCase test, String assertID, boolean actual) { in assertTrue() argument 185 assertTrue(assertID,actual); in assertTrue() 188 public void assertFalse(DOMTestCase test, String assertID, boolean actual) { in assertFalse() argument 189 if(actual) { in assertFalse() 190 assertEquals(assertID,String.valueOf(false), String.valueOf(actual)); in assertFalse() 194 public void assertNull(DOMTestCase test, String assertID, Object actual) { in assertNull() argument 195 assertNull(assertID,actual); in assertNull() 198 public void assertNotNull(DOMTestCase test, String assertID, Object actual) { in assertNotNull() argument 199 assertNotNull(assertID,actual); in assertNotNull() 202 public void assertSame(DOMTestCase test, String assertID, Object expected, Object actual) { in assertSame() argument [all …]
|
D | DOMTestFramework.java | 36 void assertTrue(DOMTestCase test, String assertID, boolean actual); in assertTrue() argument 38 void assertFalse(DOMTestCase test, String assertID, boolean actual); in assertFalse() argument 40 void assertNull(DOMTestCase test, String assertID, Object actual); in assertNull() argument 42 void assertNotNull(DOMTestCase test, String assertID, Object actual); in assertNotNull() argument 48 Object actual); in assertSame() argument 78 String actual); in assertEqualsIgnoreCase() argument 84 Collection actual); in assertEqualsIgnoreCase() argument 90 List actual); in assertEqualsIgnoreCase() argument 96 String actual); in assertEquals() argument 102 int actual); in assertEquals() argument [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeParsing.java | 138 TemporalAccessor actual = formatter.parse(text); in test_parse_instantZones_ZDT() local 139 assertEquals(ZonedDateTime.from(actual), expected); in test_parse_instantZones_ZDT() 144 TemporalAccessor actual = formatter.parse(text); in test_parse_instantZones_LDT() local 145 assertEquals(LocalDateTime.from(actual), expected.toLocalDateTime()); in test_parse_instantZones_LDT() 150 TemporalAccessor actual = formatter.parse(text); in test_parse_instantZones_Instant() local 151 assertEquals(Instant.from(actual), expected.toInstant()); in test_parse_instantZones_Instant() 156 TemporalAccessor actual = formatter.parse(text); in test_parse_instantZones_supported() local 157 assertEquals(actual.isSupported(INSTANT_SECONDS), true); in test_parse_instantZones_supported() 158 assertEquals(actual.isSupported(EPOCH_DAY), true); in test_parse_instantZones_supported() 159 assertEquals(actual.isSupported(SECOND_OF_DAY), true); in test_parse_instantZones_supported() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | DoubleTest.java | 656 double actual; in test_parseDouble_LString_FromHexString() local 659 actual = Double.parseDouble("0x0.0p0D"); in test_parseDouble_LString_FromHexString() 660 assertEquals("Returned incorrect value", 0.0d, actual, 0.0D); in test_parseDouble_LString_FromHexString() 662 actual = Double.parseDouble("0xa.ap+9d"); in test_parseDouble_LString_FromHexString() 663 assertEquals("Returned incorrect value", 5440.0d, actual, 0.0D); in test_parseDouble_LString_FromHexString() 665 actual = Double.parseDouble("+0Xb.10ap8"); in test_parseDouble_LString_FromHexString() 666 assertEquals("Returned incorrect value", 2832.625d, actual, 0.0D); in test_parseDouble_LString_FromHexString() 668 actual = Double.parseDouble("-0X.a0P2D"); in test_parseDouble_LString_FromHexString() 669 assertEquals("Returned incorrect value", -2.5d, actual, 0.0D); in test_parseDouble_LString_FromHexString() 671 actual = Double.parseDouble("\r 0x22.1p2d \t"); in test_parseDouble_LString_FromHexString() [all …]
|
D | FloatTest.java | 427 float actual; in test_parseFloat_LString_Unusual() local 429 …actual = Float.parseFloat("0x00000000000000000000000000000000000000000.000000000000000000000000000… in test_parseFloat_LString_Unusual() 430 assertEquals("Returned incorrect value", 0.0f, actual, 0.0F); in test_parseFloat_LString_Unusual() 432 actual = Float.parseFloat("+0Xfffff.fffffffffffffffffffffffffffffffp+99F"); in test_parseFloat_LString_Unusual() 433 assertEquals("Returned incorrect value", 6.64614E35f, actual, 0.0F); in test_parseFloat_LString_Unusual() 435 actual = Float.parseFloat("-0X.123456789abcdefp+99f"); in test_parseFloat_LString_Unusual() 436 assertEquals("Returned incorrect value", -4.5072022E28f, actual, 0.0F); in test_parseFloat_LString_Unusual() 438 actual = Float.parseFloat("-0X123456789abcdef.p+1f"); in test_parseFloat_LString_Unusual() 439 assertEquals("Returned incorrect value", -1.63971062E17f, actual, 0.0F); in test_parseFloat_LString_Unusual() 441 …actual = Float.parseFloat("-0X000000000000000000000000000001abcdef.0000000000000000000000000001abe… in test_parseFloat_LString_Unusual() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | ProviderTest.java | 432 Set<Service> actual = myProvider.getServices(); in testGetServices() local 434 assertTrue(actual.contains(s[0])); in testGetServices() 435 assertTrue(actual.contains(s[1])); in testGetServices() 436 assertTrue(!actual.contains(s[2])); in testGetServices() 439 actual = myProvider.getServices(); in testGetServices() 442 assertTrue(actual.contains(s[0])); in testGetServices() 443 assertTrue(!actual.contains(s[1])); in testGetServices() 444 assertTrue(!actual.contains(s[2])); in testGetServices() 447 actual = myProvider.getServices(); in testGetServices() 449 assertTrue(actual.contains(s[0])); in testGetServices() [all …]
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | SSLConfigurationAsserts.java | 82 private static void assertSSLParametersEqual(SSLParameters expected, SSLParameters actual) { in assertSSLParametersEqual() argument 83 assertCipherSuitesEqual(expected.getCipherSuites(), actual.getCipherSuites()); in assertSSLParametersEqual() 84 assertProtocolsEqual(expected.getProtocols(), actual.getProtocols()); in assertSSLParametersEqual() 85 assertEquals(expected.getNeedClientAuth(), actual.getNeedClientAuth()); in assertSSLParametersEqual() 86 assertEquals(expected.getWantClientAuth(), actual.getWantClientAuth()); in assertSSLParametersEqual() 89 private static void assertCipherSuitesEqual(String[] expected, String[] actual) { in assertCipherSuitesEqual() argument 90 assertEquals(Arrays.asList(expected), Arrays.asList(actual)); in assertCipherSuitesEqual() 93 private static void assertProtocolsEqual(String[] expected, String[] actual) { in assertProtocolsEqual() argument 98 new HashSet<String>(Arrays.asList(actual))); in assertProtocolsEqual()
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | OldCharset_SingleByteAbstractTest.java | 129 static void assertEqualChars2 (String msg, char[] expected, char[] actual, byte[] bytes) { in assertEqualChars2() argument 133 if (actual.length < len) len = actual.length; in assertEqualChars2() 135 if (actual[i] == expected[i]) { in assertEqualChars2() 140 if (actual[i] == (bytes[i] & 0xff)) { in assertEqualChars2() 178 static void assertEqualBytes2 (String msg, byte[] expected, byte[] actual, char[] chars) { in assertEqualBytes2() argument 181 if (actual.length < len) len = actual.length; in assertEqualBytes2() 183 if ((actual[i] != expected[i]) && in assertEqualBytes2() 184 !((chars[i] == 65533)) && (actual[i] == 63)) { in assertEqualBytes2()
|
D | OldCharset_AbstractTest.java | 228 char expected, actual; in assertEqualCBs() local 236 actual = actualCB.get(); in assertEqualCBs() 237 if (actual != expected) { in assertEqualCBs() 240 i, (int) actual, (int) expected); in assertEqualCBs() 257 char actual = actualCB.get(); in assertEqualChars() local 258 if (actual != expected[i]) { in assertEqualChars() 261 i, (int) actual, (int) expected[i]); in assertEqualChars() 270 byte actual; in assertEqualBytes() 277 actual = actualBB.get(); in assertEqualBytes() 278 if (actual != expected[i]) { in assertEqualBytes() [all …]
|
/libcore/json/src/main/java/org/json/ |
D | JSON.java | 95 public static JSONException typeMismatch(Object indexOrName, Object actual, in typeMismatch() argument 97 if (actual == null) { in typeMismatch() 100 throw new JSONException("Value " + actual + " at " + indexOrName in typeMismatch() 101 + " of type " + actual.getClass().getName() in typeMismatch() 106 public static JSONException typeMismatch(Object actual, String requiredType) in typeMismatch() argument 108 if (actual == null) { in typeMismatch() 111 throw new JSONException("Value " + actual in typeMismatch() 112 + " of type " + actual.getClass().getName() in typeMismatch()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | GenericReflectionTestsBase.java | 65 public static void assertInstanceOf(Class<?> expectedClass, Object actual) { in assertInstanceOf() argument 66 …TestCase.assertTrue(actual.getClass().getName() + " is not instance of :" + expectedClass.getName(… in assertInstanceOf() 67 .isInstance(actual)); in assertInstanceOf() 70 public static void assertNotEquals(Object expected, Object actual) { in assertNotEquals() argument 71 …TestCase.assertFalse(actual.toString() + " has not to be equal to " + expected.toString(), expecte… in assertNotEquals()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | UUIDTest.java | 241 String actual = uuid.toString(); in test_toString() local 242 assertEquals("f81d4fae-7dec-11d0-a765-00a0c91e6bf6", actual); in test_toString() 245 actual = uuid.toString(); in test_toString() 246 assertEquals("00000000-0000-1000-8000-000000000000", actual); in test_toString() 308 UUID actual = UUID.fromString("f81d4fae-7dec-11d0-a765-00a0c91e6bf6"); in test_fromString() local 310 assertEquals(expected, actual); in test_fromString() 312 assertEquals(2, actual.variant()); in test_fromString() 313 assertEquals(1, actual.version()); in test_fromString() 314 assertEquals(130742845922168750L, actual.timestamp()); in test_fromString() 315 assertEquals(10085, actual.clockSequence()); in test_fromString() [all …]
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertificateRevocationExceptionTest.java | 160 CertificateRevokedException actual = (CertificateRevokedException) deserialized; 162 assertEquals(expected.getInvalidityDate(), actual.getInvalidityDate()); 163 assertNotSame(expected.getInvalidityDate(), actual.getInvalidityDate()); 164 assertEquals(expected.getRevocationDate(), actual.getRevocationDate()); 165 assertNotSame(expected.getRevocationDate(), actual.getRevocationDate()); 167 assertEquals(expected.getAuthorityName(), actual.getAuthorityName()); 168 assertNotSame(expected.getAuthorityName(), actual.getAuthorityName()); 170 assertEquals(expected.getExtensions().size(), actual.getExtensions().size()); 171 assertEquals(expected.getExtensions().keySet(), actual.getExtensions().keySet());
|
/libcore/luni/src/test/etc/loading-test-jar/ |
D | TestMethods.java | 46 public static void assertSame(Object expected, Object actual) { in assertSame() argument 47 if (expected != actual) { in assertSame() 49 "EXPECTED: " + expected + "; ACTUAL: " + actual); in assertSame() 56 public static void assertSame(int expected, int actual) { in assertSame() argument 57 if (expected != actual) { in assertSame() 59 "EXPECTED: " + expected + "; ACTUAL: " + actual); in assertSame()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
D | GCMParameterSpecTest.java | 79 byte[] actual = spec.getIV(); in testGetIV_Success() 80 assertEquals(Arrays.toString(TEST_IV), Arrays.toString(actual)); in testGetIV_Success() 83 for (int i = 0; i < actual.length; i++) { in testGetIV_Success() 84 actual[i] ^= 0xFF; in testGetIV_Success() 88 Arrays.equals(spec.getIV(), actual)); in testGetIV_Success()
|
/libcore/luni/src/test/java/tests/security/interfaces/ |
D | DSAKeyTest.java | 51 private void assertDSAParamsEquals(DSAParams expected, DSAParams actual) { in assertDSAParamsEquals() argument 52 assertEquals("P differ", expected.getP(), actual.getP()); in assertDSAParamsEquals() 53 assertEquals("Q differ", expected.getQ(), actual.getQ()); in assertDSAParamsEquals() 54 assertEquals("G differ", expected.getG(), actual.getG()); in assertDSAParamsEquals()
|
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
D | DOMTestCase.java | 104 String fragment, Boolean isAbsolute, String actual) { in assertURIEquals() argument 107 assertNotNull(assertID, actual); in assertURIEquals() 109 String uri = actual; in assertURIEquals() 111 int lastPound = actual.lastIndexOf("#"); in assertURIEquals() 117 uri = actual.substring(0, lastPound); in assertURIEquals() 118 actualFragment = actual.substring(lastPound + 1); in assertURIEquals() 130 uri = actual.substring(0, lastQuestion); in assertURIEquals() 131 actualQuery = actual.substring(lastQuestion + 1); in assertURIEquals()
|
/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
D | hc_elementretrieveallattributes.java | 67 java.util.Collection actual = new java.util.ArrayList(); in runTest() local 83 actual.add(attributeName); in runTest() 87 assertEqualsIgnoreCase("htmlAttributeNames", htmlExpected, actual); in runTest() 89 assertEqualsIgnoreCase("attributeNames", expected, actual); in runTest()
|
D | hc_namednodemapreturnlastitem.java | 82 java.util.Collection actual = new java.util.ArrayList(); in runTest() local 91 actual.add(nodeName); in runTest() 95 assertEqualsIgnoreCase("attrName_html", htmlExpected, actual); in runTest() 97 assertEquals("attrName", expected, actual); in runTest()
|
D | hc_namednodemapreturnfirstitem.java | 80 java.util.Collection actual = new java.util.ArrayList(); in runTest() local 89 actual.add(nodeName); in runTest() 93 assertEqualsIgnoreCase("attrName_html", htmlExpected, actual); in runTest() 95 assertEquals("attrName", expected, actual); in runTest()
|
/libcore/luni/src/test/java/tests/targets/security/ |
D | MessageDigestTest.java | 154 String actual = digestToString(computedDigest); in testfips180_2_singleblock() local 155 assertEquals("computed and check digest differ", expected1, actual); in testfips180_2_singleblock() 174 String actual = digestToString(computedDigest); in testfips180_2_multiblock() local 175 assertEquals("computed and check digest differ", expected2, actual); in testfips180_2_multiblock() 186 String actual = digestToString(computedDigest); in testfips180_2_longMessage() local 187 assertEquals("computed and check digest differ", expected3, actual); in testfips180_2_longMessage()
|
/libcore/luni/src/test/java/libcore/libcore/net/ |
D | MimeUtilsTest.java | 192 final String actual = MimeUtils.guessMimeTypeFromExtension(extension); in assertMimeTypeFromExtension() local 193 if (!Objects.equals(mimeType, actual)) { in assertMimeTypeFromExtension() 194 fail("Expected " + mimeType + " but was " + actual + " for extension " + extension); in assertMimeTypeFromExtension() 199 final String actual = MimeUtils.guessExtensionFromMimeType(mimeType); in assertExtensionFromMimeType() local 200 if (!Objects.equals(extension, actual)) { in assertExtensionFromMimeType() 201 fail("Expected " + extension + " but was " + actual + " for type " + mimeType); in assertExtensionFromMimeType()
|
/libcore/luni/src/test/java/libcore/sun/net/util/ |
D | IPAddressUtilTest.java | 57 private static void assertBytesEquals(int a, int b, int c, int d, byte[] actual) { in assertBytesEquals() argument 59 assertTrue("Expected " + Arrays.toString(expected) + ", got " + Arrays.toString(actual), in assertBytesEquals() 60 Arrays.equals(expected, actual)); in assertBytesEquals()
|