@Test public void fail_to_get_login_url_when_null() { expectedException.expect(IllegalArgumentException.class); expectedException.expectMessage("Login URL is missing"); underTest.getLoginUrl(); }
String getLoginUrl() { return configuration.get(LOGIN_URL).orElseThrow(() -> new IllegalArgumentException("Login URL is missing")); }
SamlSettings { String getLoginUrl() { return configuration.get(LOGIN_URL).orElseThrow(() -> new IllegalArgumentException("Login URL is missing")); } }
SamlSettings { String getLoginUrl() { return configuration.get(LOGIN_URL).orElseThrow(() -> new IllegalArgumentException("Login URL is missing")); } SamlSettings(Configuration configuration); }
SamlSettings { String getLoginUrl() { return configuration.get(LOGIN_URL).orElseThrow(() -> new IllegalArgumentException("Login URL is missing")); } SamlSettings(Configuration configuration);  }
SamlSettings { String getLoginUrl() { return configuration.get(LOGIN_URL).orElseThrow(() -> new IllegalArgumentException("Login URL is missing")); } SamlSettings(Configuration configuration);   }