1
1
package org .reactivestreams .example .unicast ;
2
2
3
- import java .util .Collections ;
4
- import java .util .Iterator ;
5
3
import org .reactivestreams .Publisher ;
6
4
import org .reactivestreams .Subscriber ;
7
5
import org .reactivestreams .tck .SubscriberBlackboxVerification ;
8
6
import org .reactivestreams .tck .TestEnvironment ;
7
+ import org .testng .annotations .AfterClass ;
8
+ import org .testng .annotations .BeforeClass ;
9
9
import org .testng .annotations .Test ;
10
- import static org .testng .Assert .assertEquals ;
11
10
12
- import org .testng .annotations .BeforeClass ;
13
- import org .testng .annotations .AfterClass ;
14
- import java .util .concurrent .Executors ;
15
- import java .util .concurrent .ExecutorService ;
16
11
import java .util .concurrent .CountDownLatch ;
17
- import java .util .concurrent .atomic .AtomicLong ;
12
+ import java .util .concurrent .ExecutorService ;
13
+ import java .util .concurrent .Executors ;
18
14
import java .util .concurrent .TimeUnit ;
15
+ import java .util .concurrent .atomic .AtomicLong ;
16
+
17
+ import static org .testng .Assert .assertEquals ;
19
18
20
19
@ Test // Must be here for TestNG to find and run this, do not remove
21
20
public class AsyncSubscriberTest extends SubscriberBlackboxVerification <Integer > {
@@ -31,7 +30,6 @@ public AsyncSubscriberTest() {
31
30
32
31
@ Override public Subscriber <Integer > createSubscriber () {
33
32
return new AsyncSubscriber <Integer >(e ) {
34
- private long acc ;
35
33
@ Override protected boolean whenNext (final Integer element ) {
36
34
return true ;
37
35
}
0 commit comments