Home
last modified time | relevance | path

Searched refs:col (Results 1 – 15 of 15) sorted by relevance

/libcore/support/src/test/java/tests/support/
DSupport_CollectionTest.java27 Collection<Integer> col; // must contain the Integers 0 to 99 field in Support_CollectionTest
35 col = c; in Support_CollectionTest()
40 new Support_UnmodifiableCollectionTest("", col).runTest(); in runTest()
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()
[all …]
DSupport_UnmodifiableCollectionTest.java29 Collection<Integer> col; field in Support_UnmodifiableCollectionTest
40 col = c; in Support_UnmodifiableCollectionTest()
47 assertTrue("UnmodifiableCollectionTest - should contain 0", col in runTest()
49 assertTrue("UnmodifiableCollectionTest - should contain 50", col in runTest()
51 assertTrue("UnmodifiableCollectionTest - should not contain 100", !col in runTest()
61 col.containsAll(hs)); in runTest()
65 !col.containsAll(hs)); in runTest()
68 assertTrue("UnmodifiableCollectionTest - should not be empty", !col in runTest()
72 Iterator<Integer> it = col.iterator(); in runTest()
89 + col.size(), col.size() == 100); in runTest()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/charset/
DCharset_TestGenerator.java104 int row = 0, col = 0; field in Charset_TestGenerator.CodesGenerator
118 col++; in consume()
119 if (col == 16) { in consume()
122 col = 0; in consume()
139 col++; in consume()
140 if (col == 80) { in consume()
143 col = 0; in consume()
153 buf[col] = (char) code; in consume()
156 col++; in consume()
157 if (col == 8) { in consume()
[all …]
DOldCharset_AbstractTest.java292 int row = 0, col = 0; field in OldCharset_AbstractTest.CodesGenerator
/libcore/luni/src/test/java/libcore/java/security/cert/
DX509CertificateTest.java837 Collection<List<?>> col = c.getSubjectAlternativeNames(); in getSubjectAlternativeNames() local
839 checkAlternativeNames(f, col); in getSubjectAlternativeNames()
842 …private void checkAlternativeNames(CertificateFactory f, Collection<List<?>> col) throws Exception… in checkAlternativeNames() argument
843 assertNotNull(col); in checkAlternativeNames()
848 col.add(new ArrayList<Object>()); in checkAlternativeNames()
860 for (List<?> item : col) { in checkAlternativeNames()
931 Collection<List<?>> col = c.getSubjectAlternativeNames(); in getSubjectAlternativeNames_IPV6() local
933 assertNotNull(f.getProvider().getName(), col); in getSubjectAlternativeNames_IPV6() local
935 assertEquals(1, col.size()); in getSubjectAlternativeNames_IPV6()
936 List<?> item = col.iterator().next(); in getSubjectAlternativeNames_IPV6()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest3.java655 Object col = Collections.synchronizedMap(TABLE); in test_18_91_writeObject() local
656 objToSave = col; in test_18_91_writeObject()
661 assertTrue(MSG_TEST_FAILED + objToSave, col.equals(objLoaded)); in test_18_91_writeObject()
684 Object col = Collections.unmodifiableMap(TABLE); in test_18_92_writeObject() local
685 objToSave = col; in test_18_92_writeObject()
690 assertTrue(MSG_TEST_FAILED + objToSave, col.equals(objLoaded)); in test_18_92_writeObject()
741 Object col = Collections.synchronizedMap(MAP); in test_18_94_writeObject() local
742 objToSave = col; in test_18_94_writeObject()
747 assertTrue(MSG_TEST_FAILED + objToSave, col.equals(objLoaded)); in test_18_94_writeObject()
770 Object col = Collections.unmodifiableMap(MAP); in test_18_95_writeObject() local
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DConcurrentModificationExceptionTest.java29 Collection col; field in ConcurrentModificationExceptionTest.CollectionModifier
34 col = c; in CollectionModifier()
44 col.add(someItem); in run()
45 col.remove(someItem); in run()
DCollectionsTest.java88 Collection col; field in CollectionsTest.SynchCollectionChecker
108 synchronized (col) { in run()
109 if (!(col.isEmpty() || col.containsAll(normalCountingList) || col in run()
112 col.clear(); in run()
115 col.addAll(offsetCountingList); in run()
117 col.addAll(normalCountingList); in run()
127 col = c; in SynchCollectionChecker()
135 col.clear(); in SynchCollectionChecker()
137 col.addAll(offsetCountingList); in SynchCollectionChecker()
139 col.addAll(normalCountingList); in SynchCollectionChecker()
[all …]
/libcore/luni/src/test/java/tests/java/sql/
DDatabaseMetaDataTest.java191 int col = rsmd.getColumnCount(); in test_getBestRowIdentifierLjava_lang_StringLjava_lang_StringLjava_lang_StringIZ() local
192 assertEquals("Incorrect number of columns", 8, col); in test_getBestRowIdentifierLjava_lang_StringLjava_lang_StringLjava_lang_StringIZ()
197 for (int c = 1; c <= col; ++c) { in test_getBestRowIdentifierLjava_lang_StringLjava_lang_StringLjava_lang_StringIZ()
450 int col = rsmd.getColumnCount(); in test_getCrossReferenceLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_String() local
451 assertEquals("Incorrect number of columns", 14, col); in test_getCrossReferenceLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_String()
457 for (int c = 1; c <= col; ++c) { in test_getCrossReferenceLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_String()
689 int col = rsmd.getColumnCount(); in test_getImportedKeysLjava_lang_StringLjava_lang_StringLjava_lang_String() local
690 assertEquals("Incorrect number of columns", 14, col); in test_getImportedKeysLjava_lang_StringLjava_lang_StringLjava_lang_String()
696 for (int c = 1; c <= col; ++c) { in test_getImportedKeysLjava_lang_StringLjava_lang_StringLjava_lang_String()
835 int col = rsmd.getColumnCount(); in test_getPrimaryKeysLjava_lang_StringLjava_lang_StringLjava_lang_String() local
[all …]
DDatabaseMetaDataNotSupportedTest.java259 int col = rsmd.getColumnCount(); in test_getIndexInfoLjava_lang_StringLjava_lang_StringLjava_lang_StringZZ() local
260 assertEquals("Incorrect number of columns", 13, col); in test_getIndexInfoLjava_lang_StringLjava_lang_StringLjava_lang_StringZZ()
265 for (int c = 1; c <= col; ++c) { in test_getIndexInfoLjava_lang_StringLjava_lang_StringLjava_lang_StringZZ()
313 int col = rsmd.getColumnCount(); in test_getColumnPrivilegesLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_String() local
314 assertEquals("Incorrect number of columns", 8, col); in test_getColumnPrivilegesLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_String()
318 for (int c = 1; c <= col; ++c) { in test_getColumnPrivilegesLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_String()
351 int col = rsmd.getColumnCount(); in test_getExportedKeysLjava_lang_StringLjava_lang_StringLjava_lang_String() local
352 assertEquals("Incorrect number of columns", 14, col); in test_getExportedKeysLjava_lang_StringLjava_lang_StringLjava_lang_String()
358 for (int c = 1; c <= col; ++c) { in test_getExportedKeysLjava_lang_StringLjava_lang_StringLjava_lang_String()
/libcore/luni/src/test/java/tests/security/cert/
DCertificateFactorySpiTest.java85 Collection<? extends Certificate> col = certFactorySpi.engineGenerateCertificates(bais); in testCertificateFactorySpi01() local
86 assertNull("Not null Collection", col); in testCertificateFactorySpi01()
151 Collection<? extends Certificate> col = certFactorySpi in testCertificateFactorySpi02() local
153 assertNull("Result must be null", col); in testCertificateFactorySpi02()
221 Collection<? extends Certificate> col = certFactorySpi in testCertificateFactorySpi03() local
223 assertNull("Result must be null", col); in testCertificateFactorySpi03()
DCertificateFactory3Test.java109 Collection<? extends Certificate> col = null; in testGenerateCertificates() local
110 col = certFs[i].generateCertificates(new ByteArrayInputStream( in testGenerateCertificates()
112 Iterator<? extends Certificate> it = col.iterator(); in testGenerateCertificates()
113 assertEquals("Incorrect Collection size", col.size(), 1); in testGenerateCertificates()
DCertificateFactory2Test.java134 Collection<? extends Certificate> col = certFactory.generateCertificates(dis); in checkResult() local
135 assertNull("Result must be null", col); in checkResult()
/libcore/luni/src/test/java/libcore/java/sql/
DOldResultSetGetterTests.java1060 String col = it.next(); in testGetTimeString() local
1062 Time timeRes = res.getTime(col); in testGetTimeString()
1080 col = it.next(); in testGetTimeString()
1082 timeRes = res.getTime(col); in testGetTimeString()
1089 assertNull(res.getTime(col)); in testGetTimeString()
1133 String col = it.next(); in testGetTimeStringCalendar() local
1135 Time timeRes = res.getTime(col, new GregorianCalendar()); in testGetTimeStringCalendar()
1139 assertEquals(t1, res.getTime(col)); in testGetTimeStringCalendar()
1141 col = it.next(); in testGetTimeStringCalendar()
1143 timeRes = res.getTime(col, new GregorianCalendar()); in testGetTimeStringCalendar()
[all …]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DTestCertUtils.java726 private static String getData(int col, int startRow) { in getData() argument
729 if (datas[i][col] != null) { in getData()
730 return datas[i][col]; in getData()
735 if (datas[i][col] != null) { in getData()
736 return datas[i][col]; in getData()