From 176666b7365e8d542e19d6775139eba5297661b1 Mon Sep 17 00:00:00 2001 From: Zixuan Liu <nodeces@gmail.com> Date: Mon, 13 Jan 2025 12:52:35 +0800 Subject: [PATCH] Update AuthenticationServiceTest.java --- .../apache/pulsar/broker/auth/AuthenticationServiceTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pulsar-broker/src/test/java/org/apache/pulsar/broker/auth/AuthenticationServiceTest.java b/pulsar-broker/src/test/java/org/apache/pulsar/broker/auth/AuthenticationServiceTest.java index 59aa6146bcf90..ca3507ad42f4c 100644 --- a/pulsar-broker/src/test/java/org/apache/pulsar/broker/auth/AuthenticationServiceTest.java +++ b/pulsar-broker/src/test/java/org/apache/pulsar/broker/auth/AuthenticationServiceTest.java @@ -31,6 +31,7 @@ import static org.testng.Assert.assertTrue; import com.google.common.collect.Sets; import java.io.IOException; +import java.util.LinkedHashSet; import java.util.Set; import java.util.concurrent.CompletableFuture; import javax.naming.AuthenticationException; @@ -177,7 +178,7 @@ public void testAuthenticationHttpRequestResponseWithAnonymousRole() throws Exce @Test public void testHttpRequestWithMultipleProviders() throws Exception { ServiceConfiguration config = new ServiceConfiguration(); - Set<String> providersClassNames = Sets.newLinkedHashSet(); + Set<String> providersClassNames = new LinkedHashSet(); providersClassNames.add(MockAuthenticationProviderAlwaysFail.class.getName()); providersClassNames.add(MockHttpAuthenticationProvider.class.getName()); config.setAuthenticationProviders(providersClassNames);