Searched refs:actual (Results 1 - 25 of 65) sorted by relevance

123

/libcore/dom/src/test/java/org/w3c/domts/
H A DDOMTestInnerClass.java37 public void assertTrue(String assertID, boolean actual) { argument
38 test.assertTrue(assertID, actual);
41 public void assertFalse(String assertID, boolean actual) { argument
42 test.assertFalse(assertID, actual);
45 public void assertNull(String assertID, Object actual) { argument
46 test.assertNull(assertID, actual);
49 public void assertNotNull(String assertID, Object actual) { argument
50 test.assertNotNull(assertID, actual);
53 public void assertSame(String assertID, Object expected, Object actual) { argument
54 test.assertSame(assertID, expected, actual);
75 assertEqualsIgnoreCase(String assertID, String expected, String actual) argument
80 assertEqualsIgnoreCase(String assertID, Collection expected, Collection actual) argument
85 assertEqualsIgnoreCase(String assertID, List expected, List actual) argument
90 assertEquals(String assertID, String expected, String actual) argument
94 assertEquals(String assertID, int expected, int actual) argument
98 assertEquals(String assertID, double expected, double actual) argument
102 assertEquals(String assertID, boolean expected, boolean actual) argument
106 assertEquals(String assertID, Collection expected, NodeList actual) argument
111 assertEquals(String assertID, Collection expected, Collection actual) argument
116 assertNotEqualsIgnoreCase(String assertID, String expected, String actual) argument
121 assertNotEquals(String assertID, String expected, String actual) argument
125 assertNotEquals(String assertID, int expected, int actual) argument
129 assertNotEquals(String assertID, double expected, double actual) argument
133 assertURIEquals(String assertID, String scheme, String path, String host, String file, String name, String query, String fragment, Boolean isAbsolute, String actual) argument
141 same(Object expected, Object actual) argument
145 equalsIgnoreCase(String expected, String actual) argument
149 equalsIgnoreCase(Collection expected, Collection actual) argument
153 equalsIgnoreCase(List expected, List actual) argument
157 equals(String expected, String actual) argument
161 equals(int expected, int actual) argument
165 equals(double expected, double actual) argument
169 equals(Collection expected, Collection actual) argument
173 equals(List expected, List actual) argument
[all...]
H A DDOMTestCase.java131 * Asserts that actual==true
135 * @param actual
136 * actual value
138 public void assertTrue(String assertID, boolean actual) { argument
139 framework.assertTrue(this, assertID, actual);
143 * Asserts that actual==true
147 * @param actual
148 * actual value
150 public void assertTrue(String assertID, Object actual) { argument
151 framework.assertTrue(this, assertID, ( (Boolean) actual)
162 assertFalse(String assertID, boolean actual) argument
174 assertFalse(String assertID, Object actual) argument
189 assertNull(String assertID, Object actual) argument
201 assertNotNull(String assertID, Object actual) argument
213 assertSame(String assertID, Object expected, Object actual) argument
292 assertEqualsIgnoreCase( String assertID, String expected, String actual) argument
310 assertEqualsIgnoreCase( String assertID, Collection expected, Collection actual) argument
328 assertEqualsIgnoreCase( String assertID, List expected, List actual) argument
345 assertEqualsAutoCase( String context, String assertID, String expected, String actual) argument
397 assertEqualAutoCase( String context, String assertID, Collection expected, Collection actual) argument
428 assertEqualsAutoCase( String context, String assertID, List expected, List actual) argument
458 assertEquals(String assertID, String expected, String actual) argument
472 assertEquals(String assertID, int expected, int actual) argument
486 assertEquals(String assertID, double expected, double actual) argument
500 assertEquals( String assertID, boolean expected, boolean actual) argument
518 assertEquals( String assertID, Collection expected, NodeList actual) argument
541 assertEquals( String assertID, Collection expected, Collection actual) argument
558 assertNotEqualsIgnoreCase( String assertID, String expected, String actual) argument
575 assertNotEqualsAutoCase( String context, String assertID, String expected, String actual) argument
603 assertNotEquals( String assertID, String expected, String actual) argument
620 assertNotEquals(String assertID, int expected, int actual) argument
634 assertNotEquals( String assertID, double expected, double actual) argument
670 assertURIEquals( String assertID, String scheme, String path, String host, String file, String name, String query, String fragment, Boolean isAbsolute, String actual) argument
778 same(Object expected, Object actual) argument
791 equalsIgnoreCase(String expected, String actual) argument
804 equalsIgnoreCase(Collection expected, Collection actual) argument
817 equalsIgnoreCase(List expected, List actual) argument
830 equalsAutoCase(String context, String expected, String actual) argument
851 equalsAutoCase(String context, Collection expected, Collection actual) argument
873 equalsAutoCase(String context, List expected, List actual) argument
894 equals(String expected, String actual) argument
907 equals(int expected, int actual) argument
920 equals(double expected, double actual) argument
933 equals(Collection expected, Collection actual) argument
946 equals(List expected, List actual) argument
[all...]
H A DDOMTestFramework.java36 void assertTrue(DOMTestCase test, String assertID, boolean actual); argument
38 void assertFalse(DOMTestCase test, String assertID, boolean actual); argument
40 void assertNull(DOMTestCase test, String assertID, Object actual); argument
42 void assertNotNull(DOMTestCase test, String assertID, Object actual); argument
48 Object actual);
78 String actual);
84 Collection actual);
90 List actual);
96 String actual);
102 int actual);
44 assertSame( DOMTestCase test, String assertID, Object expected, Object actual) argument
74 assertEqualsIgnoreCase( DOMTestCase test, String assertID, String expected, String actual) argument
80 assertEqualsIgnoreCase( DOMTestCase test, String assertID, Collection expected, Collection actual) argument
86 assertEqualsIgnoreCase( DOMTestCase test, String assertID, List expected, List actual) argument
92 assertEquals( DOMTestCase test, String assertID, String expected, String actual) argument
98 assertEquals( DOMTestCase test, String assertID, int expected, int actual) argument
104 assertEquals( DOMTestCase test, String assertID, boolean expected, boolean actual) argument
110 assertEquals( DOMTestCase test, String assertID, double expected, double actual) argument
116 assertEquals( DOMTestCase test, String assertID, Collection expected, Collection actual) argument
122 assertNotEqualsIgnoreCase( DOMTestCase test, String assertID, String expected, String actual) argument
128 assertNotEquals( DOMTestCase test, String assertID, String expected, String actual) argument
134 assertNotEquals( DOMTestCase test, String assertID, int expected, int actual) argument
140 assertNotEquals( DOMTestCase test, String assertID, boolean expected, boolean actual) argument
146 assertNotEquals( DOMTestCase test, String assertID, double expected, double actual) argument
152 same(Object expected, Object actual) argument
154 equalsIgnoreCase(String expected, String actual) argument
156 equalsIgnoreCase(Collection expected, Collection actual) argument
158 equalsIgnoreCase(List expected, List actual) argument
160 equals(String expected, String actual) argument
162 equals(int expected, int actual) argument
164 equals(boolean expected, boolean actual) argument
166 equals(double expected, double actual) argument
168 equals(Collection expected, Collection actual) argument
170 equals(List expected, List actual) argument
[all...]
H A DJUnitTestCaseAdapter.java184 public void assertTrue(DOMTestCase test, String assertID, boolean actual) { argument
185 assertTrue(assertID,actual);
188 public void assertFalse(DOMTestCase test, String assertID, boolean actual) { argument
189 if(actual) {
190 assertEquals(assertID,String.valueOf(false), String.valueOf(actual));
194 public void assertNull(DOMTestCase test, String assertID, Object actual) { argument
195 assertNull(assertID,actual);
198 public void assertNotNull(DOMTestCase test, String assertID, Object actual) { argument
199 assertNotNull(assertID,actual);
202 public void assertSame(DOMTestCase test, String assertID, Object expected, Object actual) { argument
238 assertEqualsIgnoreCase(DOMTestCase test, String assertID, String expected, String actual) argument
244 assertEqualsIgnoreCase(DOMTestCase test, String assertID, Collection expected, Collection actual) argument
272 assertEqualsIgnoreCase(DOMTestCase test, String assertID, List expected, List actual) argument
292 assertEquals(DOMTestCase test, String assertID, String expected, String actual) argument
296 assertEquals(DOMTestCase test, String assertID, int expected, int actual) argument
300 assertEquals(DOMTestCase test, String assertID, boolean expected, boolean actual) argument
304 assertEquals(DOMTestCase test, String assertID, double expected, double actual) argument
308 assertEquals(DOMTestCase test, String assertID, Collection expected, Collection actual) argument
336 assertNotEqualsIgnoreCase(DOMTestCase test, String assertID, String expected, String actual) argument
342 assertNotEquals(DOMTestCase test, String assertID, String expected, String actual) argument
346 assertNotEquals(DOMTestCase test, String assertID, int expected, int actual) argument
350 assertNotEquals(DOMTestCase test, String assertID, boolean expected, boolean actual) argument
355 assertNotEquals(DOMTestCase test, String assertID, double expected, double actual) argument
362 same(Object expected, Object actual) argument
372 equalsIgnoreCase(String expected, String actual) argument
376 equalsIgnoreCase(Collection expected, Collection actual) argument
401 equalsIgnoreCase(List expected, List actual) argument
419 equals(String expected, String actual) argument
423 equals(int expected, int actual) argument
427 equals(boolean expected, boolean actual) argument
431 equals(double expected, double actual) argument
435 equals(Collection expected, Collection actual) argument
460 equals(List expected, List actual) argument
[all...]
/libcore/json/src/main/java/org/json/
H A DJSON.java95 public static JSONException typeMismatch(Object indexOrName, Object actual, argument
97 if (actual == null) {
100 throw new JSONException("Value " + actual + " at " + indexOrName
101 + " of type " + actual.getClass().getName()
106 public static JSONException typeMismatch(Object actual, String requiredType) argument
108 if (actual == null) {
111 throw new JSONException("Value " + actual
112 + " of type " + actual.getClass().getName()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
H A DGenericReflectionTestsBase.java65 public static void assertInstanceOf(Class<?> expectedClass, Object actual) { argument
66 TestCase.assertTrue(actual.getClass().getName() + " is not instance of :" + expectedClass.getName(), expectedClass
67 .isInstance(actual));
70 public static void assertNotEquals(Object expected, Object actual) { argument
71 TestCase.assertFalse(actual.toString() + " has not to be equal to " + expected.toString(), expected.equals(actual));
/libcore/luni/src/test/java/libcore/java/nio/charset/
H A DOldCharset_SingleByteAbstractTest.java113 // static void assertEqualChars (String msg, char[] expected, char[] actual) {
115 // if (actual.length < len) len = actual.length;
117 // if (actual[i] != expected[i]) {
119 // i, (int) actual[i], (int) expected[i]);
123 //// i, (int) actual[i], (int) expected[i]);
126 // assertTrue(msg, Arrays.equals(actual, expected));
129 static void assertEqualChars2 (String msg, char[] expected, char[] actual, byte[] bytes) { argument
133 if (actual.length < len) len = actual
178 assertEqualBytes2(String msg, byte[] expected, byte[] actual, char[] chars) argument
[all...]
H A DOldCharset_AbstractTest.java203 char expected, actual;
211 actual = actualCB.get();
212 if (actual != expected) {
215 i, (int) actual, (int) expected);
221 // i, (int) actual[i], (int) expected[i]);
226 // assertTrue(msg, Arrays.equals(actual, expected));
232 char actual = actualCB.get();
233 if (actual != expected[i]) {
235 i, (int) actual, (int) expected[i]);
244 byte actual;
[all...]
/libcore/luni/src/test/etc/loading-test-jar/
H A DTestMethods.java46 public static void assertSame(Object expected, Object actual) { argument
47 if (expected != actual) {
49 "EXPECTED: " + expected + "; ACTUAL: " + actual);
56 public static void assertSame(int expected, int actual) { argument
57 if (expected != actual) {
59 "EXPECTED: " + expected + "; ACTUAL: " + actual);
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DProviderTest.java399 Set<Service> actual = myProvider.getServices();
401 assertTrue(actual.contains(s[0]));
402 assertTrue(actual.contains(s[1]));
403 assertTrue(!actual.contains(s[2]));
406 actual = myProvider.getServices();
409 assertTrue(actual.contains(s[0]));
410 assertTrue(!actual.contains(s[1]));
411 assertTrue(!actual.contains(s[2]));
414 actual = myProvider.getServices();
416 assertTrue(actual
[all...]
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
H A Dhc_elementretrieveallattributes.java67 java.util.Collection actual = new java.util.ArrayList();
83 actual.add(attributeName);
87 assertEqualsIgnoreCase("htmlAttributeNames", htmlExpected, actual);
89 assertEqualsIgnoreCase("attributeNames", expected, actual);
H A Dhc_namednodemapreturnfirstitem.java80 java.util.Collection actual = new java.util.ArrayList();
89 actual.add(nodeName);
93 assertEqualsIgnoreCase("attrName_html", htmlExpected, actual);
95 assertEquals("attrName", expected, actual);
H A Dhc_namednodemapreturnlastitem.java82 java.util.Collection actual = new java.util.ArrayList();
91 actual.add(nodeName);
95 assertEqualsIgnoreCase("attrName_html", htmlExpected, actual);
97 assertEquals("attrName", expected, actual);
H A Ddocumenttypegetnotations.java69 java.util.Collection actual = new java.util.ArrayList();
83 actual.add(notationName);
85 assertEquals("names", expected, actual);
H A Dhc_nodechildnodes.java71 java.util.List actual = new java.util.ArrayList();
91 actual.add(childName);
97 assertEqualsAutoCase("element", "elementNames", expected, actual);
H A Dhc_nodeappendchildchildexists.java74 java.util.List actual = new java.util.ArrayList();
95 actual.add(memberName);
97 assertEqualsAutoCase("element", "liveByTagName", expected, actual);
/libcore/luni/src/test/java/tests/security/interfaces/
H A DDSAKeyTest.java51 private void assertDSAParamsEquals(DSAParams expected, DSAParams actual) { argument
52 assertEquals("P differ", expected.getP(), actual.getP());
53 assertEquals("Q differ", expected.getQ(), actual.getQ());
54 assertEquals("G differ", expected.getG(), actual.getG());
/libcore/dalvik/src/main/java/dalvik/system/profiler/
H A DBinaryHprof.java118 * Returns null if the actual size meets expectations, or a
121 public String checkSize(int actual) { argument
122 if (actual < minimumSize) {
124 + " but received " + actual;
129 if (actual > maximumSize) {
131 + " but received " + actual;
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
H A DGCMParameterSpecTest.java79 byte[] actual = spec.getIV();
80 assertEquals(Arrays.toString(TEST_IV), Arrays.toString(actual));
83 for (int i = 0; i < actual.length; i++) {
84 actual[i] ^= 0xFF;
88 Arrays.equals(spec.getIV(), actual));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DDoubleTest.java633 double actual;
636 actual = Double.parseDouble("0x0.0p0D");
637 assertEquals("Returned incorrect value", 0.0d, actual, 0.0D);
639 actual = Double.parseDouble("0xa.ap+9d");
640 assertEquals("Returned incorrect value", 5440.0d, actual, 0.0D);
642 actual = Double.parseDouble("+0Xb.10ap8");
643 assertEquals("Returned incorrect value", 2832.625d, actual, 0.0D);
645 actual = Double.parseDouble("-0X.a0P2D");
646 assertEquals("Returned incorrect value", -2.5d, actual, 0.0D);
648 actual
[all...]
H A DFloatTest.java411 float actual;
413 actual = Float.parseFloat("0x00000000000000000000000000000000000000000.0000000000000000000000000000000000000p0000000000000000000000000000000000");
414 assertEquals("Returned incorrect value", 0.0f, actual, 0.0F);
416 actual = Float.parseFloat("+0Xfffff.fffffffffffffffffffffffffffffffp+99F");
417 assertEquals("Returned incorrect value", 6.64614E35f, actual, 0.0F);
419 actual = Float.parseFloat("-0X.123456789abcdefp+99f");
420 assertEquals("Returned incorrect value", -4.5072022E28f, actual, 0.0F);
422 actual = Float.parseFloat("-0X123456789abcdef.p+1f");
423 assertEquals("Returned incorrect value", -1.63971062E17f, actual, 0.0F);
425 actual
[all...]
/libcore/luni/src/test/java/libcore/xml/
H A DDomSerializationTest.java68 String actual = toXml(document);
71 assertTrue(actual, actual.equals(declarationA + expectedXml)
72 || actual.equals(declarationB + expectedXml));
H A DNodeTest.java69 private void assertFileUriEquals(File expectedFile, String actual) { argument
70 assertTrue("Expected URI for: " + expectedFile + " but was " + actual + ". ",
71 actual.equals("file:" + expectedFile)
72 || actual.equals("file://" + expectedFile));
/libcore/luni/src/test/java/tests/security/cert/
H A DCertificateRevocationExceptionTest.java156 CertificateRevokedException actual = (CertificateRevokedException) deserialized;
158 assertEquals(expected.getInvalidityDate(), actual.getInvalidityDate());
159 assertNotSame(expected.getInvalidityDate(), actual.getInvalidityDate());
160 assertEquals(expected.getRevocationDate(), actual.getRevocationDate());
161 assertNotSame(expected.getRevocationDate(), actual.getRevocationDate());
164 assertEquals(expected.getExtensions().size(), actual.getExtensions().size());
165 assertEquals(expected.getExtensions().keySet(), actual.getExtensions().keySet());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DUUIDTest.java241 String actual = uuid.toString();
242 assertEquals("f81d4fae-7dec-11d0-a765-00a0c91e6bf6", actual);
245 actual = uuid.toString();
246 assertEquals("00000000-0000-1000-8000-000000000000", actual);
308 UUID actual = UUID.fromString("f81d4fae-7dec-11d0-a765-00a0c91e6bf6");
310 assertEquals(expected, actual);
312 assertEquals(2, actual.variant());
313 assertEquals(1, actual.version());
314 assertEquals(130742845922168750L, actual.timestamp());
315 assertEquals(10085, actual
[all...]

Completed in 1251 milliseconds

123