File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
src/test/java/rx/internal/util Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package rx .internal .util ;
18
18
19
- import static org .mockito .Mockito .*;
20
19
import static org .junit .Assert .*;
20
+ import static org .mockito .Mockito .*;
21
21
22
22
import java .util .concurrent .CountDownLatch ;
23
23
import java .util .concurrent .atomic .AtomicReference ;
24
24
25
- import org .junit .Test ;
25
+ import org .junit .* ;
26
26
27
- import rx .Observable ;
28
- import rx .Subscriber ;
29
- import rx .Subscription ;
27
+ import rx .*;
30
28
import rx .schedulers .Schedulers ;
31
29
32
30
/**
33
31
* Test suite for {@link BlockingUtils}.
34
32
*/
35
33
public class BlockingUtilsTest {
34
+
35
+ @ Before
36
+ @ After
37
+ public void before () {
38
+ // make sure the interrupted flag is cleared
39
+ Thread .interrupted ();
40
+ }
41
+
36
42
@ Test
37
43
public void awaitCompleteShouldReturnIfCountIsZero () {
38
44
Subscription subscription = mock (Subscription .class );
You can’t perform that action at this time.
0 commit comments