Home
last modified time | relevance | path

Searched refs:actual (Results 1 – 25 of 84) sorted by relevance

1234

/libcore/dom/src/test/java/org/w3c/domts/
DDOMTestInnerClass.java37 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 …]
DDOMTestCase.java138 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 …]
DJUnitTestCaseAdapter.java184 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 …]
DDOMTestFramework.java36 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DDoubleTest.java656 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 …]
DFloatTest.java427 float actual; in test_parseFloat_LString_Unusual() local
429actual = 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()
441actual = Float.parseFloat("-0X000000000000000000000000000001abcdef.0000000000000000000000000001abe… in test_parseFloat_LString_Unusual()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DProviderTest.java432 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/luni/src/test/java/libcore/java/nio/charset/
DOldCharset_SingleByteAbstractTest.java129 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()
DOldCharset_AbstractTest.java203 char expected, actual; in assertEqualCBs() local
211 actual = actualCB.get(); in assertEqualCBs()
212 if (actual != expected) { in assertEqualCBs()
215 i, (int) actual, (int) expected); in assertEqualCBs()
232 char actual = actualCB.get(); in assertEqualChars() local
233 if (actual != expected[i]) { in assertEqualChars()
235 i, (int) actual, (int) expected[i]); in assertEqualChars()
244 byte actual; in assertEqualBytes()
251 actual = actualBB.get(); in assertEqualBytes()
252 if (actual != expected[i]) { in assertEqualBytes()
[all …]
/libcore/json/src/main/java/org/json/
DJSON.java95 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/
DGenericReflectionTestsBase.java65 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/
DUUIDTest.java241 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/
DCertificateRevocationExceptionTest.java160 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/
DTestMethods.java46 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/tests/security/interfaces/
DDSAKeyTest.java51 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/org/apache/harmony/crypto/tests/javax/crypto/spec/
DGCMParameterSpecTest.java79 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/dalvik/src/main/java/dalvik/system/profiler/
DBinaryHprof.java121 public String checkSize(int actual) { in checkSize() argument
122 if (actual < minimumSize) { in checkSize()
124 + " but received " + actual; in checkSize()
129 if (actual > maximumSize) { in checkSize()
131 + " but received " + actual; in checkSize()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLParametersTest.java139 Collection<SNIServerName> actual = p.getServerNames(); in test_SSLParameters_setServerNames_setEmpty_getEmpty() local
140 assertNotNull(actual); in test_SSLParameters_setServerNames_setEmpty_getEmpty()
141 assertEquals(0, actual.size()); in test_SSLParameters_setServerNames_setEmpty_getEmpty()
148 Collection<SNIServerName> actual = p.getServerNames(); in test_SSLParameters_getServerNames_unmodifiable() local
150 actual.add((SNIServerName) new SNIHostName("www.foo.com")); in test_SSLParameters_getServerNames_unmodifiable()
183 Collection<SNIMatcher> actual = p.getSNIMatchers(); in test_SSLParameters_setSNIMatchers_setEmpty_getEmpty() local
184 assertNotNull(actual); in test_SSLParameters_setSNIMatchers_setEmpty_getEmpty()
185 assertEquals(0, actual.size()); in test_SSLParameters_setSNIMatchers_setEmpty_getEmpty()
192 Collection<SNIMatcher> actual = p.getSNIMatchers(); in test_SSLParameters_getSNIMatchers_unmodifiable() local
194 actual.add(SNIHostName.createSNIMatcher("www\\.google\\.com")); in test_SSLParameters_getSNIMatchers_unmodifiable()
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
Dhc_elementretrieveallattributes.java67 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()
Dhc_namednodemapreturnfirstitem.java80 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()
Dhc_namednodemapreturnlastitem.java82 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()
/libcore/luni/src/test/java/tests/org/w3c/dom/
DDOMTestCase.java104 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/support/src/test/java/libcore/javax/net/ssl/
DSSLConfigurationAsserts.java221 private static void assertSSLParametersEqual(SSLParameters expected, SSLParameters actual) { in assertSSLParametersEqual() argument
222 assertCipherSuitesEqual(expected.getCipherSuites(), actual.getCipherSuites()); in assertSSLParametersEqual()
223 assertProtocolsEqual(expected.getProtocols(), actual.getProtocols()); in assertSSLParametersEqual()
224 assertEquals(expected.getNeedClientAuth(), actual.getNeedClientAuth()); in assertSSLParametersEqual()
225 assertEquals(expected.getWantClientAuth(), actual.getWantClientAuth()); in assertSSLParametersEqual()
228 private static void assertCipherSuitesEqual(String[] expected, String[] actual) { in assertCipherSuitesEqual() argument
229 assertEquals(Arrays.asList(expected), Arrays.asList(actual)); in assertCipherSuitesEqual()
232 private static void assertProtocolsEqual(String[] expected, String[] actual) { in assertProtocolsEqual() argument
237 new HashSet<String>(Arrays.asList(actual))); in assertProtocolsEqual()
/libcore/luni/src/test/java/libcore/xml/
DDomSerializationTest.java68 String actual = toXml(document); in assertXmlEquals() local
71 assertTrue(actual, actual.equals(declarationA + expectedXml) in assertXmlEquals()
72 || actual.equals(declarationB + expectedXml)); in assertXmlEquals()
DNodeTest.java69 private void assertFileUriEquals(File expectedFile, String actual) { in assertFileUriEquals() argument
70 assertTrue("Expected URI for: " + expectedFile + " but was " + actual + ". ", in assertFileUriEquals()
71 actual.equals("file:" + expectedFile) in assertFileUriEquals()
72 || actual.equals("file://" + expectedFile)); in assertFileUriEquals()

1234