/libcore/luni/src/test/java/tests/api/java/lang/ |
H A D | StringTest.java | 26 assertTrue("aabc".contains("abc")); 27 assertTrue("abcd".contains("abc")); 31 assertTrue("abcd".charAt(0) == 'a'); 32 assertTrue("abcd".charAt(3) == 'd'); 35 assertTrue("abcd".startsWith("abc")); 39 assertTrue("abcd".endsWith("bcd")); 47 assertTrue(String.CASE_INSENSITIVE_ORDER.compare(s1, s2) == 0);
|
/libcore/luni/src/test/java/tests/java/lang/String/ |
H A D | Tests.java | 26 assertTrue("aabc".contains("abc")); 27 assertTrue("abcd".contains("abc")); 31 assertTrue("abcd".charAt(0) == 'a'); 32 assertTrue("abcd".charAt(3) == 'd'); 35 assertTrue("abcd".startsWith("abc")); 39 assertTrue("abcd".endsWith("bcd")); 46 assertTrue(String.CASE_INSENSITIVE_ORDER.compare(s1, s2) == 0);
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_CollectionTest.java | 49 assertTrue("CollectionTest - a) add did not work", col.add(new Integer( 51 assertTrue("CollectionTest - b) add did not work", col 55 assertTrue("CollectionTest - a) remove did not work", col 57 assertTrue("CollectionTest - b) remove did not work", !col 61 assertTrue("CollectionTest - a) addAll failed", col 63 assertTrue("CollectionTest - b) addAll failed", col 67 assertTrue("CollectionTest - a) containsAll failed", col 70 assertTrue("CollectionTest - b) containsAll failed", !col 74 assertTrue("CollectionTest - a) removeAll failed", col 76 assertTrue("CollectionTes [all...] |
H A D | Support_UnmodifiableMapTest.java | 45 assertTrue("UnmodifiableMapTest - Should contain the key \"0\"", map 47 assertTrue("UnmodifiableMapTest - Should contain the key \"50\"", map 49 assertTrue("UnmodifiableMapTest - Should not contain the key \"100\"", 53 assertTrue("UnmodifiableMapTest - Should contain the value 0", map 55 assertTrue("UnmodifiableMapTest - Should contain the value 50", map 57 assertTrue("UnmodifiableMapTest - Should not contain value 100", !map 66 assertTrue("UnmodifiableMapTest - Incorrect Map.Entry returned", 74 assertTrue("UnmodifiableMapTest - getting \"0\" didn't return 0", 76 assertTrue("UnmodifiableMapTest - getting \"50\" didn't return 0", 82 assertTrue( [all...] |
H A D | Support_ListTest.java | 45 assertTrue("ListTest - get failed", elem 48 assertTrue("ListTest - hashCode failed", hashCode == list.hashCode()); 51 assertTrue("ListTest - a) add with index failed--did not insert", list 53 assertTrue( 56 assertTrue( 61 assertTrue("ListTest - a) set failed--did not set", list.get(50) 63 assertTrue("ListTest - b) set failed--affected following elements", 65 assertTrue("ListTest - c) set failed--affected previous elements", list 69 assertTrue("ListTest - a) remove with index failed--did not remove", 71 assertTrue( [all...] |
H A D | Support_MapTest2.java | 42 assertTrue("Should not have entries", !map.entrySet().iterator() 44 assertTrue("Should not have keys", !map.keySet().iterator() 46 assertTrue("Should not have values", !map.values().iterator() 56 assertTrue("Should not have entries", !map.entrySet().iterator() 58 assertTrue("Should not have keys", !map.keySet().iterator() 60 assertTrue("Should not have values", !map.values().iterator()
|
H A D | Support_UnmodifiableCollectionTest.java | 47 assertTrue("UnmodifiableCollectionTest - should contain 0", col 49 assertTrue("UnmodifiableCollectionTest - should contain 50", col 51 assertTrue("UnmodifiableCollectionTest - should not contain 100", !col 59 assertTrue( 63 assertTrue( 68 assertTrue("UnmodifiableCollectionTest - should not be empty", !col 80 assertTrue( 87 assertTrue( 95 assertTrue( 104 assertTrue( [all...] |
H A D | Support_SetTest.java | 38 assertTrue("Set Test - Adding a duplicate element changed the set", 40 assertTrue("Set Test - Removing an element did not change the set", set 42 assertTrue(
|
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | ByteTest.java | 24 assertTrue(Byte.compare(max, max) == 0); 25 assertTrue(Byte.compare(min, min) == 0); 26 assertTrue(Byte.compare(zero, zero) == 0); 27 assertTrue(Byte.compare(max, zero) > 0); 28 assertTrue(Byte.compare(max, min) > 0); 29 assertTrue(Byte.compare(zero, max) < 0); 30 assertTrue(Byte.compare(zero, min) > 0); 31 assertTrue(Byte.compare(min, zero) < 0); 32 assertTrue(Byte.compare(min, max) < 0);
|
H A D | IntegerTest.java | 24 assertTrue(Integer.compare(max, max) == 0); 25 assertTrue(Integer.compare(min, min) == 0); 26 assertTrue(Integer.compare(zero, zero) == 0); 27 assertTrue(Integer.compare(max, zero) > 0); 28 assertTrue(Integer.compare(max, min) > 0); 29 assertTrue(Integer.compare(zero, max) < 0); 30 assertTrue(Integer.compare(zero, min) > 0); 31 assertTrue(Integer.compare(min, zero) < 0); 32 assertTrue(Integer.compare(min, max) < 0);
|
H A D | ShortTest.java | 24 assertTrue(Short.compare(max, max) == 0); 25 assertTrue(Short.compare(min, min) == 0); 26 assertTrue(Short.compare(zero, zero) == 0); 27 assertTrue(Short.compare(max, zero) > 0); 28 assertTrue(Short.compare(max, min) > 0); 29 assertTrue(Short.compare(zero, max) < 0); 30 assertTrue(Short.compare(zero, min) > 0); 31 assertTrue(Short.compare(min, zero) < 0); 32 assertTrue(Short.compare(min, max) < 0);
|
H A D | OldAndroidFloatDoubleTest.java | 47 assertTrue(pz == pz); 48 assertTrue(pz == nz); 49 assertTrue(pz == pzero); 50 assertTrue(pz == nzero); 52 assertTrue(nz == pz); 53 assertTrue(nz == nz); 54 assertTrue(nz == pzero); 55 assertTrue(nz == nzero); 57 assertTrue(pzero == pz); 58 assertTrue(pzer [all...] |
H A D | BooleanTest.java | 22 assertTrue(Boolean.TRUE.booleanValue()); 33 assertTrue(Boolean.compare(false, true) < 0); 34 assertTrue(Boolean.compare(true, false) > 0);
|
H A D | LongTest.java | 24 assertTrue(Long.compare(max, max) == 0); 25 assertTrue(Long.compare(min, min) == 0); 26 assertTrue(Long.compare(zero, zero) == 0); 27 assertTrue(Long.compare(max, zero) > 0); 28 assertTrue(Long.compare(max, min) > 0); 29 assertTrue(Long.compare(zero, max) < 0); 30 assertTrue(Long.compare(zero, min) > 0); 31 assertTrue(Long.compare(min, zero) < 0); 32 assertTrue(Long.compare(min, max) < 0);
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
H A D | ModifierTest.java | 43 assertTrue(Modifier.isAbstract(Modifier.ABSTRACT)); 44 assertTrue(!Modifier.isAbstract(-1 & ~Modifier.ABSTRACT)); 48 assertTrue(Modifier.isFinal(Modifier.FINAL)); 49 assertTrue(!Modifier.isFinal(-1 & ~Modifier.FINAL)); 53 assertTrue(Modifier.isInterface(Modifier.INTERFACE)); 54 assertTrue(!Modifier.isInterface(-1 & ~Modifier.INTERFACE)); 58 assertTrue(Modifier.isNative(Modifier.NATIVE)); 59 assertTrue(!Modifier.isNative(-1 & ~Modifier.NATIVE)); 63 assertTrue(Modifier.isPrivate(Modifier.PRIVATE)); 64 assertTrue(!Modifie [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldStreamTokenizerTest.java | 35 assertTrue("Wrong token 2,1", st.nextToken() == '\n'); 36 assertTrue("Wrong token 2,2", st.nextToken() == '\n'); 58 Assert.assertTrue(a.lineno() == 1); 59 Assert.assertTrue(a.nextToken() == StreamTokenizer.TT_WORD); 60 Assert.assertTrue(a.toString().equals("Token[Testing], line 1")); 61 Assert.assertTrue(a.nextToken() == StreamTokenizer.TT_NUMBER); 62 Assert.assertTrue(a.toString().equals("Token[n=12345.0], line 1")); 63 Assert.assertTrue(a.nextToken() == StreamTokenizer.TT_WORD); 64 Assert.assertTrue(a.toString().equals("Token[alpha], line 2")); 65 Assert.assertTrue( [all...] |
H A D | OldAndroidFileTest.java | 30 assertTrue(file.exists()); 31 assertTrue(file.delete());
|
/libcore/luni/src/test/java/tests/api/java/util/ |
H A D | ListResourceBundleTest.java | 41 assertTrue("Missing key parent1", result.contains("parent1")); 42 assertTrue("Missing key parent2", result.contains("parent2")); 43 assertTrue("Missing key parent3", result.contains("parent3")); 44 assertTrue("Missing key parent4", result.contains("parent4")); 45 assertTrue("Missing key child1", result.contains("child1")); 46 assertTrue("Missing key child2", result.contains("child2")); 47 assertTrue("Missing key child3", result.contains("child3")); 63 assertTrue(result.contains(null)); 64 assertTrue(result.contains("frFRVARValue4")); 65 assertTrue(resul [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | ServiceLoaderTest.java | 33 assertTrue(it.hasNext()); 34 assertTrue(it.next() instanceof Impl1); 35 assertTrue(it.hasNext()); 36 assertTrue(it.next() instanceof Impl2);
|
/libcore/luni/src/test/java/tests/api/java/math/ |
H A D | BigIntegerTest.java | 94 assertTrue("Random number is negative", bi.compareTo(zero) >= 0); 95 assertTrue("Random number is too big", 97 assertTrue( 100 assertTrue("Not zero", new BigInteger(0, rand).equals(BigInteger.ZERO)); 117 assertTrue("Random number one is negative", bi.compareTo(zero) >= 0); 118 assertTrue("Random number one is too big", 120 assertTrue("Random number two is negative", bi2.compareTo(zero) >= 0); 121 assertTrue("Random number two is too big", 131 assertTrue("Bit length incorrect", bi.bitLength() == i); 157 assertTrue("Incorrec [all...] |
/libcore/luni/src/test/java/tests/api/java/lang/ref/ |
H A D | WeakReferenceTest.java | 40 assertTrue("Initialization failed.", ((Boolean) wr.get()) 46 assertTrue("should always pass", bool.booleanValue()); 54 assertTrue("Should not throw NullPointerException", !exception); 66 assertTrue("Initialization failed.", ((Boolean) wr.get()) 72 assertTrue("should always pass", bool.booleanValue());
|
/libcore/luni/src/test/java/tests/security/cert/ |
H A D | LDAPCertStoreParametersTest.java | 48 assertTrue("isLDAPCertStoreParameters", 70 assertTrue("isLDAPCertStoreParameters", 82 assertTrue("host", serverName.equals(cp.getServerName())); 106 assertTrue("isLDAPCertStoreParameters", 120 assertTrue("host", serverName.equals(cp.getServerName())); 121 assertTrue("port", cp.getPort() == portNumber); 156 assertTrue("newObject", cp1 != cp2); 157 assertTrue("hostsTheSame", 159 assertTrue("portsTheSame", cp1.getPort() == cp2.getPort()); 181 assertTrue(c [all...] |
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
H A D | Pattern2Test.java | 35 assertTrue(m1.matches()); 36 assertTrue(m1.find(0)); 37 assertTrue(m1.lookingAt()); 44 assertTrue(Pattern.matches("foo.*", "foo123")); 49 assertTrue(Pattern.matches("", "")); 59 assertTrue(m.find()); 66 assertTrue(m.find()); 72 assertTrue(m.find()); 78 assertTrue(m.find()); 84 assertTrue( [all...] |
H A D | ModeTest.java | 36 assertTrue(m.find()); 43 assertTrue(m.find()); 45 assertTrue(m.find()); 52 assertTrue(m.find()); 54 assertTrue(m.find()); 64 assertTrue(m.find()); 65 assertTrue(m.start() == 0 && m.end() == 3); 77 assertTrue(m.find()); 78 assertTrue(m.start() == 3 && m.end() == 6); 84 assertTrue( [all...] |
/libcore/luni/src/test/java/libcore/java/math/ |
H A D | OldBigDecimalTest.java | 35 assertTrue( 39 assertTrue("init(D) failed for 123.375; became " + big, 42 assertTrue("init(D) failed for 2^(-33) = 1.16415321826934814453125E-10; became " + big, 45 assertTrue("init(D) failed for 123456 * 2^(-33) = 0.000014372169971466064453125; became " + big, 48 assertTrue("init(D) failed for 123456 * 2^(-33) = -0.000014372169971466064453125; became " + big, 75 assertTrue("the number 2.323E102 after setting scale is wrong", 77 assertTrue("the representation of the number 2.323E102 is wrong", 82 assertTrue("the scale of the number -1.253E-12 after setting scale is wrong", 84 assertTrue( 91 assertTrue( [all...] |