@Test public void return_user_login_attribute() { settings.setProperty("sonar.auth.saml.user.login", "userLogin"); assertThat(underTest.getUserLogin()).isEqualTo("userLogin"); }
String getUserLogin() { return configuration.get(USER_LOGIN_ATTRIBUTE).orElseThrow(() -> new IllegalArgumentException("User login attribute is missing")); }
SamlSettings { String getUserLogin() { return configuration.get(USER_LOGIN_ATTRIBUTE).orElseThrow(() -> new IllegalArgumentException("User login attribute is missing")); } }
SamlSettings { String getUserLogin() { return configuration.get(USER_LOGIN_ATTRIBUTE).orElseThrow(() -> new IllegalArgumentException("User login attribute is missing")); } SamlSettings(Configuration configuration); }
SamlSettings { String getUserLogin() { return configuration.get(USER_LOGIN_ATTRIBUTE).orElseThrow(() -> new IllegalArgumentException("User login attribute is missing")); } SamlSettings(Configuration configuration);  }
SamlSettings { String getUserLogin() { return configuration.get(USER_LOGIN_ATTRIBUTE).orElseThrow(() -> new IllegalArgumentException("User login attribute is missing")); } SamlSettings(Configuration configuration);   }