Home
last modified time | relevance | path

Searched refs:three (Results 1 – 25 of 31) sorted by relevance

12

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DCodeSignerTest.java86 CodeSigner three = new CodeSigner(cpath, null); in testEqualsObject() local
94 assertFalse(one.equals(three)); in testEqualsObject()
95 assertFalse(three.equals(one)); in testEqualsObject()
96 assertTrue(three.equals(three)); in testEqualsObject()
98 assertFalse( three.equals(four)); in testEqualsObject()
DTimestampTest.java109 Timestamp three = new Timestamp(now, new MyCertPath(new byte[] { 10, in testHashCode() local
114 assertTrue(one.hashCode() != three.hashCode()); in testHashCode()
115 assertTrue(two.hashCode() != three.hashCode()); in testHashCode()
/libcore/jsr166-tests/src/test/java/jsr166/
DTreeMapTest.java22 map.put(three, "C"); in map5()
151 assertTrue(s.contains(three)); in testKeySet()
259 (e.getKey().equals(three) && e.getValue().equals("C")) ||
278 (e.getKey().equals(three) && e.getValue().equals("C")) ||
322 assertTrue(empty.containsKey(three));
342 Map.Entry e1 = map.lowerEntry(three);
360 Map.Entry e1 = map.higherEntry(three);
378 Map.Entry e1 = map.floorEntry(three);
379 assertEquals(three, e1.getKey());
396 Map.Entry e1 = map.ceilingEntry(three);
[all …]
DConcurrentSkipListMapTest.java23 map.put(three, "C"); in map5()
152 assertTrue(s.contains(three)); in testKeySet()
276 (e.getKey().equals(three) && e.getValue().equals("C")) ||
295 (e.getKey().equals(three) && e.getValue().equals("C")) ||
339 assertTrue(empty.containsKey(three));
429 Map.Entry e1 = map.lowerEntry(three);
447 Map.Entry e1 = map.higherEntry(three);
465 Map.Entry e1 = map.floorEntry(three);
466 assertEquals(three, e1.getKey());
483 Map.Entry e1 = map.ceilingEntry(three);
[all …]
DTreeSubMapTest.java23 map.put(three, "C"); in map5()
146 assertTrue(s.contains(three)); in testKeySet()
194 (e.getKey().equals(three) && e.getValue().equals("C")) ||
210 assertTrue(empty.containsKey(three));
230 Map.Entry e1 = map.lowerEntry(three);
248 Map.Entry e1 = map.higherEntry(three);
266 Map.Entry e1 = map.floorEntry(three);
267 assertEquals(three, e1.getKey());
284 Map.Entry e1 = map.ceilingEntry(three);
285 assertEquals(three, e1.getKey());
[all …]
DTreeSetTest.java59 q.add(three); in set5()
381 Object e1 = q.lower(three); in testLower()
399 Object e1 = q.higher(three); in testHigher()
417 Object e1 = q.floor(three); in testFloor()
418 assertEquals(three, e1); in testFloor()
435 Object e1 = q.ceiling(three); in testCeiling()
436 assertEquals(three, e1); in testCeiling()
553 assertEquals(three, sm.last()); in testSubSetContents()
557 assertTrue(sm.contains(three)); in testSubSetContents()
565 assertEquals(three, k); in testSubSetContents()
[all …]
DConcurrentSkipListSetTest.java55 q.add(three); in set5()
377 Object e1 = q.lower(three); in testLower()
395 Object e1 = q.higher(three); in testHigher()
413 Object e1 = q.floor(three); in testFloor()
414 assertEquals(three, e1); in testFloor()
431 Object e1 = q.ceiling(three); in testCeiling()
432 assertEquals(three, e1); in testCeiling()
548 assertEquals(three, sm.last()); in testSubSetContents()
552 assertTrue(sm.contains(three)); in testSubSetContents()
560 assertEquals(three, k); in testSubSetContents()
[all …]
DConcurrentSkipListSubMapTest.java25 map.put(three, "C"); in map5()
148 assertTrue(s.contains(three)); in testKeySet()
238 (e.getKey().equals(three) && e.getValue().equals("C")) ||
254 assertTrue(empty.containsKey(three));
344 Map.Entry e1 = map.lowerEntry(three);
362 Map.Entry e1 = map.higherEntry(three);
380 Map.Entry e1 = map.floorEntry(three);
381 assertEquals(three, e1.getKey());
398 Map.Entry e1 = map.ceilingEntry(three);
399 assertEquals(three, e1.getKey());
[all …]
DAtomicReferenceArrayTest.java42 Integer[] a = { two, one, three, four, seven }; in testConstructor2()
53 Integer[] a = { two, one, three, four, seven }; in testConstructorSubClassArray()
149 while (!a.compareAndSet(0, two, three)) in testCompareAndSetInMultipleThreads()
157 assertSame(three, a.get(0)); in testCompareAndSetInMultipleThreads()
209 Integer[] a = { two, one, three, four, seven }; in testToString()
DConcurrentSkipListSubSetTest.java59 q.add(three); in set5()
339 Object e1 = q.lower(three); in testLower()
357 Object e1 = q.higher(three); in testHigher()
375 Object e1 = q.floor(three); in testFloor()
376 assertEquals(three, e1); in testFloor()
393 Object e1 = q.ceiling(three); in testCeiling()
394 assertEquals(three, e1); in testCeiling()
511 assertEquals(three, sm.last()); in testSubSetContents()
515 assertTrue(sm.contains(three)); in testSubSetContents()
523 assertEquals(three, k); in testSubSetContents()
[all …]
DTreeSubSetTest.java54 q.add(three); in set5()
331 Object e1 = q.lower(three); in testLower()
349 Object e1 = q.higher(three); in testHigher()
367 Object e1 = q.floor(three); in testFloor()
368 assertEquals(three, e1); in testFloor()
385 Object e1 = q.ceiling(three); in testCeiling()
386 assertEquals(three, e1); in testCeiling()
503 assertEquals(three, sm.last()); in testSubSetContents()
507 assertTrue(sm.contains(three)); in testSubSetContents()
515 assertEquals(three, k); in testSubSetContents()
[all …]
DCopyOnWriteArrayListTest.java84 v.add(three); in testAddAll()
98 v.add(three); in testAddAllAbsent()
119 full.addIfAbsent(three); in testAddIfAbsent2()
120 assertTrue(full.contains(three)); in testAddIfAbsent2()
298 full.add(three); in testLastIndexOf1()
309 full.add(three); in testLastIndexOf2()
311 assertEquals(-1, full.lastIndexOf(three, 3)); in testLastIndexOf2()
DAtomicReferenceTest.java78 while (!ai.compareAndSet(two, three)) in testCompareAndSetInMultipleThreads()
86 assertSame(three, ai.get()); in testCompareAndSetInMultipleThreads()
DAtomicReferenceFieldUpdaterTest.java122 while (!a.compareAndSet(AtomicReferenceFieldUpdaterTest.this, two, three)) in testCompareAndSetInMultipleThreads()
130 assertSame(three, a.get(this)); in testCompareAndSetInMultipleThreads()
DExchangerTest.java130 assertSame(three, e.exchange(one)); in testReplacementAfterExchange()
135 assertSame(one, e.exchange(three)); in testReplacementAfterExchange()
DAtomicMarkableReferenceTest.java95 while (!ai.compareAndSet(two, three, false, false)) in testCompareAndSetInMultipleThreads()
103 assertSame(three, ai.getReference()); in testCompareAndSetInMultipleThreads()
DAtomicStampedReferenceTest.java95 while (!ai.compareAndSet(two, three, 0, 0)) in testCompareAndSetInMultipleThreads()
103 assertSame(three, ai.getReference()); in testCompareAndSetInMultipleThreads()
DCopyOnWriteArraySetTest.java70 v.add(three); in testAddAll()
84 v.add(three); in testAddAll2()
105 full.add(three); in testAdd3()
106 assertTrue(full.contains(three)); in testAdd3()
DLinkedBlockingQueueTest.java122 assertFalse(q.offer(three)); in testEmptyFull()
627 q.add(three); in testIteratorRemove()
635 assertSame(it.next(), three); in testIteratorRemove() local
646 q.add(three); in testIteratorOrdering()
662 q.add(three); in testWeaklyConsistentIteration()
692 assertFalse(q.offer(three)); in testOfferInExecutor()
694 assertTrue(q.offer(three, LONG_DELAY_MS, MILLISECONDS)); in testOfferInExecutor()
DConcurrentLinkedQueueTest.java438 q.add(three); in testIteratorOrdering()
455 q.add(three); in testWeaklyConsistentIteration()
472 q.add(three); in testIteratorRemove()
478 assertSame(it.next(), three); in testIteratorRemove() local
DArrayBlockingQueueTest.java133 assertFalse(q.offer(three)); in testEmptyFull()
691 q.add(three); in testIteratorRemove()
699 assertSame(it.next(), three); in testIteratorRemove() local
710 q.add(three); in testIteratorOrdering()
728 q.add(three); in testWeaklyConsistentIteration()
758 assertFalse(q.offer(three)); in testOfferInExecutor()
760 assertTrue(q.offer(three, LONG_DELAY_MS, MILLISECONDS)); in testOfferInExecutor()
DLinkedTransferQueueTest.java370 assertTrue(q.add(three)); in testRemoveElementAndAdd()
371 assertSame(q.take(), three); in testRemoveElementAndAdd() local
507 q.add(three); in testIteratorRemove()
515 assertSame(it.next(), three); in testIteratorRemove() local
528 q.add(three); in testIteratorOrdering()
544 q.add(three); in testWeaklyConsistentIteration()
804 assertSame(three, q.poll()); in testTransfer4()
811 assertTrue(q.offer(three)); in testTransfer4()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DConcurrentModTest.java38 Double three = new Double(3.0); in testGet() local
42 al.add(three); in testGet()
82 Double three = new Double(3.0); in testSet() local
86 al.add(three); in testSet()
112 Double three = new Double(3.0); in testAdd() local
116 al.add(three); in testAdd()
142 Double three = new Double(3.0); in testRemove() local
146 al.add(three); in testRemove()
208 Double three = new Double(3.0); in testAddAll() local
212 al.add(three); in testAddAll()
/libcore/luni/src/test/java/libcore/xml/
DSimpleBuilderTest.java73 Element three = (Element) list.item(2); in testGoodFile1() local
80 assertEquals("Rent this space!", getTextContent(three)); in testGoodFile1()
85 assertEquals("drei", three.getAttribute("three")); in testGoodFile1()
/libcore/luni/src/test/java/libcore/java/lang/
DOldAndroidInstanceofTest.java65 InterfaceThree three = mThree; in testDerivedThree() local
67 assertFalse("m_three should not be a ChildOfAFive", three instanceof ChildOfAFive); in testDerivedThree()

12