aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2024-04-12 09:06:02 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2024-04-12 09:06:02 +0200
commitaa1c9111e67493d3c136ced84cb0a61f79f2e3c2 (patch)
tree806fd02769cf21c9829c9a788f5585a02c8f3e54
parent76a89b62274060452022ddf24a7685ee2f380cb4 (diff)
Use list that allows for null elements.
-rw-r--r--vespaclient-container-plugin/src/test/java/com/yahoo/vespa/http/server/VersionsTestCase.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/vespaclient-container-plugin/src/test/java/com/yahoo/vespa/http/server/VersionsTestCase.java b/vespaclient-container-plugin/src/test/java/com/yahoo/vespa/http/server/VersionsTestCase.java
index b877f9738ce..52a58474238 100644
--- a/vespaclient-container-plugin/src/test/java/com/yahoo/vespa/http/server/VersionsTestCase.java
+++ b/vespaclient-container-plugin/src/test/java/com/yahoo/vespa/http/server/VersionsTestCase.java
@@ -6,6 +6,7 @@ import com.yahoo.container.jdisc.HttpResponse;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
+import java.util.Arrays;
import java.util.List;
import static org.junit.Assert.assertEquals;
@@ -22,7 +23,7 @@ public class VersionsTestCase {
private static final List<String> ONE_TWO = List.of("1", "2");
private static final List<String> ONE_THREE = List.of("1", "3");
private static final List<String> TWO_THREE = List.of("3", "2");
- private static final List<String> ONE_NULL_THREE = List.of("1", null, "3");
+ private static final List<String> ONE_NULL_THREE = Arrays.asList("1", null, "3");
private static final List<String> ONE_COMMA_THREE = List.of("1, 3");
private static final List<String> ONE_EMPTY_THREE = List.of("1", "", "3");
private static final List<String> TOO_LARGE_NUMBER = List.of("1000000000");