Fix the tests usage of configurations.  Probably need to improve the configuration API to make this kind of error impossible.

Co-authored-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
Greg Wilkins 2023-05-02 13:03:49 +02:00 committed by GitHub
parent 776334db2e
commit 379de19e5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -26,7 +26,6 @@ import org.eclipse.jetty.client.ContentResponse;
import org.eclipse.jetty.client.HttpClient;
import org.eclipse.jetty.client.Response;
import org.eclipse.jetty.ee10.webapp.Configuration;
import org.eclipse.jetty.ee10.webapp.Configurations;
import org.eclipse.jetty.ee10.websocket.jakarta.client.JakartaWebSocketClientContainerProvider;
import org.eclipse.jetty.ee10.websocket.jakarta.client.internal.JakartaWebSocketShutdownContainer;
import org.eclipse.jetty.ee10.websocket.jakarta.common.JakartaWebSocketContainer;
@ -86,7 +85,7 @@ public class JakartaClientShutdownWithServerWebAppTest
WSServer.WebApp app = server.createWebApp(contextName);
// Exclude the Jakarta WebSocket configuration from the webapp.
Configuration[] configurations = Configurations.getKnown().stream()
Configuration[] configurations = app.getWebAppContext().getConfigurations().stream()
.filter(configuration -> !(configuration instanceof JakartaWebSocketConfiguration))
.toArray(Configuration[]::new);
app.getWebAppContext().setConfigurations(configurations);