From 3f9445c25962f914ccdd889c002ddd8e19b0cf89 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Thu, 18 Nov 2021 16:45:02 -0600 Subject: Improve code quality --- .../src/test/java/org/sonar/auth/saml/SamlSettingsTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/sonar-auth-saml/src') diff --git a/server/sonar-auth-saml/src/test/java/org/sonar/auth/saml/SamlSettingsTest.java b/server/sonar-auth-saml/src/test/java/org/sonar/auth/saml/SamlSettingsTest.java index 89d35c7554c..0c9bb0e4921 100644 --- a/server/sonar-auth-saml/src/test/java/org/sonar/auth/saml/SamlSettingsTest.java +++ b/server/sonar-auth-saml/src/test/java/org/sonar/auth/saml/SamlSettingsTest.java @@ -104,7 +104,7 @@ public class SamlSettingsTest { public void return_user_email_attribute() { settings.setProperty("sonar.auth.saml.user.email", "userEmail"); - assertThat(underTest.getUserEmail().get()).isEqualTo("userEmail"); + assertThat(underTest.getUserEmail()).contains("userEmail"); } @Test @@ -116,7 +116,7 @@ public class SamlSettingsTest { public void return_group_name_attribute() { settings.setProperty("sonar.auth.saml.group.name", "groupName"); - assertThat(underTest.getGroupName().get()).isEqualTo("groupName"); + assertThat(underTest.getGroupName()).contains("groupName"); } @Test -- cgit v1.2.3