diff options
Diffstat (limited to 'vespaclient-container-plugin/src/test/java/com')
4 files changed, 4 insertions, 6 deletions
diff --git a/vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/OperationHandlerImplTest.java b/vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/OperationHandlerImplTest.java index 5ac01b20335..374c91c13d3 100644 --- a/vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/OperationHandlerImplTest.java +++ b/vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/OperationHandlerImplTest.java @@ -353,8 +353,7 @@ public class OperationHandlerImplTest { @Test public void api_root_visiting_throws_exception_on_unknown_bucket_space_name() throws Exception { try { - VisitorParameters parameters = generatedVisitParametersFrom(apiRootVisitUri(), "", - optionsBuilder().cluster("foo").bucketSpace("langbein").build()); + generatedVisitParametersFrom(apiRootVisitUri(), "", optionsBuilder().cluster("foo").bucketSpace("langbein").build()); } catch (RestApiException e) { assertThat(e.getResponse().getStatus(), is(400)); assertThat(renderRestApiExceptionAsString(e), containsString( diff --git a/vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/resource/MockedOperationHandler.java b/vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/resource/MockedOperationHandler.java index 1e982c7b700..895c34436ce 100644 --- a/vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/resource/MockedOperationHandler.java +++ b/vespaclient-container-plugin/src/test/java/com/yahoo/document/restapi/resource/MockedOperationHandler.java @@ -6,7 +6,6 @@ import com.yahoo.document.restapi.Response; import com.yahoo.document.restapi.RestApiException; import com.yahoo.document.restapi.RestUri; import com.yahoo.vespaxmlparser.FeedOperation; -import com.yahoo.vespaxmlparser.VespaXMLFeedReader; import java.util.Optional; diff --git a/vespaclient-container-plugin/src/test/java/com/yahoo/feedhandler/v3/FeedTesterV3.java b/vespaclient-container-plugin/src/test/java/com/yahoo/feedhandler/v3/FeedTesterV3.java index fd9655fb838..4f58e628974 100644 --- a/vespaclient-container-plugin/src/test/java/com/yahoo/feedhandler/v3/FeedTesterV3.java +++ b/vespaclient-container-plugin/src/test/java/com/yahoo/feedhandler/v3/FeedTesterV3.java @@ -103,7 +103,7 @@ public class FeedTesterV3 { new FeedHandlerV3.Context(threadPool, AccessLog.voidAccessLog(), new NullFeedMetric(true)), docMan, null /* session cache */, - null /* thread pool config */, + null /* thread pool config */, new DocumentApiMetrics(MetricReceiver.nullImplementation, "test")) { @Override protected ReferencedResource<SharedSourceSession> retainSource( @@ -111,7 +111,7 @@ public class FeedTesterV3 { SharedSourceSession sharedSourceSession = mock(SharedSourceSession.class); try { - Mockito.stub(sharedSourceSession.sendMessageBlocking(anyObject())).toAnswer((Answer) invocation -> { + Mockito.stub(sharedSourceSession.sendMessageBlocking(anyObject())).toAnswer((Answer<?>) invocation -> { Object[] args = invocation.getArguments(); PutDocumentMessage putDocumentMessage = (PutDocumentMessage) args[0]; ReplyContext replyContext = (ReplyContext)putDocumentMessage.getContext(); diff --git a/vespaclient-container-plugin/src/test/java/com/yahoo/vespa/http/server/MetaStream.java b/vespaclient-container-plugin/src/test/java/com/yahoo/vespa/http/server/MetaStream.java index 363abd9efc8..d0ebd1e6ee3 100644 --- a/vespaclient-container-plugin/src/test/java/com/yahoo/vespa/http/server/MetaStream.java +++ b/vespaclient-container-plugin/src/test/java/com/yahoo/vespa/http/server/MetaStream.java @@ -23,7 +23,7 @@ public final class MetaStream extends ByteArrayInputStream { private static final byte[] createPayload(byte[] buf) { StringBuilder bu = new StringBuilder(); - for (byte b : buf) { + for (int i = 0; i < buf.length; i++) { bu.append("id:banana:banana::doc1 0\n"); } return Utf8.toBytes(bu.toString()); |