当前位置: 首页>>代码示例>>Java>>正文


Java TestEnvironment类代码示例

本文整理汇总了Java中org.reactivestreams.tck.TestEnvironment的典型用法代码示例。如果您正苦于以下问题:Java TestEnvironment类的具体用法?Java TestEnvironment怎么用?Java TestEnvironment使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


TestEnvironment类属于org.reactivestreams.tck包,在下文中一共展示了TestEnvironment类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: required_spec317_mustSupportACumulativePendingElementCountGreaterThenLongMaxValue

import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
@Test
public void required_spec317_mustSupportACumulativePendingElementCountGreaterThenLongMaxValue() throws Throwable {
    final int totalElements = 50;

    activePublisherTest(totalElements, true, pub -> {
        final TestEnvironment.ManualSubscriber<Integer> sub = env.newManualSubscriber(pub);
        new Thread(() -> sub.request(Long.MAX_VALUE)).start();
        new Thread(() -> sub.request(Long.MAX_VALUE)).start();

        sub.nextElements(totalElements);
        sub.expectCompletion();

        try {
            env.verifyNoAsyncErrorsNoDelay();
        } finally {
            sub.cancel();
        }

    });
}
 
开发者ID:OlegDokuka,项目名称:reactive-streams-tck_playground,代码行数:21,代码来源:StreamPublisherTest.java

示例2: StreamPublisherTest

import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public StreamPublisherTest() throws NoSuchFieldException, IllegalAccessException {
    super(new TestEnvironment(400));

    Field env = PublisherVerification.class.getDeclaredField("env");
    env.setAccessible(true);
    this.env = (TestEnvironment) env.get(this);
}
 
开发者ID:OlegDokuka,项目名称:reactive-streams-tck_playground,代码行数:8,代码来源:StreamPublisherTest.java

示例3: HandlerPublisherVerificationTest

import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
@Factory(dataProvider = "noScheduled")
public HandlerPublisherVerificationTest(int batchSize, int publishInitial, boolean scheduled) {
    super(new TestEnvironment(200));
    this.batchSize = batchSize;
    this.publishInitial = publishInitial;
    this.scheduled = scheduled;
}
 
开发者ID:playframework,项目名称:netty-reactive-streams,代码行数:8,代码来源:HandlerPublisherVerificationTest.java

示例4: RxGrpcPublisherOneToManyVerificationTest

import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public RxGrpcPublisherOneToManyVerificationTest() {
    super(new TestEnvironment(DEFAULT_TIMEOUT_MILLIS, DEFAULT_TIMEOUT_MILLIS), PUBLISHER_REFERENCE_CLEANUP_TIMEOUT_MILLIS);
}
 
开发者ID:salesforce,项目名称:reactive-grpc,代码行数:4,代码来源:RxGrpcPublisherOneToManyVerificationTest.java

示例5: RxGrpcPublisherManyToOneVerificationTest

import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public RxGrpcPublisherManyToOneVerificationTest() {
    super(new TestEnvironment(DEFAULT_TIMEOUT_MILLIS, DEFAULT_TIMEOUT_MILLIS), PUBLISHER_REFERENCE_CLEANUP_TIMEOUT_MILLIS);
}
 
开发者ID:salesforce,项目名称:reactive-grpc,代码行数:4,代码来源:RxGrpcPublisherManyToOneVerificationTest.java

示例6: RxGrpcPublisherOneToOneVerificationTest

import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public RxGrpcPublisherOneToOneVerificationTest() {
    super(new TestEnvironment(DEFAULT_TIMEOUT_MILLIS, DEFAULT_TIMEOUT_MILLIS), PUBLISHER_REFERENCE_CLEANUP_TIMEOUT_MILLIS);
}
 
开发者ID:salesforce,项目名称:reactive-grpc,代码行数:4,代码来源:RxGrpcPublisherOneToOneVerificationTest.java

示例7: RxGrpcSubscriberWhiteboxVerificationTest

