use of io.servicetalk.concurrent.test.internal.TestCompletableSubscriber in project servicetalk by apple.
the class IterableMergeCompletableDelayErrorTest method testIterableCompletionFew.
@Test
void testIterableCompletionFew() {
TestCompletableSubscriber subscriber = new TestCompletableSubscriber();
iterableHolder.init(2).listen(subscriber).complete(1, 2);
assertThat(subscriber.pollTerminal(10, MILLISECONDS), is(nullValue()));
iterableHolder.complete(0);
subscriber.awaitOnComplete();
}
use of io.servicetalk.concurrent.test.internal.TestCompletableSubscriber in project servicetalk by apple.
the class IterableMergeCompletableTest method mergeEmptyArray.
@Test
void mergeEmptyArray() {
TestCompletableSubscriber subscriber = new TestCompletableSubscriber();
toSource(completed().merge(new Completable[0])).subscribe(subscriber);
subscriber.awaitOnComplete();
}
use of io.servicetalk.concurrent.test.internal.TestCompletableSubscriber in project servicetalk by apple.
the class IterableMergeCompletableTest method testIterableCompletionFew.
@Test
void testIterableCompletionFew() {
TestCompletableSubscriber subscriber = new TestCompletableSubscriber();
iterableHolder.init(2).listen(subscriber).complete(1, 2);
assertThat(subscriber.pollTerminal(10, MILLISECONDS), is(nullValue()));
iterableHolder.complete(0);
subscriber.awaitOnComplete();
}
use of io.servicetalk.concurrent.test.internal.TestCompletableSubscriber in project servicetalk by apple.
the class IterableMergeCompletableTest method testIterableMergeWithOne.
@Test
void testIterableMergeWithOne() {
TestCompletableSubscriber subscriber = new TestCompletableSubscriber();
iterableHolder.init(1).listen(subscriber).completeAll();
subscriber.awaitOnComplete();
}
use of io.servicetalk.concurrent.test.internal.TestCompletableSubscriber in project servicetalk by apple.
the class IterableMergeCompletableTest method mergeEmptyCollection.
@Test
void mergeEmptyCollection() {
TestCompletableSubscriber subscriber = new TestCompletableSubscriber();
toSource(completed().merge(Collections.emptyList())).subscribe(subscriber);
subscriber.awaitOnComplete();
}
Aggregations