/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | CharacterTest.java | 27 assertTrue(Character.isValidCodePoint(0)); in test_isValidCodePointI() 28 assertTrue(Character.isValidCodePoint(1)); in test_isValidCodePointI() 32 assertTrue(Character.isValidCodePoint(c)); in test_isValidCodePointI() 46 assertTrue(Character.isSupplementaryCodePoint(c)); in test_isSupplementaryCodePointI() 56 assertTrue(Character.isHighSurrogate((char) c)); in test_isHighSurrogateC() 66 assertTrue(Character.isLowSurrogate((char) c)); in test_isLowSurrogateC() 75 assertTrue(Character.isSurrogatePair('\uD800', '\uDC00')); in test_isSurrogatePairCC() 76 assertTrue(Character.isSurrogatePair('\uD800', '\uDFFF')); in test_isSurrogatePairCC() 77 assertTrue(Character.isSurrogatePair('\uDBFF', '\uDFFF')); in test_isSurrogatePairCC() 297 assertTrue(Arrays.equals(new char[] { '\uD800', '\uDC00' }, dst)); in test_toCharsI$CI() [all …]
|
D | String2Test.java | 50 assertTrue("Created incorrect string", new String().equals("")); in test_Constructor() 58 assertTrue("Failed to create string", new String(hw1.getBytes()) in test_Constructor$B() 69 assertTrue("Incorrect string returned: " + s, s.equals("ABCDE")); in test_Constructor$BI() 71 assertTrue("Did not use nonzero hibyte", !s.equals("ABCDE")); in test_Constructor$BI() 79 assertTrue("Failed to create string", new String(hw1.getBytes(), 0, hw1 in test_Constructor$BII() 88 assertTrue("Did not throw exception", exception); in test_Constructor$BII() 98 assertTrue("Incorrect string returned: " + s, s.equals("BCD")); in test_Constructor$BIII() 100 assertTrue("Did not use nonzero hibyte", !s.equals("ABCDE")); in test_Constructor$BIII() 110 assertTrue("Incorrect string returned: " + s, s.equals("ABCDE")); in test_Constructor$BIILjava_lang_String() 122 assertTrue("Incorrect string returned: " + s, s.equals("ABCDE")); in test_Constructor$BLjava_lang_String() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldAndroidFloatDoubleTest.java | 47 assertTrue(pz == pz); in testFloat() 48 assertTrue(pz == nz); in testFloat() 49 assertTrue(pz == pzero); in testFloat() 50 assertTrue(pz == nzero); in testFloat() 52 assertTrue(nz == pz); in testFloat() 53 assertTrue(nz == nz); in testFloat() 54 assertTrue(nz == pzero); in testFloat() 55 assertTrue(nz == nzero); in testFloat() 57 assertTrue(pzero == pz); in testFloat() 58 assertTrue(pzero == nz); in testFloat() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerTest.java | 94 assertTrue("Random number is negative", bi.compareTo(zero) >= 0); in test_ConstructorILjava_util_Random() 95 assertTrue("Random number is too big", in test_ConstructorILjava_util_Random() 97 assertTrue( in test_ConstructorILjava_util_Random() 100 assertTrue("Not zero", new BigInteger(0, rand).equals(BigInteger.ZERO)); in test_ConstructorILjava_util_Random() 110 assertTrue("Incorrect value for pos number", bi.equals(BigInteger.ZERO in test_Constructor$B() 114 assertTrue("Incorrect value for neg number", bi.equals(minusTwo)); in test_Constructor$B() 124 assertTrue("Incorrect value for pos number", bi.equals(BigInteger.ZERO in test_ConstructorI$B() 127 assertTrue("Incorrect value for neg number", bi.equals(BigInteger.ZERO in test_ConstructorI$B() 131 assertTrue("Incorrect value for zero", bi.equals(zero)); in test_ConstructorI$B() 160 assertTrue("Incorrect byte array returned", in test_toByteArray() [all …]
|
D | BigDecimalTest.java | 40 assertTrue("the BigDecimal value is not initialized properly", big in test_ConstructorLjava_math_BigInteger() 50 assertTrue("the BigDecimal value is not initialized properly", big in test_ConstructorLjava_math_BigIntegerI() 53 assertTrue("the BigDecimal value is not represented properly", big in test_ConstructorLjava_math_BigIntegerI() 62 assertTrue( in test_ConstructorD() 66 assertTrue("the double representation is not correct", big in test_ConstructorD() 69 assertTrue("the double representation is not correct", big in test_ConstructorD() 72 assertTrue("the double representation is not correct", big in test_ConstructorD() 76 assertTrue( in test_ConstructorD() 80 assertTrue( in test_ConstructorD() 85 assertTrue( in test_ConstructorD() [all …]
|
D | BigIntegerConvertTest.java | 39 assertTrue(aNumber == result); in testDoubleValueZero() 50 assertTrue(aNumber == result); in testDoubleValuePositive1() 61 assertTrue(aNumber == result); in testDoubleValuePositive2() 72 assertTrue(aNumber == result); in testDoubleValueNegative1() 83 assertTrue(aNumber == result); in testDoubleValueNegative2() 96 assertTrue(aNumber == result); in testDoubleValuePosRounded1() 110 assertTrue(aNumber == result); in testDoubleValuePosRounded2() 121 assertTrue(aNumber == result); in testDoubleValuePosNotRounded() 133 assertTrue(aNumber == result); in testDoubleValueNegRounded1() 147 assertTrue(aNumber == result); in testDoubleValueNegRounded2() [all …]
|
/libcore/support/src/test/java/tests/support/ |
D | Support_ListTest.java | 45 assertTrue("ListTest - get failed", elem in runTest() 48 assertTrue("ListTest - hashCode failed", hashCode == list.hashCode()); in runTest() 51 assertTrue("ListTest - a) add with index failed--did not insert", list in runTest() 53 assertTrue( in runTest() 56 assertTrue( in runTest() 61 assertTrue("ListTest - a) set failed--did not set", list.get(50) in runTest() 63 assertTrue("ListTest - b) set failed--affected following elements", in runTest() 65 assertTrue("ListTest - c) set failed--affected previous elements", list in runTest() 69 assertTrue("ListTest - a) remove with index failed--did not remove", in runTest() 71 assertTrue( in runTest() [all …]
|
D | Support_CollectionTest.java | 49 assertTrue("CollectionTest - a) add did not work", col.add(new Integer( in runTest() 51 assertTrue("CollectionTest - b) add did not work", col in runTest() 55 assertTrue("CollectionTest - a) remove did not work", col in runTest() 57 assertTrue("CollectionTest - b) remove did not work", !col in runTest() 61 assertTrue("CollectionTest - a) addAll failed", col in runTest() 63 assertTrue("CollectionTest - b) addAll failed", col in runTest() 67 assertTrue("CollectionTest - a) containsAll failed", col in runTest() 70 assertTrue("CollectionTest - b) containsAll failed", !col in runTest() 74 assertTrue("CollectionTest - a) removeAll failed", col in runTest() 76 assertTrue("CollectionTest - b) removeAll failed", !col in runTest() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | CollatorTest.java | 29 assertTrue("Clones answered false to equals", c.equals(c2)); in test_clone() 30 assertTrue("Clones were equivalent", c != c2); in test_clone() 40 assertTrue("a) Failed on primary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() 43 assertTrue("a) Failed on secondary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() 46 assertTrue("a) Failed on tertiary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() 49 assertTrue("a) Failed on identical", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() 53 assertTrue("a) Failed on primary expansion", in test_compareLjava_lang_ObjectLjava_lang_Object() 59 assertTrue("b) Failed on primary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() 62 assertTrue("b) Failed on secondary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() 65 assertTrue("b) Failed on tertiary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() [all …]
|
D | DateFormatTest.java | 36 assertTrue("Clone not equal", format.equals(clone)); in test_clone() 38 assertTrue("Clone shares NumberFormat", !format.equals(clone)); in test_clone() 46 assertTrue("No locales", locales.length > 0); in test_getAvailableLocales() 55 assertTrue("Doesn't work", in test_getAvailableLocales() 58 assertTrue("Missing locales", english && german); in test_getAvailableLocales() 68 assertTrue("Calendars not identical", cal1 == cal2); in test_getCalendar() 76 assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class); in test_getDateInstance() 77 assertTrue("Wrong default", f2.equals(DateFormat.getDateInstance( in test_getDateInstance() 80 assertTrue("Doesn't work", in test_getDateInstance() 88 assertTrue("Default not medium", in test_getDateInstanceI() [all …]
|
D | ChoiceFormatTest.java | 52 assertTrue("a) Incorrect format returned: " + formattedString, in test_Constructor$D$Ljava_lang_String() 55 assertTrue("b) Incorrect format returned: " + formattedString, in test_Constructor$D$Ljava_lang_String() 58 assertTrue("c) Incorrect format returned: " + formattedString, in test_Constructor$D$Ljava_lang_String() 61 assertTrue("d) Incorrect format returned: " + formattedString, in test_Constructor$D$Ljava_lang_String() 64 assertTrue("e) Incorrect format returned: " + formattedString, in test_Constructor$D$Ljava_lang_String() 67 assertTrue("f) Incorrect format returned: " + formattedString, in test_Constructor$D$Ljava_lang_String() 70 assertTrue("g) Incorrect format returned: " + formattedString, in test_Constructor$D$Ljava_lang_String() 73 assertTrue("h) Incorrect format returned: " + formattedString, in test_Constructor$D$Ljava_lang_String() 76 assertTrue("i) Incorrect format returned: " + formattedString, in test_Constructor$D$Ljava_lang_String() 79 assertTrue("j) Incorrect format returned: " + formattedString, in test_Constructor$D$Ljava_lang_String() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | ModifierTest.java | 47 assertTrue(Modifier.isAbstract(Modifier.ABSTRACT)); in test_isAbstractI() 48 assertTrue(!Modifier.isAbstract(-1 & ~Modifier.ABSTRACT)); in test_isAbstractI() 52 assertTrue(Modifier.isFinal(Modifier.FINAL)); in test_isFinalI() 53 assertTrue(!Modifier.isFinal(-1 & ~Modifier.FINAL)); in test_isFinalI() 57 assertTrue(Modifier.isInterface(Modifier.INTERFACE)); in test_isInterfaceI() 58 assertTrue(!Modifier.isInterface(-1 & ~Modifier.INTERFACE)); in test_isInterfaceI() 62 assertTrue(Modifier.isNative(Modifier.NATIVE)); in test_isNativeI() 63 assertTrue(!Modifier.isNative(-1 & ~Modifier.NATIVE)); in test_isNativeI() 67 assertTrue(Modifier.isPrivate(Modifier.PRIVATE)); in test_isPrivateI() 68 assertTrue(!Modifier.isPrivate(-1 & ~Modifier.PRIVATE)); in test_isPrivateI() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | StampedLockTest.java | 57 assertTrue(lock.isWriteLocked()); in releaseWriteLock() 82 assertTrue(lock.isWriteLocked()); in testLock() 91 assertTrue(lock.isReadLocked()); in testLock() 108 assertTrue(lock.isWriteLocked()); in testUnlock() 117 assertTrue(lock.isReadLocked()); in testUnlock() 135 assertTrue(lock.isWriteLocked()); in testTryUnlock() 139 assertTrue(lock.tryUnlockWrite()); in testTryUnlock() 147 assertTrue(lock.isReadLocked()); in testTryUnlock() 150 assertTrue(lock.tryUnlockRead()); in testTryUnlock() 244 assertTrue(lock.validate(s)); in testValidate() [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldStreamTokenizerTest.java | 35 assertTrue("Wrong token 2,1", st.nextToken() == '\n'); in test_nextToken() 36 assertTrue("Wrong token 2,2", st.nextToken() == '\n'); in test_nextToken() 58 Assert.assertTrue(a.lineno() == 1); in test_basicStringTokenizerMethods() 59 Assert.assertTrue(a.nextToken() == StreamTokenizer.TT_WORD); in test_basicStringTokenizerMethods() 60 Assert.assertTrue(a.toString().equals("Token[Testing], line 1")); in test_basicStringTokenizerMethods() 61 Assert.assertTrue(a.nextToken() == StreamTokenizer.TT_NUMBER); in test_basicStringTokenizerMethods() 62 Assert.assertTrue(a.toString().equals("Token[n=12345.0], line 1")); in test_basicStringTokenizerMethods() 63 Assert.assertTrue(a.nextToken() == StreamTokenizer.TT_WORD); in test_basicStringTokenizerMethods() 64 Assert.assertTrue(a.toString().equals("Token[alpha], line 2")); in test_basicStringTokenizerMethods() 65 Assert.assertTrue(a.nextToken() == StreamTokenizer.TT_WORD); in test_basicStringTokenizerMethods() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ArrayDequeTest.java | 152 assertTrue(testQue.offerFirst(testObjOne)); in test_offerFirst() 155 assertTrue(testQue.offerFirst(testObjOne)); in test_offerFirst() 158 assertTrue(testQue.offerFirst(testObjTwo)); in test_offerFirst() 174 assertTrue(testQue.offerLast(testObjOne)); in test_offerLast() 177 assertTrue(testQue.offerLast(testObjOne)); in test_offerLast() 180 assertTrue(testQue.offerLast(testObjTwo)); in test_offerLast() 196 assertTrue(testQue.offerLast(testObjOne)); in test_removeFirst() 197 assertTrue(testQue.offerLast(testObjTwo)); in test_removeFirst() 198 assertTrue(testQue.offerLast(testObjThree)); in test_removeFirst() 217 assertTrue(testQue.offerLast(testObjOne)); in test_removeLast() [all …]
|
D | ListResourceBundleTest.java | 40 assertTrue("Missing key parent1", result.contains("parent1")); in test_getKeys() 41 assertTrue("Missing key parent2", result.contains("parent2")); in test_getKeys() 42 assertTrue("Missing key parent3", result.contains("parent3")); in test_getKeys() 43 assertTrue("Missing key parent4", result.contains("parent4")); in test_getKeys() 44 assertTrue("Missing key child1", result.contains("child1")); in test_getKeys() 45 assertTrue("Missing key child2", result.contains("child2")); in test_getKeys() 46 assertTrue("Missing key child3", result.contains("child3")); in test_getKeys() 61 assertTrue(result.contains(null)); in test_handleGetObjectLjava_lang_String() 62 assertTrue(result.contains("frFRVARValue4")); in test_handleGetObjectLjava_lang_String() 63 assertTrue(result.contains("frFRVARChildValue1")); in test_handleGetObjectLjava_lang_String() [all …]
|
D | LinkedListTest.java | 77 assertTrue("Incorrect LinkedList constructed", new LinkedList(ll) in test_ConstructorLjava_util_Collection() 95 assertTrue("Failed to add Object>: " + ll.get(50).toString(), ll in test_addILjava_lang_Object() 97 assertTrue("Failed to fix up list after insert", in test_addILjava_lang_Object() 138 assertTrue("Failed to add Object", ll.getLast() == o); in test_addLjava_lang_Object() 153 assertTrue("Manipulated elements < index", ll.get(i) == objArray[i]); in test_addAllILjava_util_Collection() 155 assertTrue("Failed to ad elements properly", in test_addAllILjava_util_Collection() 158 assertTrue("Failed to ad elements properly", in test_addAllILjava_util_Collection() 219 assertTrue("Failed to add elements properly", l.get(i).equals( in test_addAllLjava_util_Collection() 225 assertTrue("Added to list in incorrect order", ll.get(i).equals( in test_addAllLjava_util_Collection() 227 assertTrue("Failed to add to existing list", ll.get(i + 100) in test_addAllLjava_util_Collection() [all …]
|
D | RandomTest.java | 34 assertTrue("Used to test", true); in test_Constructor() 44 assertTrue("Values from randoms with same seed don't match", r in test_ConstructorJ() 54 assertTrue("Values from randoms with same seed don't match", r in test_setSeed() 70 assertTrue("Calling nextBoolean() 100 times resulted in all trues", in test_nextBoolean() 72 assertTrue("Calling nextBoolean() 100 times resulted in all falses", in test_nextBoolean() 88 assertTrue( in test_nextBytes$B() 110 assertTrue("Calling nextDouble 100 times resulted in same number", in test_nextDouble() 112 assertTrue( in test_nextDouble() 134 assertTrue("Calling nextFloat 100 times resulted in same number", in test_nextFloat() 136 assertTrue("Calling nextFloat resulted in a number out of range [0,1)", in test_nextFloat() [all …]
|
D | TreeSetTest.java | 55 assertTrue("Did not construct correct TreeSet", new TreeSet().isEmpty()); in test_Constructor() 64 assertTrue("TreeSet incorrect size", in test_ConstructorLjava_util_Collection() 67 assertTrue("TreeSet does not contain correct elements", myTreeSet in test_ConstructorLjava_util_Collection() 77 assertTrue("Did not construct correct TreeSet", myTreeSet.isEmpty()); in test_ConstructorLjava_util_Comparator() 80 assertTrue( in test_ConstructorLjava_util_Comparator() 83 assertTrue( in test_ConstructorLjava_util_Comparator() 98 assertTrue("TreeSet is not correct size", in test_ConstructorLjava_util_SortedSet() 101 assertTrue("TreeSet does not contain correct elements", in test_ConstructorLjava_util_SortedSet() 103 assertTrue("TreeSet does not answer correct comparator", anotherTreeSet in test_ConstructorLjava_util_SortedSet() 105 assertTrue("TreeSet does not use comparator", in test_ConstructorLjava_util_SortedSet() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | Inet6AddressTest.java | 45 assertTrue("Multicast address " + addrName + " not detected.", addr in test_isMulticastAddress() 50 assertTrue("Non multicast address " + addrName in test_isMulticastAddress() 63 assertTrue("IPv4 compatable address " + addrName in test_isMulticastAddress() 69 assertTrue("IPv4 compatable address " + addrName in test_isMulticastAddress() 82 assertTrue("IPv4-mapped IPv6 multicast address " + addrName in test_isMulticastAddress() 87 assertTrue("IPv4-mapped IPv6 non-multicast address " + addrName in test_isMulticastAddress() 100 assertTrue( in test_isAnyLocalAddress() 107 assertTrue( in test_isAnyLocalAddress() 114 assertTrue("The addresses " + addrName in test_isAnyLocalAddress() 127 assertTrue("IPv6 loopback address " + addrName + " not detected.", in test_isLoopbackAddress() [all …]
|
D | Inet4AddressTest.java | 41 assertTrue("Multicast address " + addrName + " not detected.", addr in test_isMulticastAddress() 46 assertTrue("Multicast address " + addrName + " not detected.", addr in test_isMulticastAddress() 51 assertTrue("Non multicast address " + addrName in test_isMulticastAddress() 58 assertTrue(InetAddress.getByName("0.0.0.0").isAnyLocalAddress()); in test_isAnyLocalAddress() 69 assertTrue("Loopback address " + addrName + " not detected.", addr in test_isLoopbackAddress() 75 assertTrue("Loopback address " + addrName + " not detected.", addr in test_isLoopbackAddress() 81 assertTrue("Address incorrectly " + addrName in test_isLoopbackAddress() 97 assertTrue("IPv4 address " + addrName in test_isLinkLocalAddress() 112 assertTrue("IPv4 address " + addrName in test_isSiteLocalAddress() 129 assertTrue("IPv4 link-local multicast address " + addrName in test_isMCGlobal() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | Pattern2Test.java | 34 assertTrue(m1.matches()); in testSimpleMatch() 35 assertTrue(m1.find(0)); in testSimpleMatch() 36 assertTrue(m1.lookingAt()); in testSimpleMatch() 43 assertTrue(Pattern.matches("foo.*", "foo123")); in testSimpleMatch() 48 assertTrue(Pattern.matches("", "")); in testSimpleMatch() 59 assertTrue(m.find()); in testCursors() 66 assertTrue(m.find()); in testCursors() 72 assertTrue(m.find()); in testCursors() 78 assertTrue(m.find()); in testCursors() 84 assertTrue(m.find()); in testCursors() [all …]
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | OldBigDecimalTest.java | 35 assertTrue( in test_ConstructorD() 39 assertTrue("init(D) failed for 123.375; became " + big, in test_ConstructorD() 42 assertTrue("init(D) failed for 2^(-33) = 1.16415321826934814453125E-10; became " + big, in test_ConstructorD() 45 … assertTrue("init(D) failed for 123456 * 2^(-33) = 0.000014372169971466064453125; became " + big, in test_ConstructorD() 48 … assertTrue("init(D) failed for 123456 * 2^(-33) = -0.000014372169971466064453125; became " + big, in test_ConstructorD() 75 assertTrue("the number 2.323E102 after setting scale is wrong", in test_setScaleILjava_math_RoundingMode() 77 assertTrue("the representation of the number 2.323E102 is wrong", in test_setScaleILjava_math_RoundingMode() 82 assertTrue("the scale of the number -1.253E-12 after setting scale is wrong", in test_setScaleILjava_math_RoundingMode() 84 assertTrue( in test_setScaleILjava_math_RoundingMode() 91 assertTrue( in test_setScaleILjava_math_RoundingMode() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | LinuxFileSystemTest.java | 41 import static junit.framework.TestCase.assertTrue; 53 assertTrue(fileSystem.provider() instanceof LinuxFileSystemProvider); in test_provider() 58 assertTrue(fileSystem.isOpen()); in test_isOpen() 86 assertTrue(pathMap.get(Paths.get("/"))); in test_getRootDirectories() 93 assertTrue(fileStores.iterator().hasNext()); in test_getFileStores() 100 assertTrue(supportedFileAttributeViewsList.contains("posix")); in test_supportedFileAttributeViews() 101 assertTrue(supportedFileAttributeViewsList.contains("user")); in test_supportedFileAttributeViews() 102 assertTrue(supportedFileAttributeViewsList.contains("owner")); in test_supportedFileAttributeViews() 103 assertTrue(supportedFileAttributeViewsList.contains("unix")); in test_supportedFileAttributeViews() 104 assertTrue(supportedFileAttributeViewsList.contains("basic")); in test_supportedFileAttributeViews() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | StreamTokenizerTest.java | 92 assertTrue("the next token returned should be the digit 8", st in test_commentCharI() 95 assertTrue("the next token returned should be the quote character", in test_commentCharI() 105 assertTrue("nextToken did not return d", in test_eolIsSignificantZ() 108 assertTrue("nextToken did not return 8", in test_eolIsSignificantZ() 111 assertTrue("nextToken should be the end of file", in test_eolIsSignificantZ() 116 assertTrue("nextToken did not return d", in test_eolIsSignificantZ() 119 assertTrue("nextToken is the end of line", in test_eolIsSignificantZ() 160 assertTrue("Wrong Token type1: " + (char) st.ttype, in test_nextToken() 163 assertTrue("Wrong Token type2: " + st.ttype, in test_nextToken() 166 assertTrue("Wrong Token type3: " + st.ttype, st.ttype == '/'); in test_nextToken() [all …]
|