From 599d980d0809be0775abb2ec4f93a0283a67b557 Mon Sep 17 00:00:00 2001 From: Francisco Javier Fernandez Gonzalez Date: Fri, 20 Sep 2024 15:08:15 +0200 Subject: [PATCH] Apply spotless --- .../test/acceptance/po/OicAuthConfigurationMode.java | 1 - src/test/java/plugins/OicAuthPluginTest.java | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/jenkinsci/test/acceptance/po/OicAuthConfigurationMode.java b/src/main/java/org/jenkinsci/test/acceptance/po/OicAuthConfigurationMode.java index a03b0128d..e42c95f7a 100644 --- a/src/main/java/org/jenkinsci/test/acceptance/po/OicAuthConfigurationMode.java +++ b/src/main/java/org/jenkinsci/test/acceptance/po/OicAuthConfigurationMode.java @@ -21,5 +21,4 @@ public WellKnownEndpoint(OicAuthSecurityRealm realm) { super(realm); } } - } diff --git a/src/test/java/plugins/OicAuthPluginTest.java b/src/test/java/plugins/OicAuthPluginTest.java index f6ec1743e..aa1f87269 100644 --- a/src/test/java/plugins/OicAuthPluginTest.java +++ b/src/test/java/plugins/OicAuthPluginTest.java @@ -208,8 +208,10 @@ private void configureRealm() { OicAuthSecurityRealm securityRealm = sc.useRealm(OicAuthSecurityRealm.class); securityRealm.configureClient(CLIENT, CLIENT); // Configuration mode - OicAuthConfigurationMode.WellKnownEndpoint configurationMode = securityRealm.useConfigurationMode(OicAuthConfigurationMode.WellKnownEndpoint.class); - configurationMode.wellKnownEndpoint.set(String.format("%s/realms/%s/.well-known/openid-configuration", keycloakUrl, REALM)); + OicAuthConfigurationMode.WellKnownEndpoint configurationMode = + securityRealm.useConfigurationMode(OicAuthConfigurationMode.WellKnownEndpoint.class); + configurationMode.wellKnownEndpoint.set( + String.format("%s/realms/%s/.well-known/openid-configuration", keycloakUrl, REALM)); securityRealm.setLogoutFromOpenidProvider(true); securityRealm.setPostLogoutUrl(jenkins.url("OicLogout").toExternalForm()); securityRealm.setUserFields(null, null, null, "groups");