@Test public void return_certificate() { settings.setProperty("sonar.auth.saml.certificate.secured", "ABCDEFG"); assertThat(underTest.getCertificate()).isEqualTo("ABCDEFG"); }
String getCertificate() { return configuration.get(CERTIFICATE).orElseThrow(() -> new IllegalArgumentException("Certificate is missing")); }
SamlSettings { String getCertificate() { return configuration.get(CERTIFICATE).orElseThrow(() -> new IllegalArgumentException("Certificate is missing")); } }
SamlSettings { String getCertificate() { return configuration.get(CERTIFICATE).orElseThrow(() -> new IllegalArgumentException("Certificate is missing")); } SamlSettings(Configuration configuration); }
SamlSettings { String getCertificate() { return configuration.get(CERTIFICATE).orElseThrow(() -> new IllegalArgumentException("Certificate is missing")); } SamlSettings(Configuration configuration);  }
SamlSettings { String getCertificate() { return configuration.get(CERTIFICATE).orElseThrow(() -> new IllegalArgumentException("Certificate is missing")); } SamlSettings(Configuration configuration);   }