本文整理汇总了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();
}
});
}
示例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);
}
示例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;
}
示例4: RxGrpcPublisherOneToManyVerificationTest
import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public RxGrpcPublisherOneToManyVerificationTest() {
super(new TestEnvironment(DEFAULT_TIMEOUT_MILLIS, DEFAULT_TIMEOUT_MILLIS), PUBLISHER_REFERENCE_CLEANUP_TIMEOUT_MILLIS);
}
示例5: RxGrpcPublisherManyToOneVerificationTest
import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public RxGrpcPublisherManyToOneVerificationTest() {
super(new TestEnvironment(DEFAULT_TIMEOUT_MILLIS, DEFAULT_TIMEOUT_MILLIS), PUBLISHER_REFERENCE_CLEANUP_TIMEOUT_MILLIS);
}
示例6: RxGrpcPublisherOneToOneVerificationTest
import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public RxGrpcPublisherOneToOneVerificationTest() {
super(new TestEnvironment(DEFAULT_TIMEOUT_MILLIS, DEFAULT_TIMEOUT_MILLIS), PUBLISHER_REFERENCE_CLEANUP_TIMEOUT_MILLIS);
}
示例7: RxGrpcSubscriberWhiteboxVerificationTest
import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public RxGrpcSubscriberWhiteboxVerificationTest() {
super(new TestEnvironment());
}
示例8: RxGrpcPublisherManyToManyVerificationTest
import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public RxGrpcPublisherManyToManyVerificationTest() {
super(new TestEnvironment(DEFAULT_TIMEOUT_MILLIS, DEFAULT_TIMEOUT_MILLIS), PUBLISHER_REFERENCE_CLEANUP_TIMEOUT_MILLIS);
}
示例9: ReactorGrpcSubscriberWhiteboxVerificationTest
import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public ReactorGrpcSubscriberWhiteboxVerificationTest() {
super(new TestEnvironment());
}
示例10: ReactorGrpcPublisherManyToOneVerificationTest
import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public ReactorGrpcPublisherManyToOneVerificationTest() {
super(new TestEnvironment(DEFAULT_TIMEOUT_MILLIS, DEFAULT_TIMEOUT_MILLIS), PUBLISHER_REFERENCE_CLEANUP_TIMEOUT_MILLIS);
}
示例11: ReactorGrpcPublisherManyToManyVerificationTest
import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public ReactorGrpcPublisherManyToManyVerificationTest() {
super(new TestEnvironment(DEFAULT_TIMEOUT_MILLIS, DEFAULT_TIMEOUT_MILLIS), PUBLISHER_REFERENCE_CLEANUP_TIMEOUT_MILLIS);
}
示例12: ReactorGrpcPublisherOneToOneVerificationTest
import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public ReactorGrpcPublisherOneToOneVerificationTest() {
super(new TestEnvironment(DEFAULT_TIMEOUT_MILLIS, DEFAULT_TIMEOUT_MILLIS), PUBLISHER_REFERENCE_CLEANUP_TIMEOUT_MILLIS);
}
示例13: ReactorGrpcPublisherOneToManyVerificationTest
import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public ReactorGrpcPublisherOneToManyVerificationTest() {
super(new TestEnvironment(DEFAULT_TIMEOUT_MILLIS, DEFAULT_TIMEOUT_MILLIS), PUBLISHER_REFERENCE_CLEANUP_TIMEOUT_MILLIS);
}
示例14: SolocastProcessorTckTest
import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public SolocastProcessorTckTest() {
super(new TestEnvironment(50));
}
示例15: MulticastProcessorTckTest
import org.reactivestreams.tck.TestEnvironment; //导入依赖的package包/类
public MulticastProcessorTckTest() {
super(new TestEnvironment(50));
}