/libcore/dom/src/test/java/org/w3c/domts/ |
D | DOMTestInnerClass.java | 27 private final DOMTestCase test; field in DOMTestInnerClass 29 public DOMTestInnerClass(DOMTestCase test) { in DOMTestInnerClass() argument 30 this.test = test; in DOMTestInnerClass() 34 test.wait(millisecond); in wait() 38 test.assertTrue(assertID, actual); in assertTrue() 42 test.assertFalse(assertID, actual); in assertFalse() 46 test.assertNull(assertID, actual); in assertNull() 50 test.assertNotNull(assertID, actual); in assertNotNull() 54 test.assertSame(assertID, expected, actual); in assertSame() 58 test.assertInstanceOf(assertID, cls, obj); in assertInstanceOf() [all …]
|
D | DOMTestFramework.java | 34 void fail(DOMTestCase test, String assertID); in fail() argument 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 45 DOMTestCase test, in assertSame() argument 51 DOMTestCase test, in assertInstanceOf() argument 57 DOMTestCase test, in assertSize() argument 63 DOMTestCase test, in assertSize() argument 69 DOMTestCase test, in assertSize() argument [all …]
|
D | JUnitTestSuiteAdapter.java | 23 private DOMTestSuite test; field in JUnitTestSuiteAdapter 25 public JUnitTestSuiteAdapter(DOMTestSuite test) { in JUnitTestSuiteAdapter() argument 26 super(test.getTargetURI()); in JUnitTestSuiteAdapter() 27 this.test = test; in JUnitTestSuiteAdapter() 28 test.build(this); in JUnitTestSuiteAdapter() 32 DOMTestDocumentBuilderFactory factory = test.getFactory(); in addTest() 48 TestCase test = new JUnitTestCaseAdapter((DOMTestCase) domtest); in addTest() local 49 addTest(test); in addTest() 53 TestSuite test = new JUnitTestSuiteAdapter((DOMTestSuite) domtest); in addTest() local 54 addTest(test); in addTest()
|
D | JUnitTestCaseAdapter.java | 37 private DOMTestCase test; field in JUnitTestCaseAdapter 42 public JUnitTestCaseAdapter(DOMTestCase test) { in JUnitTestCaseAdapter() argument 43 super(test.getTargetURI()); in JUnitTestCaseAdapter() 44 test.setFramework(this); in JUnitTestCaseAdapter() 45 this.test = test; in JUnitTestCaseAdapter() 58 if (test == null) { in setName() 89 test = (DOMTestCase)constructor.newInstance(new Object[] { in setName() 92 test.setFramework(this); in setName() 164 test.runTest(); in runTest() 165 int mutationCount = test.getMutationCount(); in runTest() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | AttributedCharacterIteratorTest.java | 30 String test = "Test 23ring"; in test_current() local 31 AttributedString attrString = new AttributedString(test); in test_current() 50 String test = "Test 23ring"; in test_first() local 51 AttributedString attrString = new AttributedString(test); in test_first() 66 String test = "Test 23ring"; in test_getBeginIndex() local 67 AttributedString attrString = new AttributedString(test); in test_getBeginIndex() 76 String test = "Test 23ring"; in test_getEndIndex() local 77 AttributedString attrString = new AttributedString(test); in test_getEndIndex() 86 String test = "Test 23ring"; in test_getIndex() local 87 AttributedString attrString = new AttributedString(test); in test_getIndex() [all …]
|
/libcore/ojluni/src/main/java/java/util/function/ |
D | LongPredicate.java | 50 boolean test(long value); in test() method 70 return (value) -> test(value) && other.test(value); in and() 81 return (value) -> !test(value); in negate() 102 return (value) -> test(value) || other.test(value); in or()
|
D | IntPredicate.java | 50 boolean test(int value); in test() method 70 return (value) -> test(value) && other.test(value); in and() 81 return (value) -> !test(value); in negate() 102 return (value) -> test(value) || other.test(value); in or()
|
D | DoublePredicate.java | 50 boolean test(double value); in test() method 70 return (value) -> test(value) && other.test(value); in and() 81 return (value) -> !test(value); in negate() 102 return (value) -> test(value) || other.test(value); in or()
|
D | Predicate.java | 49 boolean test(T t); in test() method 69 return (t) -> test(t) && other.test(t); in and() 80 return (t) -> !test(t); in negate() 101 return (t) -> test(t) || other.test(t); in or()
|
D | BiPredicate.java | 53 boolean test(T t, U u); in test() method 73 return (T t, U u) -> test(t, u) && other.test(t, u); in and() 84 return (T t, U u) -> !test(t, u); in negate() 105 return (T t, U u) -> test(t, u) || other.test(t, u); in or()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | MockEnum2.java | 53 MockEnum2 test = (MockEnum2) arg0; in equals() local 54 if (str.equals(test.str) && i == test.i && samEnum == test.samEnum in equals() 55 && myStr.equals(test.myStr)) { in equals()
|
D | MockEnum.java | 50 MockEnum test = (MockEnum) arg0; in equals() local 51 if (str.equals(test.str) && i == test.i && samEnum == test.samEnum) { in equals()
|
/libcore/luni/src/test/java/libcore/java/util/function/ |
D | LongPredicateTest.java | 41 assertTrue(alwaysTrue.and(alwaysTrue2).test(1L)); in testAnd() 46 assertFalse(alwaysTrue.and(alwaysFalse).test(1L)); in testAnd() 51 assertFalse(alwaysFalse.and(alwaysFalse2).test(1L)); in testAnd() 56 assertFalse(alwaysFalse.and(alwaysTrue).test(1L)); in testAnd() 71 assertFalse(alwaysTrue.negate().test(arg)); in testNegate() 74 assertTrue(alwaysFalse.negate().test(arg)); in testNegate() 92 assertTrue(alwaysTrue.or(alwaysTrue2).test(1L)); in testOr() 97 assertTrue(alwaysTrue.or(alwaysFalse).test(1L)); in testOr() 102 assertFalse(alwaysFalse.or(alwaysFalse2).test(1L)); in testOr() 107 assertTrue(alwaysFalse.or(alwaysTrue).test(1L)); in testOr()
|
D | PredicateTest.java | 47 assertTrue(alwaysTrue.and(alwaysTrue2).test(arg)); in testAnd() 52 assertFalse(alwaysTrue.and(alwaysFalse).test(arg)); in testAnd() 57 assertFalse(alwaysFalse.and(alwaysFalse2).test(arg)); in testAnd() 62 assertFalse(alwaysFalse.and(alwaysTrue).test(arg)); in testAnd() 77 assertFalse(alwaysTrue.negate().test(null)); in testNegate() 80 assertTrue(alwaysFalse.negate().test(null)); in testNegate() 104 assertTrue(alwaysTrue.or(alwaysTrue2).test(arg)); in testOr() 109 assertTrue(alwaysTrue.or(alwaysFalse).test(arg)); in testOr() 114 assertFalse(alwaysFalse.or(alwaysFalse2).test(arg)); in testOr() 119 assertTrue(alwaysFalse.or(alwaysTrue).test(arg)); in testOr()
|
D | IntPredicateTest.java | 47 assertTrue(alwaysTrue.and(alwaysTrue2).test(arg)); in testAnd() 52 assertFalse(alwaysTrue.and(alwaysFalse).test(arg)); in testAnd() 57 assertFalse(alwaysFalse.and(alwaysFalse2).test(arg)); in testAnd() 62 assertFalse(alwaysFalse.and(alwaysTrue).test(arg)); in testAnd() 77 assertFalse(alwaysTrue.negate().test(arg)); in testNegate() 80 assertTrue(alwaysFalse.negate().test(arg)); in testNegate() 104 assertTrue(alwaysTrue.or(alwaysTrue2).test(arg)); in testOr() 109 assertTrue(alwaysTrue.or(alwaysFalse).test(arg)); in testOr() 114 assertFalse(alwaysFalse.or(alwaysFalse2).test(arg)); in testOr() 119 assertTrue(alwaysFalse.or(alwaysTrue).test(arg)); in testOr()
|
D | DoublePredicateTest.java | 47 assertTrue(alwaysTrue.and(alwaysTrue2).test(arg)); in testAnd() 52 assertFalse(alwaysTrue.and(alwaysFalse).test(arg)); in testAnd() 57 assertFalse(alwaysFalse.and(alwaysFalse2).test(arg)); in testAnd() 62 assertFalse(alwaysFalse.and(alwaysTrue).test(arg)); in testAnd() 77 assertFalse(alwaysTrue.negate().test(arg)); in testNegate() 80 assertTrue(alwaysFalse.negate().test(arg)); in testNegate() 104 assertTrue(alwaysTrue.or(alwaysTrue2).test(arg)); in testOr() 109 assertTrue(alwaysTrue.or(alwaysFalse).test(arg)); in testOr() 114 assertFalse(alwaysFalse.or(alwaysFalse2).test(arg)); in testOr() 119 assertTrue(alwaysFalse.or(alwaysTrue).test(arg)); in testOr()
|
D | BiPredicateTest.java | 47 assertTrue(alwaysTrue.and(alwaysTrue2).test(arg1, arg2)); in testAnd() 52 assertFalse(alwaysTrue.and(alwaysFalse).test(arg1, arg2)); in testAnd() 57 assertFalse(alwaysFalse.and(alwaysFalse2).test(arg1, arg2)); in testAnd() 62 assertFalse(alwaysFalse.and(alwaysTrue).test(arg1, arg2)); in testAnd() 79 assertFalse(alwaysTrue.negate().test(arg1, arg2)); in testNegate() 83 assertTrue(alwaysFalse.negate().test(arg1, arg2)); in testNegate() 107 assertTrue(alwaysTrue.or(alwaysTrue2).test(arg1, arg2)); in testOr() 112 assertTrue(alwaysTrue.or(alwaysFalse).test(arg1, arg2)); in testOr() 117 assertFalse(alwaysFalse.or(alwaysFalse2).test(arg1, arg2)); in testOr() 122 assertTrue(alwaysFalse.or(alwaysTrue).test(arg1, arg2)); in testOr()
|
/libcore/support/src/test/java/org/apache/harmony/testframework/serialization/ |
D | SerializationTest.java | 269 public static SerializableAssert defineComparator(TestCase test, Object object) in defineComparator() argument 272 if (test instanceof SerializableAssert) { in defineComparator() 273 return (SerializableAssert) test; in defineComparator() 303 public static void verifyGolden(TestCase test, Object object) throws Exception { in verifyGolden() argument 304 verifyGolden(test, object, defineComparator(test, object)); in verifyGolden() 319 public static void verifyGolden(TestCase test, Object object, SerializableAssert comparator) in verifyGolden() argument 322 Serializable deserialized = getObject(test, ".golden.ser"); in verifyGolden() 336 public static void verifyGolden(TestCase test, Object[] objects) throws Exception { in verifyGolden() argument 338 verifyGolden(test, objects, defineComparator(test, objects[0])); in verifyGolden() 356 public static void verifyGolden(TestCase test, Object[] objects, SerializableAssert comparator) in verifyGolden() argument [all …]
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/lang/invoke/ |
D | SerializedLambdaTest.java | 107 assertTrue(p.test("")); in testSimpleSerializedInstantiation() 121 assertTrue(p.test("")); in testSimpleSerializedInstantiation2() 133 assertTrue(p.test("")); in testNonserializableInstantiation() 147 assertTrue(p.test("yada")); in testSerializeCapturingInt() 148 assertFalse(p.test("no")); in testSerializeCapturingInt() 162 assertTrue(p.test("goo")); in testSerializeCapturingString() 163 assertFalse(p.test("foo")); in testSerializeCapturingString() 182 assertTrue(p.test("goo")); in testSerializeCapturingNonSerializable() 183 assertFalse(p.test("foo")); in testSerializeCapturingNonSerializable() 199 assertTrue(p.test("arf")); in testStaticMR() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest2.java | 1162 OptionalDataNotRead test = new OptionalDataNotRead(); in test_OptionalDataNotRead() local 1167 twoObjects[0] = test; in test_OptionalDataNotRead() 1240 NestedPutField test = new NestedPutField(); in test_18_56_writeObject() local 1241 objToSave = test; in test_18_56_writeObject() 1394 ArrayOfSerializable test = new ArrayOfSerializable(); in test_18_61_writeObject() local 1395 objToSave = test; in test_18_61_writeObject() 1423 ClassSubClassTest1 test = new ClassSubClassTest1( in test_18_62_writeObject() local 1425 objToSave = test; in test_18_62_writeObject() 1430 assertTrue(MSG_TEST_FAILED + objToSave, test.equals(objLoaded)); in test_18_62_writeObject() 1453 ConstructorTestC test = new ConstructorTestC(); in test_18_63_writeObject() local [all …]
|
/libcore/luni/src/test/java/libcore/xml/ |
D | JaxenXPathTestSuite.java | 125 for (Element test : elementsOf(element.getChildNodes())) { in contextToTestSuite() 126 if (test.getTagName().equals("test")) { in contextToTestSuite() 127 suite.addTest(createFromTest(xpath, context, test)); in contextToTestSuite() 129 } else if (test.getTagName().equals("valueOf")) { in contextToTestSuite() 130 suite.addTest(createFromValueOf(xpath, context, test)); in contextToTestSuite() 157 @Override void test(Node contextNode) { in createFromTest() 174 @Override void test(Node contextNode) throws XPathExpressionException { in createFromTest() 187 @Override void test(Node contextNode) throws XPathExpressionException { in createFromTest() 206 @Override void test(Node contextNode) throws XPathExpressionException { 258 abstract void test(Node contextNode) throws XPathExpressionException; [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | GZIPInputStreamTest.java | 153 byte[] test = new byte[507]; in test_read$BII() 155 test[i] = (byte) i; in test_read$BII() 157 for (int i = 256; i < test.length; i++) { in test_read$BII() 158 test[i] = (byte) (256 - i); in test_read$BII() 162 out.write(test); in test_read$BII() 168 while ((result = gin2.read(test)) != -1) { in test_read$BII() 173 assertEquals("Incorrectly decompressed", test.length, total); in test_read$BII() 182 assertEquals("Incorrectly decompressed", test.length, total); in test_read$BII() 191 assertEquals("Incorrectly decompressed", test.length, total); in test_read$BII() 197 while (gin2.read(test) != -1) { in test_read$BII() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | TreeSetTest.java | 31 new SerializationTester<TreeSet<String>>(set, s).test(); in testEmptySetSerialization() 46 }.test(); in testSerializationWithComparator() 64 }.test(); in testSubSetSerialization() 82 }.test(); in testNavigableSubSetSerialization() 119 }.test(); in testDescendingSetSerialization() 134 }.test(); in testJava5SerializationWithComparator()
|
/libcore/luni/src/test/etc/loading-test-jar/ |
D | Test1.java | 17 package test; package 23 public static String test() { in test() method in Test1
|
/libcore/support/src/test/java/tests/security/ |
D | KeyAgreementHelper.java | 35 @Override public void test(KeyPair keyPair) throws Exception { in test() method in KeyAgreementHelper 36 test(keyPair.getPrivate(), keyPair.getPublic()); in test() 39 void test(PrivateKey encryptKey, PublicKey decryptKey) throws Exception { in test() method in KeyAgreementHelper
|