Skip to content

Commit

Permalink
KAFKA-13088: Replace EasyMock with Mockito for ForwardingDisabledProc…
Browse files Browse the repository at this point in the history
…essorContextTest (#11051)

Reviewers: Ismael Juma <ismael@juma.me.uk>
  • Loading branch information
tang7526 committed Sep 6, 2021
1 parent 7c64077 commit 89ee72b
Showing 1 changed file with 3 additions and 8 deletions.
Expand Up @@ -19,24 +19,19 @@
import org.apache.kafka.streams.errors.StreamsException;
import org.apache.kafka.streams.processor.ProcessorContext;
import org.apache.kafka.streams.processor.To;
import org.easymock.EasyMockRunner;
import org.easymock.Mock;
import org.easymock.MockType;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.assertThrows;
import static org.mockito.Mockito.mock;

@RunWith(EasyMockRunner.class)
public class ForwardingDisabledProcessorContextTest {
@Mock(MockType.NICE)
private ProcessorContext delegate;

private ForwardingDisabledProcessorContext context;

@Before
public void setUp() {
context = new ForwardingDisabledProcessorContext(delegate);
context = new ForwardingDisabledProcessorContext(mock(ProcessorContext.class));
}

@Test
Expand Down

0 comments on commit 89ee72b

Please sign in to comment.