From 2d6bbe0b8bff09d105b77161c1d26a00ce43bf0c Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Thu, 11 Apr 2024 15:09:55 +0200 Subject: Unify on List.of --- .../src/test/java/ai/vespa/hosted/api/TestDescriptorTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'hosted-api/src/test') diff --git a/hosted-api/src/test/java/ai/vespa/hosted/api/TestDescriptorTest.java b/hosted-api/src/test/java/ai/vespa/hosted/api/TestDescriptorTest.java index ca4e6f6963c..f5674b15a79 100644 --- a/hosted-api/src/test/java/ai/vespa/hosted/api/TestDescriptorTest.java +++ b/hosted-api/src/test/java/ai/vespa/hosted/api/TestDescriptorTest.java @@ -5,7 +5,6 @@ import com.yahoo.test.json.JsonTestHelper; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import java.util.Collections; import java.util.List; /** @@ -31,13 +30,13 @@ public class TestDescriptorTest { Assertions.assertIterableEquals(List.of("ai.vespa.test.SystemTest1", "ai.vespa.test.SystemTest2"), systemTests); var stagingTests = testClassDescriptor.getConfiguredTests(TestDescriptor.TestCategory.stagingtest); - Assertions.assertIterableEquals(Collections.emptyList(), stagingTests); + Assertions.assertIterableEquals(List.of(), stagingTests); var stagingSetupTests = testClassDescriptor.getConfiguredTests(TestDescriptor.TestCategory.stagingtest); - Assertions.assertIterableEquals(Collections.emptyList(), stagingSetupTests); + Assertions.assertIterableEquals(List.of(), stagingSetupTests); var productionTests = testClassDescriptor.getConfiguredTests(TestDescriptor.TestCategory.productiontest); - Assertions.assertIterableEquals(Collections.emptyList(), productionTests); + Assertions.assertIterableEquals(List.of(), productionTests); } @Test -- cgit v1.2.3