aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-auth-saml
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2021-11-18 16:45:02 -0600
committersonartech <sonartech@sonarsource.com>2021-11-20 20:03:51 +0000
commit3f9445c25962f914ccdd889c002ddd8e19b0cf89 (patch)
treeeb4f34a62b7164a71fd0bbe34d6f59621a687d8d /server/sonar-auth-saml
parentaa640be9e2b9cfa2c027ef0768940b31ebb5536c (diff)
downloadsonarqube-3f9445c25962f914ccdd889c002ddd8e19b0cf89.tar.gz
sonarqube-3f9445c25962f914ccdd889c002ddd8e19b0cf89.zip
Improve code quality
Diffstat (limited to 'server/sonar-auth-saml')
-rw-r--r--server/sonar-auth-saml/src/test/java/org/sonar/auth/saml/SamlSettingsTest.java4
1 files changed, 2 insertions, 2 deletions
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