@Test public void fail_to_get_user_login_attribute_when_null() { expectedException.expect(IllegalArgumentException.class); expectedException.expectMessage("User login attribute is missing"); underTest.getUserLogin(); }
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);   }