aboutsummaryrefslogtreecommitdiffstats
path: root/container-core/src/test/java/com/yahoo/processing/handler/ProcessingHandlerTestCase.java
diff options
context:
space:
mode:
authorHåkon Hallingstad <hakon@verizonmedia.com>2019-10-18 15:19:59 +0200
committerHåkon Hallingstad <hakon@verizonmedia.com>2019-10-18 15:19:59 +0200
commit579754fa5b5f4768a75fc3aed08f70ffb29db0e3 (patch)
tree825e5366b8253535bb9366722006ef49c6e83c53 /container-core/src/test/java/com/yahoo/processing/handler/ProcessingHandlerTestCase.java
parent19ab63311c9354db919a9a9ac38d34342e1ca204 (diff)
Use mockito-core 3.1.0
Diffstat (limited to 'container-core/src/test/java/com/yahoo/processing/handler/ProcessingHandlerTestCase.java')
-rw-r--r--container-core/src/test/java/com/yahoo/processing/handler/ProcessingHandlerTestCase.java34
1 files changed, 11 insertions, 23 deletions
diff --git a/container-core/src/test/java/com/yahoo/processing/handler/ProcessingHandlerTestCase.java b/container-core/src/test/java/com/yahoo/processing/handler/ProcessingHandlerTestCase.java
index ce4d7f5d9cb..6498514c075 100644
--- a/container-core/src/test/java/com/yahoo/processing/handler/ProcessingHandlerTestCase.java
+++ b/container-core/src/test/java/com/yahoo/processing/handler/ProcessingHandlerTestCase.java
@@ -9,9 +9,8 @@ import com.yahoo.component.provider.ComponentRegistry;
import com.yahoo.container.jdisc.RequestHandlerTestDriver;
import com.yahoo.container.logging.AccessLogEntry;
import com.yahoo.container.logging.AccessLogInterface;
-import com.yahoo.jdisc.Request;
+import com.yahoo.container.protect.Error;
import com.yahoo.jdisc.Response;
-import com.yahoo.jdisc.handler.ContentChannel;
import com.yahoo.jdisc.http.HttpRequest;
import com.yahoo.processing.Processor;
import com.yahoo.processing.execution.Execution;
@@ -21,34 +20,33 @@ import com.yahoo.processing.rendering.Renderer;
import com.yahoo.processing.request.ErrorMessage;
import com.yahoo.processing.response.Data;
import com.yahoo.processing.test.ProcessorLibrary;
-import com.yahoo.container.protect.Error;
import org.junit.After;
import org.junit.Ignore;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
-import org.mockito.Matchers;
import org.mockito.Mockito;
-import static com.yahoo.processing.test.ProcessorLibrary.MapData;
-
import java.io.IOException;
import java.io.InputStream;
-import java.net.URI;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.ConcurrentModificationException;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
import java.util.concurrent.ExecutionException;
+import static com.yahoo.processing.test.ProcessorLibrary.MapData;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.CoreMatchers.sameInstance;
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNull;
-import static org.mockito.Matchers.notNull;
import static org.mockito.Mockito.times;
/**
@@ -99,16 +97,6 @@ public class ProcessingHandlerTestCase {
assertThat(entry.getKeyValues().get(LOG_KEY), is(Collections.singletonList(LOG_VALUE)));
}
- @SuppressWarnings("unchecked")
- public <T> T notNull() {
- return (T)Matchers.notNull();
- }
-
- @SuppressWarnings("unchecked")
- public <T> T any() {
- return (T)Matchers.any();
- }
-
@Test
public void testProcessingHandlerResolvesChains() throws Exception {
List<Chain<Processor>> chains = new ArrayList<>();