Java Code Examples for reactor.test.StepVerifier#withVirtualTime()

The following examples show how to use reactor.test.StepVerifier#withVirtualTime() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GrpcRelocationReplicatorEventStreamTest.java    From titus-control-plane with Apache License 2.0 4 votes vote down vote up
private StepVerifier.FirstStep<ReplicatorEvent<TaskRelocationSnapshot, TaskRelocationEvent>> newConnectVerifier() {
    return StepVerifier.withVirtualTime(() -> newStream().connect().log());
}
 
Example 2
Source File: GrpcAgentReplicatorEventStreamTest.java    From titus-control-plane with Apache License 2.0 4 votes vote down vote up
private StepVerifier.FirstStep<ReplicatorEvent<AgentSnapshot, AgentEvent>> newConnectVerifier() {
    return StepVerifier.withVirtualTime(() -> newStream().connect().log());
}
 
Example 3
Source File: GrpcJobReplicatorEventStreamTest.java    From titus-control-plane with Apache License 2.0 4 votes vote down vote up
private StepVerifier.FirstStep<ReplicatorEvent<JobSnapshot, JobManagerEvent<?>>> newConnectVerifier() {
    return StepVerifier.withVirtualTime(() -> newStream().connect().log());
}
 
Example 4
Source File: RetryableReplicatorEventStreamTest.java    From titus-control-plane with Apache License 2.0 4 votes vote down vote up
private StepVerifier.FirstStep<ReplicatorEvent<String, String>> newConnectVerifier() {
    return StepVerifier.withVirtualTime(() -> newStream().connect().log());
}
 
Example 5
Source File: GrpcEvictionReplicatorEventStreamTest.java    From titus-control-plane with Apache License 2.0 4 votes vote down vote up
private StepVerifier.FirstStep<ReplicatorEvent<EvictionDataSnapshot, EvictionEvent>> newConnectVerifier() {
    return StepVerifier.withVirtualTime(() -> newStream().connect().log());
}