public class SwapDisposableTest
extends java.lang.Object
构造器和说明 |
---|
SwapDisposableTest() |
@BeforeEach public void setUp()
@Test public void unsubscribingWithoutUnderlyingDoesNothing()
@Test public void getDisposableShouldReturnset()
@Test public void notDisposedWhenReplaced()
@Test public void unsubscribingTwiceDoesUnsubscribeOnce()
@Test public void settingSameDisposableTwiceDoesUnsubscribeIt()
@Test public void unsubscribingWithSingleUnderlyingUnsubscribes()
@Test public void replacingFirstUnderlyingCausesUnsubscription()
@Test public void whenUnsubscribingSecondUnderlyingUnsubscribed()
@Test public void settingUnderlyingWhenUnsubscribedCausesImmediateUnsubscription()
@Test @Timeout(value=1L) public void settingUnderlyingWhenUnsubscribedCausesImmediateUnsubscriptionConcurrently() throws java.lang.InterruptedException
java.lang.InterruptedException
@Test public void concurrentSetDisposableShouldNotInterleave() throws java.lang.InterruptedException
java.lang.InterruptedException