Skip to content

Commit

Permalink
pubsub: remove Mockito from SubscriberImplTest (#1719)
Browse files Browse the repository at this point in the history
Update #1596.
  • Loading branch information
pongad authored Mar 9, 2017
1 parent f56484b commit 149ff7a
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;

/** Tests for {@link Subscriber}. */
@RunWith(Parameterized.class)
Expand Down Expand Up @@ -162,10 +160,8 @@ public SubscriberImplTest(boolean streamingTest) {

@Before
public void setUp() throws Exception {
MockitoAnnotations.initMocks(this);

InProcessServerBuilder serverBuilder = InProcessServerBuilder.forName(testName.getMethodName());
fakeSubscriberServiceImpl = Mockito.spy(new FakeSubscriberServiceImpl());
fakeSubscriberServiceImpl = new FakeSubscriberServiceImpl();
fakeExecutor = new FakeScheduledExecutorService();
testChannelBuilder = InProcessChannelBuilder.forName(testName.getMethodName());
serverBuilder.addService(fakeSubscriberServiceImpl);
Expand Down

0 comments on commit 149ff7a

Please sign in to comment.