/libcore/ojluni/src/test/java/util/Collections/ |
D | Wrappers.java | 57 List<Object[]> cases = new ArrayList<>(); in collectionCases() local 70 cases.add(new Object[] { Collections.unmodifiableCollection(seedList) }); in collectionCases() 71 cases.add(new Object[] { Collections.unmodifiableList(seedList) }); in collectionCases() 72 cases.add(new Object[] { Collections.unmodifiableList(seedRandomAccess) }); in collectionCases() 73 cases.add(new Object[] { Collections.unmodifiableSet(seedSet) }); in collectionCases() 74 cases.add(new Object[] { Collections.unmodifiableSortedSet(seedSet) }); in collectionCases() 75 cases.add(new Object[] { Collections.unmodifiableNavigableSet(seedSet) }); in collectionCases() 79 cases.add(new Object[] { Collections.unmodifiableMap(seedMap).entrySet() }); in collectionCases() 80 cases.add(new Object[] { Collections.unmodifiableMap(seedMap).keySet() }); in collectionCases() 81 cases.add(new Object[] { Collections.unmodifiableMap(seedMap).values() }); in collectionCases() [all …]
|
D | UnmodifiableMapEntrySet.java | 65 List<Object[]> cases = new ArrayList<>(); in mapCases() local 67 cases.add(new Object[] { in mapCases() 71 cases.add(new Object[] { in mapCases() 77 return cases.toArray(new Object[0][]); in mapCases()
|
/libcore/ojluni/src/test/java/util/Collection/ |
D | CollectionDefaults.java | 102 final List<Object[]> cases = new LinkedList<>(); in setCases() local 103 cases.add(new Object[]{new HashSet<>()}); in setCases() 104 cases.add(new Object[]{new LinkedHashSet<>()}); in setCases() 105 cases.add(new Object[]{new TreeSet<>()}); in setCases() 106 cases.add(new Object[]{new java.util.concurrent.ConcurrentSkipListSet<>()}); in setCases() 107 cases.add(new Object[]{new java.util.concurrent.CopyOnWriteArraySet<>()}); in setCases() 109 cases.add(new Object[]{new ExtendsAbstractSet<>()}); in setCases() 111 cases.add(new Object[]{Collections.newSetFromMap(new HashMap<>())}); in setCases() 112 cases.add(new Object[]{Collections.newSetFromMap(new LinkedHashMap<>())}); in setCases() 113 cases.add(new Object[]{Collections.newSetFromMap(new TreeMap<>())}); in setCases() [all …]
|
/libcore/ojluni/src/test/java/util/Map/ |
D | MapWithCollisionsProviders.java | 191 Collection<Object[]> cases = new ArrayList<>(); in makeMapsMoreTypes() local 192 cases.add(createCase("Hashtable with " + desc, in makeMapsMoreTypes() 194 cases.add(createCase("IdentityHashMap with " + desc, in makeMapsMoreTypes() 196 cases.add(createCase("TreeMap with " + desc, in makeMapsMoreTypes() 198 cases.add(createCase("WeakHashMap with " + desc, in makeMapsMoreTypes() 200 cases.add(createCase("ConcurrentHashMap with " + desc, in makeMapsMoreTypes() 202 cases.add(createCase("ConcurrentSkipListMap with " + desc, in makeMapsMoreTypes() 204 return cases; in makeMapsMoreTypes() 210 Collection<Object[]> cases = new ArrayList<>(); in makeMapsHashMap() local 211 cases.add(createCase("HashMap with " + desc, in makeMapsHashMap() [all …]
|
/libcore/ojluni/src/test/java/util/Collection/testlibrary/ |
D | CollectionSupplier.java | 131 final Collection<TestCase<C>> cases = new LinkedList<>(); in get() local 134 … cases.add(new TestCase<>("empty", supplier, supplier.apply(Collections.emptyList()))); in get() 136 cases.add(new TestCase<>("single", supplier, supplier.apply(Arrays.asList(42)))); in get() 142 cases.add(new TestCase<>("regular", supplier, supplier.apply(regular))); in get() 148 cases.add(new TestCase<>("reverse", supplier, supplier.apply(reverse))); in get() 154 cases.add(new TestCase<>("odds", supplier, supplier.apply(odds))); in get() 160 cases.add(new TestCase<>("evens", supplier, supplier.apply(evens))); in get() 174 cases.add(new TestCase<>("fibonacci", supplier, supplier.apply(fibonacci))); in get() 193 cases.add(new TestCase<>("emptyWithSlack", supplier, emptyWithSlack)); in get() 199 cases.add(new TestCase<>("singleWithSlack", supplier, singleWithSlack)); in get() [all …]
|
/libcore/ojluni/src/test/java/lang/invoke/MethodHandles/ |
D | TestTableSwitch.java | 145 MethodHandle[] cases = new MethodHandle[numCases]; in testNonVoidHandles() local 146 for (int i = 0; i < cases.length; i++) { in testNonVoidHandles() 151 cases[i] = theCase; in testNonVoidHandles() 156 cases in testNonVoidHandles() 199 MethodHandle[] cases = null; in testNullCases() local 200 MethodHandles.tableSwitch(simpleTestCase("default"), cases); in testNullCases()
|
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/ |
D | VarHandleTestByteArrayAsShort.java | 133 List<AccessTestCase<?>> cases = new ArrayList<>(); in accessTestCaseProvider() local 141 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 144 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 147 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 150 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 153 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 161 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 166 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 171 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 174 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() [all …]
|
D | VarHandleTestByteArrayAsChar.java | 133 List<AccessTestCase<?>> cases = new ArrayList<>(); in accessTestCaseProvider() local 141 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 144 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 147 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 150 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 153 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 161 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 166 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 171 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 174 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() [all …]
|
D | VarHandleTestAccessString.java | 185 List<AccessTestCase<?>> cases = new ArrayList<>(); in accessTestCaseProvider() local 187 cases.add(new VarHandleAccessTestCase("Instance final field", in accessTestCaseProvider() 189 cases.add(new VarHandleAccessTestCase("Instance final field unsupported", in accessTestCaseProvider() 193 cases.add(new VarHandleAccessTestCase("Static final field", in accessTestCaseProvider() 195 cases.add(new VarHandleAccessTestCase("Static final field unsupported", in accessTestCaseProvider() 199 cases.add(new VarHandleAccessTestCase("Instance field", in accessTestCaseProvider() 201 cases.add(new VarHandleAccessTestCase("Instance field unsupported", in accessTestCaseProvider() 205 cases.add(new VarHandleAccessTestCase("Static field", in accessTestCaseProvider() 207 cases.add(new VarHandleAccessTestCase("Static field unsupported", in accessTestCaseProvider() 211 cases.add(new VarHandleAccessTestCase("Array", in accessTestCaseProvider() [all …]
|
D | VarHandleTestAccessDouble.java | 183 List<AccessTestCase<?>> cases = new ArrayList<>(); in accessTestCaseProvider() local 185 cases.add(new VarHandleAccessTestCase("Instance final field", in accessTestCaseProvider() 187 cases.add(new VarHandleAccessTestCase("Instance final field unsupported", in accessTestCaseProvider() 191 cases.add(new VarHandleAccessTestCase("Static final field", in accessTestCaseProvider() 193 cases.add(new VarHandleAccessTestCase("Static final field unsupported", in accessTestCaseProvider() 197 cases.add(new VarHandleAccessTestCase("Instance field", in accessTestCaseProvider() 199 cases.add(new VarHandleAccessTestCase("Instance field unsupported", in accessTestCaseProvider() 203 cases.add(new VarHandleAccessTestCase("Static field", in accessTestCaseProvider() 205 cases.add(new VarHandleAccessTestCase("Static field unsupported", in accessTestCaseProvider() 209 cases.add(new VarHandleAccessTestCase("Array", in accessTestCaseProvider() [all …]
|
D | VarHandleTestAccessFloat.java | 183 List<AccessTestCase<?>> cases = new ArrayList<>(); in accessTestCaseProvider() local 185 cases.add(new VarHandleAccessTestCase("Instance final field", in accessTestCaseProvider() 187 cases.add(new VarHandleAccessTestCase("Instance final field unsupported", in accessTestCaseProvider() 191 cases.add(new VarHandleAccessTestCase("Static final field", in accessTestCaseProvider() 193 cases.add(new VarHandleAccessTestCase("Static final field unsupported", in accessTestCaseProvider() 197 cases.add(new VarHandleAccessTestCase("Instance field", in accessTestCaseProvider() 199 cases.add(new VarHandleAccessTestCase("Instance field unsupported", in accessTestCaseProvider() 203 cases.add(new VarHandleAccessTestCase("Static field", in accessTestCaseProvider() 205 cases.add(new VarHandleAccessTestCase("Static field unsupported", in accessTestCaseProvider() 209 cases.add(new VarHandleAccessTestCase("Array", in accessTestCaseProvider() [all …]
|
D | VarHandleTestAccessBoolean.java | 183 List<AccessTestCase<?>> cases = new ArrayList<>(); in accessTestCaseProvider() local 185 cases.add(new VarHandleAccessTestCase("Instance final field", in accessTestCaseProvider() 187 cases.add(new VarHandleAccessTestCase("Instance final field unsupported", in accessTestCaseProvider() 191 cases.add(new VarHandleAccessTestCase("Static final field", in accessTestCaseProvider() 193 cases.add(new VarHandleAccessTestCase("Static final field unsupported", in accessTestCaseProvider() 197 cases.add(new VarHandleAccessTestCase("Instance field", in accessTestCaseProvider() 199 cases.add(new VarHandleAccessTestCase("Instance field unsupported", in accessTestCaseProvider() 203 cases.add(new VarHandleAccessTestCase("Static field", in accessTestCaseProvider() 205 cases.add(new VarHandleAccessTestCase("Static field unsupported", in accessTestCaseProvider() 209 cases.add(new VarHandleAccessTestCase("Array", in accessTestCaseProvider() [all …]
|
D | VarHandleTestAccessByte.java | 183 List<AccessTestCase<?>> cases = new ArrayList<>(); in accessTestCaseProvider() local 185 cases.add(new VarHandleAccessTestCase("Instance final field", in accessTestCaseProvider() 187 cases.add(new VarHandleAccessTestCase("Instance final field unsupported", in accessTestCaseProvider() 191 cases.add(new VarHandleAccessTestCase("Static final field", in accessTestCaseProvider() 193 cases.add(new VarHandleAccessTestCase("Static final field unsupported", in accessTestCaseProvider() 197 cases.add(new VarHandleAccessTestCase("Instance field", in accessTestCaseProvider() 199 cases.add(new VarHandleAccessTestCase("Instance field unsupported", in accessTestCaseProvider() 203 cases.add(new VarHandleAccessTestCase("Static field", in accessTestCaseProvider() 205 cases.add(new VarHandleAccessTestCase("Static field unsupported", in accessTestCaseProvider() 209 cases.add(new VarHandleAccessTestCase("Array", in accessTestCaseProvider() [all …]
|
D | VarHandleTestAccessInt.java | 183 List<AccessTestCase<?>> cases = new ArrayList<>(); in accessTestCaseProvider() local 185 cases.add(new VarHandleAccessTestCase("Instance final field", in accessTestCaseProvider() 187 cases.add(new VarHandleAccessTestCase("Instance final field unsupported", in accessTestCaseProvider() 191 cases.add(new VarHandleAccessTestCase("Static final field", in accessTestCaseProvider() 193 cases.add(new VarHandleAccessTestCase("Static final field unsupported", in accessTestCaseProvider() 197 cases.add(new VarHandleAccessTestCase("Instance field", in accessTestCaseProvider() 199 cases.add(new VarHandleAccessTestCase("Instance field unsupported", in accessTestCaseProvider() 203 cases.add(new VarHandleAccessTestCase("Static field", in accessTestCaseProvider() 205 cases.add(new VarHandleAccessTestCase("Static field unsupported", in accessTestCaseProvider() 209 cases.add(new VarHandleAccessTestCase("Array", in accessTestCaseProvider() [all …]
|
D | VarHandleTestAccessShort.java | 183 List<AccessTestCase<?>> cases = new ArrayList<>(); in accessTestCaseProvider() local 185 cases.add(new VarHandleAccessTestCase("Instance final field", in accessTestCaseProvider() 187 cases.add(new VarHandleAccessTestCase("Instance final field unsupported", in accessTestCaseProvider() 191 cases.add(new VarHandleAccessTestCase("Static final field", in accessTestCaseProvider() 193 cases.add(new VarHandleAccessTestCase("Static final field unsupported", in accessTestCaseProvider() 197 cases.add(new VarHandleAccessTestCase("Instance field", in accessTestCaseProvider() 199 cases.add(new VarHandleAccessTestCase("Instance field unsupported", in accessTestCaseProvider() 203 cases.add(new VarHandleAccessTestCase("Static field", in accessTestCaseProvider() 205 cases.add(new VarHandleAccessTestCase("Static field unsupported", in accessTestCaseProvider() 209 cases.add(new VarHandleAccessTestCase("Array", in accessTestCaseProvider() [all …]
|
D | VarHandleTestAccessLong.java | 183 List<AccessTestCase<?>> cases = new ArrayList<>(); in accessTestCaseProvider() local 185 cases.add(new VarHandleAccessTestCase("Instance final field", in accessTestCaseProvider() 187 cases.add(new VarHandleAccessTestCase("Instance final field unsupported", in accessTestCaseProvider() 191 cases.add(new VarHandleAccessTestCase("Static final field", in accessTestCaseProvider() 193 cases.add(new VarHandleAccessTestCase("Static final field unsupported", in accessTestCaseProvider() 197 cases.add(new VarHandleAccessTestCase("Instance field", in accessTestCaseProvider() 199 cases.add(new VarHandleAccessTestCase("Instance field unsupported", in accessTestCaseProvider() 203 cases.add(new VarHandleAccessTestCase("Static field", in accessTestCaseProvider() 205 cases.add(new VarHandleAccessTestCase("Static field unsupported", in accessTestCaseProvider() 209 cases.add(new VarHandleAccessTestCase("Array", in accessTestCaseProvider() [all …]
|
D | VarHandleTestAccessChar.java | 183 List<AccessTestCase<?>> cases = new ArrayList<>(); in accessTestCaseProvider() local 185 cases.add(new VarHandleAccessTestCase("Instance final field", in accessTestCaseProvider() 187 cases.add(new VarHandleAccessTestCase("Instance final field unsupported", in accessTestCaseProvider() 191 cases.add(new VarHandleAccessTestCase("Static final field", in accessTestCaseProvider() 193 cases.add(new VarHandleAccessTestCase("Static final field unsupported", in accessTestCaseProvider() 197 cases.add(new VarHandleAccessTestCase("Instance field", in accessTestCaseProvider() 199 cases.add(new VarHandleAccessTestCase("Instance field unsupported", in accessTestCaseProvider() 203 cases.add(new VarHandleAccessTestCase("Static field", in accessTestCaseProvider() 205 cases.add(new VarHandleAccessTestCase("Static field unsupported", in accessTestCaseProvider() 209 cases.add(new VarHandleAccessTestCase("Array", in accessTestCaseProvider() [all …]
|
D | VarHandleTestMethodHandleAccessString.java | 83 List<AccessTestCase<?>> cases = new ArrayList<>(); in accessTestCaseProvider() local 86 cases.add(new MethodHandleAccessTestCase("Instance field", in accessTestCaseProvider() 88 cases.add(new MethodHandleAccessTestCase("Instance field unsupported", in accessTestCaseProvider() 92 cases.add(new MethodHandleAccessTestCase("Static field", in accessTestCaseProvider() 94 cases.add(new MethodHandleAccessTestCase("Static field unsupported", in accessTestCaseProvider() 98 cases.add(new MethodHandleAccessTestCase("Array", in accessTestCaseProvider() 100 cases.add(new MethodHandleAccessTestCase("Array unsupported", in accessTestCaseProvider() 103 cases.add(new MethodHandleAccessTestCase("Array index out of bounds", in accessTestCaseProvider() 111 return cases.stream().map(tc -> new Object[]{tc.toString(), tc}).toArray(Object[][]::new); in accessTestCaseProvider()
|
D | VarHandleTestMethodHandleAccessDouble.java | 83 List<AccessTestCase<?>> cases = new ArrayList<>(); in accessTestCaseProvider() local 86 cases.add(new MethodHandleAccessTestCase("Instance field", in accessTestCaseProvider() 88 cases.add(new MethodHandleAccessTestCase("Instance field unsupported", in accessTestCaseProvider() 92 cases.add(new MethodHandleAccessTestCase("Static field", in accessTestCaseProvider() 94 cases.add(new MethodHandleAccessTestCase("Static field unsupported", in accessTestCaseProvider() 98 cases.add(new MethodHandleAccessTestCase("Array", in accessTestCaseProvider() 100 cases.add(new MethodHandleAccessTestCase("Array unsupported", in accessTestCaseProvider() 103 cases.add(new MethodHandleAccessTestCase("Array index out of bounds", in accessTestCaseProvider() 111 return cases.stream().map(tc -> new Object[]{tc.toString(), tc}).toArray(Object[][]::new); in accessTestCaseProvider()
|
D | VarHandleTestMethodHandleAccessFloat.java | 83 List<AccessTestCase<?>> cases = new ArrayList<>(); in accessTestCaseProvider() local 86 cases.add(new MethodHandleAccessTestCase("Instance field", in accessTestCaseProvider() 88 cases.add(new MethodHandleAccessTestCase("Instance field unsupported", in accessTestCaseProvider() 92 cases.add(new MethodHandleAccessTestCase("Static field", in accessTestCaseProvider() 94 cases.add(new MethodHandleAccessTestCase("Static field unsupported", in accessTestCaseProvider() 98 cases.add(new MethodHandleAccessTestCase("Array", in accessTestCaseProvider() 100 cases.add(new MethodHandleAccessTestCase("Array unsupported", in accessTestCaseProvider() 103 cases.add(new MethodHandleAccessTestCase("Array index out of bounds", in accessTestCaseProvider() 111 return cases.stream().map(tc -> new Object[]{tc.toString(), tc}).toArray(Object[][]::new); in accessTestCaseProvider()
|
D | VarHandleTestByteArrayAsFloat.java | 133 List<AccessTestCase<?>> cases = new ArrayList<>(); in accessTestCaseProvider() local 141 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 144 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 147 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 150 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 153 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 161 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 166 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 171 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 174 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() [all …]
|
D | VarHandleTestByteArrayAsDouble.java | 133 List<AccessTestCase<?>> cases = new ArrayList<>(); in accessTestCaseProvider() local 141 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 144 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 147 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 150 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 153 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 161 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 166 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 171 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() 174 cases.add(new VarHandleSourceAccessTestCase( in accessTestCaseProvider() [all …]
|
D | VarHandleTestMethodHandleAccessChar.java | 83 List<AccessTestCase<?>> cases = new ArrayList<>(); in accessTestCaseProvider() local 86 cases.add(new MethodHandleAccessTestCase("Instance field", in accessTestCaseProvider() 88 cases.add(new MethodHandleAccessTestCase("Instance field unsupported", in accessTestCaseProvider() 92 cases.add(new MethodHandleAccessTestCase("Static field", in accessTestCaseProvider() 94 cases.add(new MethodHandleAccessTestCase("Static field unsupported", in accessTestCaseProvider() 98 cases.add(new MethodHandleAccessTestCase("Array", in accessTestCaseProvider() 100 cases.add(new MethodHandleAccessTestCase("Array unsupported", in accessTestCaseProvider() 103 cases.add(new MethodHandleAccessTestCase("Array index out of bounds", in accessTestCaseProvider() 111 return cases.stream().map(tc -> new Object[]{tc.toString(), tc}).toArray(Object[][]::new); in accessTestCaseProvider()
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | MethodHandlesTest.java | 493 Object[][] cases; in accessCases() local 495 cases = ACCESS_CASES[1]; // PRIVATE only in accessCases() 497 cases = ACCESS_CASES[2]; // not PUBLIC in accessCases() 499 cases = ACCESS_CASES[3]; // PUBLIC class, protected member in accessCases() 504 cases = ACCESS_CASES[4]; // all access levels in accessCases() 506 cases = ACCESS_CASES[2]; // PACKAGE but not PUBLIC in accessCases() 508 if (defc != Example.class && cases[cases.length-1][1] == EXAMPLE) in accessCases() 509 cases = Arrays.copyOfRange(cases, 0, cases.length-1); in accessCases() 510 return cases; in accessCases() 572 ArrayList<Object[]> cases = new ArrayList<>(); [all …]
|
/libcore/ojluni/src/test/java/util/Properties/invalidxml/ |
D | README.txt | 2 This directory contains test cases for the LoadAndStoreXML test case. Each file
|