use of reactor.core.publisher.Operators.CancelledSubscription in project reactor-core by reactor.
the class OperatorsTest method cancelledSubscription.
@Test
public void cancelledSubscription() {
Operators.CancelledSubscription es = (Operators.CancelledSubscription) Operators.cancelledSubscription();
assertThat((Object) es).isEqualTo(Operators.CancelledSubscription.INSTANCE);
// Noop
es.cancel();
es.request(-1);
}
use of reactor.core.publisher.Operators.CancelledSubscription in project reactor-core by reactor.
the class OperatorsTest method scanCancelledSubscription.
@Test
public void scanCancelledSubscription() {
CancelledSubscription test = CancelledSubscription.INSTANCE;
assertThat(test.scan(Scannable.Attr.CANCELLED)).isTrue();
}
Aggregations