@Test public void normal() { TestDisposableSubscriber<Integer> tc = new TestDisposableSubscriber<Integer>(); assertFalse(tc.isDisposed()); assertEquals(0, tc.start); assertTrue(tc.values.isEmpty()); assertTrue(tc.errors.isEmpty()); Flowable.just(1).subscribe(tc); assertFalse(tc.isDisposed()); assertEquals(1, tc.start); assertEquals(1, tc.values.get(0).intValue()); assertTrue(tc.errors.isEmpty()); }
@Override public final boolean isDisposed() { return s.get() == SubscriptionHelper.CANCELLED; }
DisposableSubscriber implements FlowableSubscriber<T>, Disposable { @Override public final boolean isDisposed() { return s.get() == SubscriptionHelper.CANCELLED; } }
DisposableSubscriber implements FlowableSubscriber<T>, Disposable { @Override public final boolean isDisposed() { return s.get() == SubscriptionHelper.CANCELLED; }  }
DisposableSubscriber implements FlowableSubscriber<T>, Disposable { @Override public final boolean isDisposed() { return s.get() == SubscriptionHelper.CANCELLED; }  @Override final void onSubscribe(Subscription s); @Override final boolean isDisposed(); @Override final void dispose(); }
DisposableSubscriber implements FlowableSubscriber<T>, Disposable { @Override public final boolean isDisposed() { return s.get() == SubscriptionHelper.CANCELLED; }  @Override final void onSubscribe(Subscription s); @Override final boolean isDisposed(); @Override final void dispose();  }