Home
last modified time | relevance | path

Searched refs:Factory (Results 1 – 25 of 34) sorted by relevance

12

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DIterateTest.java33 import org.openjdk.testlib.java.util.stream.TestData.Factory;
54 Factory.ofSupplier("ref.empty", () -> Stream.iterate(1, x -> x < 0, x -> x * 2))}, in makeIterateStreamsTestData()
56 Factory.ofSupplier("ref.one", () -> Stream.iterate(1, x -> x < 2, x -> x * 2))}, in makeIterateStreamsTestData()
58 Factory.ofSupplier("ref.ten", () -> Stream.iterate(1, x -> x < 1000, x -> x * 2))}, in makeIterateStreamsTestData()
60Factory.ofSupplier("ref.nullCheck", () -> Stream.iterate(10, Objects::nonNull, x -> x > 0 ? x - 1 … in makeIterateStreamsTestData()
62Factory.ofIntSupplier("int.empty", () -> IntStream.iterate(1, x -> x < 0, x -> x + 1))}, in makeIterateStreamsTestData()
64Factory.ofIntSupplier("int.one", () -> IntStream.iterate(1, x -> x < 2, x -> x + 1))}, in makeIterateStreamsTestData()
66Factory.ofIntSupplier("int.ten", () -> IntStream.iterate(1, x -> x <= 10, x -> x + 1))}, in makeIterateStreamsTestData()
68Factory.ofIntSupplier("int.divZero", () -> IntStream.iterate(5, x -> x != 0, x -> x - 1/x/2 - 1))}, in makeIterateStreamsTestData()
70Factory.ofLongSupplier("long.empty", () -> LongStream.iterate(1L, x -> x < 0, x -> x + 1))}, in makeIterateStreamsTestData()
[all …]
DInfiniteStreamWithLimitOpTest.java144 return TestData.Factory.ofSupplier(
154 return TestData.Factory.ofIntSupplier(
164 return TestData.Factory.ofLongSupplier(
174 return TestData.Factory.ofDoubleSupplier(
304 return TestData.Factory.ofLongSupplier(
363 TestData.OfRef<Long> generator = TestData.Factory.ofSupplier(
374 TestData.OfInt generator = TestData.Factory.ofIntSupplier(
385 TestData.OfLong generator = TestData.Factory.ofLongSupplier(
396 TestData.OfDouble generator = TestData.Factory.ofDoubleSupplier(
410 TestData.OfRef<Long> iterator = TestData.Factory.ofSupplier(
[all …]
DStreamBuilderTest.java62 TestData.OfRef<Integer> data = TestData.Factory.ofSupplier("{1}", in testOfNullableWithNonNull()
73 TestData.OfRef<Integer> data = TestData.Factory.ofSupplier("{null})", in testOfNullableWithNull()
84 TestData.OfRef<Integer> data = TestData.Factory.ofSupplier("{1}", in testSingleton()
129 TestData.OfRef<Integer> data = TestData.Factory.ofSupplier(String.format("[0, %d)", size), in testStreamBuilder()
147 TestData.OfInt data = TestData.Factory.ofIntSupplier("{1}", in testIntSingleton()
192 TestData.OfInt data = TestData.Factory.ofIntSupplier(String.format("[0, %d)", size), in testIntStreamBuilder()
210 TestData.OfLong data = TestData.Factory.ofLongSupplier("{1}", in testLongSingleton()
255 TestData.OfLong data = TestData.Factory.ofLongSupplier(String.format("[0, %d)", size), in testLongStreamBuilder()
273 TestData.OfDouble data = TestData.Factory.ofDoubleSupplier("{1}", () -> DoubleStream.of(1)); in testDoubleSingleton()
317 TestData.OfDouble data = TestData.Factory.ofDoubleSupplier(String.format("[0, %d)", size), in testDoubleStreamBuilder()
DRangeTest.java52 withData(TestData.Factory.ofSupplier( in testInfiniteRangeFindFirst()
124 return TestData.Factory.ofIntSupplier("int range", () -> IntStream.range(start, end)); in intRangeData()
128 … return TestData.Factory.ofIntSupplier("int rangeClosed", () -> IntStream.rangeClosed(start, end)); in intRangeClosedData()
137 withData(TestData.Factory.ofIntSupplier( in testIntInfiniteRangeLimit()
207 return TestData.Factory.ofLongSupplier("long range", () -> LongStream.range(start, end));
211 …return TestData.Factory.ofLongSupplier("long rangeClosed", () -> LongStream.rangeClosed(start, end… in longRangeClosedData()
220 withData(TestData.Factory.ofLongSupplier( in testLongInfiniteRangeLimit()
DForEachOpTest.java89 TestData.OfRef<Integer> data = TestData.Factory.ofCollection("[1, 10000]", input);
136 TestData.OfInt data = TestData.Factory.ofIntSupplier("[1, 10000]",
184 TestData.OfLong data = TestData.Factory.ofLongSupplier("[1, 10000]",
232 TestData.OfDouble data = TestData.Factory.ofDoubleSupplier("[1, 10000]",
DExplodeOpTest.java70 … exerciseOps(TestData.Factory.ofArray("stringsArray", stringsArray), s -> s.flatMap(flattenChars)); in testFlatMap()
71 …exerciseOps(TestData.Factory.ofArray("LONG_STRING", new String[] {LONG_STRING}), s -> s.flatMap(fl… in testFlatMap()
DMapMultiOpTest.java112 exerciseOps(TestData.Factory.ofArray("stringsArray", in testMapMulti()
114 exerciseOps(TestData.Factory.ofArray("LONG_STRING", in testMapMulti()
132 exerciseOps(TestData.Factory.ofArray("stringsArray", in testDefaultMapMulti()
134 exerciseOps(TestData.Factory.ofArray("LONG_STRING", in testDefaultMapMulti()
DConcatTest.java27 import org.testng.annotations.Factory;
84 @Factory(dataProvider = "cases")
DFlatMapOpTest.java78 … exerciseOps(TestData.Factory.ofArray("stringsArray", stringsArray), s -> s.flatMap(flattenChars)); in testFlatMap()
79 …exerciseOps(TestData.Factory.ofArray("LONG_STRING", new String[] {LONG_STRING}), s -> s.flatMap(fl… in testFlatMap()
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DStreamTestDataProvider.java170 return new Object[] { description, TestData.Factory.ofArray(description, data)}; in arrayDataDescr()
174 return new Object[] { description, TestData.Factory.ofSupplier(description, supplier)}; in streamDataDescr()
178 return new Object[] { description, TestData.Factory.ofCollection(description, data)}; in collectionDataDescr()
182 return new Object[] { description, TestData.Factory.ofSpinedBuffer(description, data)}; in sbDataDescr()
DLongStreamTestDataProvider.java87 TestData.Factory.ofArray("array:" + name, longs)}); in list.add()
94 TestData.Factory.ofSpinedBuffer("SpinedList:" + name, isl)}); in list.add()
140 return new Object[] { description, TestData.Factory.ofLongSupplier(description, s) }; in streamDataDescr()
DIntStreamTestDataProvider.java87 name, TestData.Factory.ofArray("array:" + name, ints)}); in list.add()
94 TestData.Factory.ofSpinedBuffer("SpinedList:" + name, isl)}); in list.add()
140 return new Object[] { description, TestData.Factory.ofIntSupplier(description, s) }; in streamDataDescr()
DDoubleStreamTestDataProvider.java87 TestData.Factory.ofArray("array:" + name, doubles)}); in list.add()
94 TestData.Factory.ofSpinedBuffer("SpinedList:" + name, isl)}); in list.add()
DOpTestCase.java187 …TestData.OfRef<T> data1 = TestData.Factory.ofCollection("Collection of type " + data.getClass().ge… in exerciseOps()
193 …TestData.OfRef<T> data1 = TestData.Factory.ofCollection("Collection of type " + data.getClass().ge… in exerciseOps()
200 return withData(TestData.Factory.ofArray("int array", data)).stream(m).exercise(); in exerciseOps()
204 TestData.OfInt data1 = TestData.Factory.ofArray("int array", data); in exerciseOps()
597 … = TestData.Factory.ofCollection("Collection of type " + data.getClass().getName(), data); in exerciseTerminalOps()
/libcore/ojluni/src/main/java/java/lang/reflect/
DWeakCache.java122 Factory factory = null; in get()
138 factory = new Factory(key, parameter, subKey, valuesMap); in get()
198 private final class Factory implements Supplier<V> { class in WeakCache
205 Factory(K key, P parameter, Object subKey, in Factory() method in WeakCache.Factory
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DStreamTestDataProvider.java176 return new Object[] { description, TestData.Factory.ofArray(description, data)}; in arrayDataDescr()
180 return new Object[] { description, TestData.Factory.ofSupplier(description, supplier)}; in streamDataDescr()
184 return new Object[] { description, TestData.Factory.ofCollection(description, data)}; in collectionDataDescr()
188 return new Object[] { description, TestData.Factory.ofSpinedBuffer(description, data)}; in sbDataDescr()
DIntStreamTestDataProvider.java91 name, TestData.Factory.ofArray("array:" + name, ints)}); in list.add()
98 TestData.Factory.ofSpinedBuffer("SpinedList:" + name, isl)}); in list.add()
144 return new Object[] { description, TestData.Factory.ofIntSupplier(description, s) }; in streamDataDescr()
DLongStreamTestDataProvider.java91 TestData.Factory.ofArray("array:" + name, longs)}); in list.add()
98 TestData.Factory.ofSpinedBuffer("SpinedList:" + name, isl)}); in list.add()
144 return new Object[] { description, TestData.Factory.ofLongSupplier(description, s) }; in streamDataDescr()
DDoubleStreamTestDataProvider.java92 TestData.Factory.ofArray("array:" + name, doubles)}); in list.add()
99 TestData.Factory.ofSpinedBuffer("SpinedList:" + name, isl)}); in list.add()
DOpTestCase.java188 …TestData.OfRef<T> data1 = TestData.Factory.ofCollection("Collection of type " + data.getClass().ge… in exerciseOps()
194 …TestData.OfRef<T> data1 = TestData.Factory.ofCollection("Collection of type " + data.getClass().ge… in exerciseOps()
201 return withData(TestData.Factory.ofArray("int array", data)).stream(m).exercise(); in exerciseOps()
205 TestData.OfInt data1 = TestData.Factory.ofArray("int array", data); in exerciseOps()
598 … = TestData.Factory.ofCollection("Collection of type " + data.getClass().getName(), data); in exerciseTerminalOps()
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DFlagOpTest.java110 …TestData<Integer, Stream<Integer>> data = TestData.Factory.ofArray("Array", countTo(10).toArray(ne… in testFlagsClearAllSet()
149 …TestData<Integer, Stream<Integer>> data = TestData.Factory.ofArray("Array", countTo(10).toArray(ne… in testFlagsSetAllClear()
183 …TestData<Integer, Stream<Integer>> data = TestData.Factory.ofArray("Array", countTo(10).toArray(ne… in testFlagsSetSequence()
219 …TestData<Integer, Stream<Integer>> data = TestData.Factory.ofArray("Array", countTo(10).toArray(ne… in testFlagsClearSequence()
245 …TestData<Integer, Stream<Integer>> data = TestData.Factory.ofArray("Array", countTo(10).toArray(ne… in testFlagsSizedOrderedParallelCollect()
DIntNodeTest.java153 TestData.OfInt data = TestData.Factory.ofNode("Node", n); in testStreams()
/libcore/ojluni/src/test/java/util/Scanner/
DScannerStreamTest.java101 withData(TestData.Factory.ofSupplier(description, ss)) in tokensTest()
144 withData(TestData.Factory.ofSupplier("findAllFileTest", ss)) in findAllFileTest()
201 withData(TestData.Factory.ofSupplier("findAllZeroTest", ss)) in findAllZeroTest()
/libcore/ojluni/src/test/java/lang/Boolean/
DFactory.java34 public class Factory { class
/libcore/ojluni/src/test/java/util/regex/
DPatternStreamTest.java154 withData(TestData.Factory.ofSupplier(description, ss)) in testPatternSplitAsStream()
196 withData(TestData.Factory.ofSupplier(description, ss)) in testMatchResults()

12