import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public RxGrpcSubscriberWhiteboxVerificationTest() {
    super(new TestEnvironment());
}
 
开发者ID:salesforce,项目名称:reactive-grpc,代码行数:4,代码来源:RxGrpcSubscriberWhiteboxVerificationTest.java

示例8: RxGrpcPublisherManyToManyVerificationTest

import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public RxGrpcPublisherManyToManyVerificationTest() {
    super(new TestEnvironment(DEFAULT_TIMEOUT_MILLIS, DEFAULT_TIMEOUT_MILLIS), PUBLISHER_REFERENCE_CLEANUP_TIMEOUT_MILLIS);
}
 
开发者ID:salesforce,项目名称:reactive-grpc,代码行数:4,代码来源:RxGrpcPublisherManyToManyVerificationTest.java

示例9: ReactorGrpcSubscriberWhiteboxVerificationTest

import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public ReactorGrpcSubscriberWhiteboxVerificationTest() {
    super(new TestEnvironment());
}
 
开发者ID:salesforce,项目名称:reactive-grpc,代码行数:4,代码来源:ReactorGrpcSubscriberWhiteboxVerificationTest.java

示例10: ReactorGrpcPublisherManyToOneVerificationTest

import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public ReactorGrpcPublisherManyToOneVerificationTest() {
    super(new TestEnvironment(DEFAULT_TIMEOUT_MILLIS, DEFAULT_TIMEOUT_MILLIS), PUBLISHER_REFERENCE_CLEANUP_TIMEOUT_MILLIS);
}
 
开发者ID:salesforce,项目名称:reactive-grpc,代码行数:4,代码来源:ReactorGrpcPublisherManyToOneVerificationTest.java

示例11: ReactorGrpcPublisherManyToManyVerificationTest

import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public ReactorGrpcPublisherManyToManyVerificationTest() {
    super(new TestEnvironment(DEFAULT_TIMEOUT_MILLIS, DEFAULT_TIMEOUT_MILLIS), PUBLISHER_REFERENCE_CLEANUP_TIMEOUT_MILLIS);
}
 
开发者ID:salesforce,项目名称:reactive-grpc,代码行数:4,代码来源:ReactorGrpcPublisherManyToManyVerificationTest.java

示例12: ReactorGrpcPublisherOneToOneVerificationTest

import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public ReactorGrpcPublisherOneToOneVerificationTest() {
    super(new TestEnvironment(DEFAULT_TIMEOUT_MILLIS, DEFAULT_TIMEOUT_MILLIS), PUBLISHER_REFERENCE_CLEANUP_TIMEOUT_MILLIS);
}
 
开发者ID:salesforce,项目名称:reactive-grpc,代码行数:4,代码来源:ReactorGrpcPublisherOneToOneVerificationTest.java

示例13: ReactorGrpcPublisherOneToManyVerificationTest

import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public ReactorGrpcPublisherOneToManyVerificationTest() {
    super(new TestEnvironment(DEFAULT_TIMEOUT_MILLIS, DEFAULT_TIMEOUT_MILLIS), PUBLISHER_REFERENCE_CLEANUP_TIMEOUT_MILLIS);
}
 
开发者ID:salesforce,项目名称:reactive-grpc,代码行数:4,代码来源:ReactorGrpcPublisherOneToManyVerificationTest.java

示例14: SolocastProcessorTckTest

import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public SolocastProcessorTckTest() {
    super(new TestEnvironment(50));
}
 
开发者ID:akarnokd,项目名称:Reactive4JavaFlow,代码行数:4,代码来源:SolocastProcessorTckTest.java

示例15: MulticastProcessorTckTest

import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public MulticastProcessorTckTest() {
    super(new TestEnvironment(50));
}
 
开发者ID:akarnokd,项目名称:Reactive4JavaFlow,代码行数:4,代码来源:MulticastProcessorTckTest.java


注:本文中的org.reactivestreams.tck.TestEnvironment类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。