类java.util.stream.StreamTestScenario源码实例Demo

下面列出了怎么用java.util.stream.StreamTestScenario的API类实例代码及写法,或者点击链接到github查看源代码。

@Test(dataProvider = "Stream.limit")
public void testSubsizedWithRange(String description, UnaryOperator<Stream<Long>> fs) {
    // Range is [0, Long.MAX_VALUE), splits are SUBSIZED
    // Such a size will induce out of memory errors for incorrect
    // slice implementations
    withData(refLongs()).
            stream(s -> fs.apply(s)).
            without(StreamTestScenario.CLEAR_SIZED_SCENARIOS).
            exercise();
}
 
@Test(dataProvider = "Stream.limit")
public void testSubsizedWithRange(String description, UnaryOperator<Stream<Long>> fs) {
    // Range is [0, Long.MAX_VALUE), splits are SUBSIZED
    // Such a size will induce out of memory errors for incorrect
    // slice implementations
    withData(refLongs()).
            stream(s -> fs.apply(s)).
            without(StreamTestScenario.CLEAR_SIZED_SCENARIOS).
            exercise();
}
 
源代码3 项目: jdk8u60   文件: InfiniteStreamWithLimitOpTest.java
@Test(dataProvider = "Stream.limit")
public void testSubsizedWithRange(String description, UnaryOperator<Stream<Long>> fs) {
    // Range is [0, Long.MAX_VALUE), splits are SUBSIZED
    // Such a size will induce out of memory errors for incorrect
    // slice implementations
    withData(refLongs()).
            stream(s -> fs.apply(s)).
            without(StreamTestScenario.CLEAR_SIZED_SCENARIOS).
            exercise();
}
 
@Test(dataProvider = "Stream.limit")
public void testSubsizedWithRange(String description, UnaryOperator<Stream<Long>> fs) {
    // Range is [0, Long.MAX_VALUE), splits are SUBSIZED
    // Such a size will induce out of memory errors for incorrect
    // slice implementations
    withData(refLongs()).
            stream(s -> fs.apply(s)).
            without(StreamTestScenario.CLEAR_SIZED_SCENARIOS).
            exercise();
}
 
@Test(dataProvider = "Stream.limit")
public void testSubsizedWithRange(String description, UnaryOperator<Stream<Long>> fs) {
    // Range is [0, Long.MAX_VALUE), splits are SUBSIZED
    // Such a size will induce out of memory errors for incorrect
    // slice implementations
    withData(refLongs()).
            stream(s -> fs.apply(s)).
            without(StreamTestScenario.CLEAR_SIZED_SCENARIOS).
            exercise();
}
 
@Test(dataProvider = "Stream.limit")
public void testSubsizedWithRange(String description, UnaryOperator<Stream<Long>> fs) {
    // Range is [0, Long.MAX_VALUE), splits are SUBSIZED
    // Such a size will induce out of memory errors for incorrect
    // slice implementations
    withData(refLongs()).
            stream(s -> fs.apply(s)).
            without(StreamTestScenario.CLEAR_SIZED_SCENARIOS).
            exercise();
}
 
源代码7 项目: jdk8u-jdk   文件: InfiniteStreamWithLimitOpTest.java
@Test(dataProvider = "Stream.limit")
public void testSubsizedWithRange(String description, UnaryOperator<Stream<Long>> fs) {
    // Range is [0, Long.MAX_VALUE), splits are SUBSIZED
    // Such a size will induce out of memory errors for incorrect
    // slice implementations
    withData(refLongs()).
            stream(s -> fs.apply(s)).
            without(StreamTestScenario.CLEAR_SIZED_SCENARIOS).
            exercise();
}
 
源代码8 项目: hottub   文件: InfiniteStreamWithLimitOpTest.java
@Test(dataProvider = "Stream.limit")
public void testSubsizedWithRange(String description, UnaryOperator<Stream<Long>> fs) {
    // Range is [0, Long.MAX_VALUE), splits are SUBSIZED
    // Such a size will induce out of memory errors for incorrect
    // slice implementations
    withData(refLongs()).
            stream(s -> fs.apply(s)).
            without(StreamTestScenario.CLEAR_SIZED_SCENARIOS).
            exercise();
}
 
@Test(dataProvider = "Stream.limit")
public void testSubsizedWithRange(String description, UnaryOperator<Stream<Long>> fs) {
    // Range is [0, Long.MAX_VALUE), splits are SUBSIZED
    // Such a size will induce out of memory errors for incorrect
    // slice implementations
    withData(refLongs()).
            stream(s -> fs.apply(s)).
            without(StreamTestScenario.PAR_STREAM_TO_ARRAY_CLEAR_SIZED).
            exercise();
}
 
源代码10 项目: openjdk-8   文件: InfiniteStreamWithLimitOpTest.java
@Test(dataProvider = "Stream.limit")
public void testSubsizedWithRange(String description, UnaryOperator<Stream<Long>> fs) {
    // Range is [0, Long.MAX_VALUE), splits are SUBSIZED
    // Such a size will induce out of memory errors for incorrect
    // slice implementations
    withData(refLongs()).
            stream(s -> fs.apply(s)).
            without(StreamTestScenario.PAR_STREAM_TO_ARRAY_CLEAR_SIZED).
            exercise();
}
 
源代码11 项目: jdk8u_jdk   文件: InfiniteStreamWithLimitOpTest.java
@Test(dataProvider = "Stream.limit")
public void testSubsizedWithRange(String description, UnaryOperator<Stream<Long>> fs) {
    // Range is [0, Long.MAX_VALUE), splits are SUBSIZED
    // Such a size will induce out of memory errors for incorrect
    // slice implementations
    withData(refLongs()).
            stream(s -> fs.apply(s)).
            without(StreamTestScenario.CLEAR_SIZED_SCENARIOS).
            exercise();
}
 
源代码12 项目: jdk8u-jdk   文件: InfiniteStreamWithLimitOpTest.java
@Test(dataProvider = "Stream.limit")
public void testSubsizedWithRange(String description, UnaryOperator<Stream<Long>> fs) {
    // Range is [0, Long.MAX_VALUE), splits are SUBSIZED
    // Such a size will induce out of memory errors for incorrect
    // slice implementations
    withData(refLongs()).
            stream(s -> fs.apply(s)).
            without(StreamTestScenario.PAR_STREAM_TO_ARRAY_CLEAR_SIZED).
            exercise();
}
 
@Test(dataProvider = "Stream.limit")
public void testSubsizedWithRange(String description, UnaryOperator<Stream<Long>> fs) {
    // Range is [0, Long.MAX_VALUE), splits are SUBSIZED
    // Such a size will induce out of memory errors for incorrect
    // slice implementations
    withData(refLongs()).
            stream(s -> fs.apply(s)).
            without(StreamTestScenario.PAR_STREAM_TO_ARRAY_CLEAR_SIZED).
            exercise();
}
 
 类所在包
 类方法
 同包方法