Fix Formatting

This commit is contained in:
Josh Cummings 2024-07-29 14:54:08 -06:00
parent 0b0ffa01f7
commit 335dff63c1
No known key found for this signature in database
GPG Key ID: A306A51F43B8E5A5

View File

@ -92,12 +92,12 @@ public class OpenSamlAssertingPartyMetadataRepositoryTests {
try (MockWebServer server = new MockWebServer()) { try (MockWebServer server = new MockWebServer()) {
server.setDispatcher(new AlwaysDispatch(this.metadata)); server.setDispatcher(new AlwaysDispatch(this.metadata));
AssertingPartyMetadataRepository parties = OpenSamlAssertingPartyMetadataRepository AssertingPartyMetadataRepository parties = OpenSamlAssertingPartyMetadataRepository
.withTrustedMetadataLocation(server.url("/").toString()) .withTrustedMetadataLocation(server.url("/").toString())
.build(); .build();
AssertingPartyMetadata party = parties.findByEntityId("https://idp.example.com/idp/shibboleth"); AssertingPartyMetadata party = parties.findByEntityId("https://idp.example.com/idp/shibboleth");
assertThat(party.getEntityId()).isEqualTo("https://idp.example.com/idp/shibboleth"); assertThat(party.getEntityId()).isEqualTo("https://idp.example.com/idp/shibboleth");
assertThat(party.getSingleSignOnServiceLocation()) assertThat(party.getSingleSignOnServiceLocation())
.isEqualTo("https://idp.example.com/idp/profile/SAML2/POST/SSO"); .isEqualTo("https://idp.example.com/idp/profile/SAML2/POST/SSO");
assertThat(party.getSingleSignOnServiceBinding()).isEqualTo(Saml2MessageBinding.POST); assertThat(party.getSingleSignOnServiceBinding()).isEqualTo(Saml2MessageBinding.POST);
assertThat(party.getVerificationX509Credentials()).hasSize(1); assertThat(party.getVerificationX509Credentials()).hasSize(1);
assertThat(party.getEncryptionX509Credentials()).hasSize(1); assertThat(party.getEncryptionX509Credentials()).hasSize(1);
@ -360,7 +360,9 @@ public class OpenSamlAssertingPartyMetadataRepositoryTests {
private final MockResponse response; private final MockResponse response;
private AlwaysDispatch(String body) { private AlwaysDispatch(String body) {
this.response = new MockResponse().setBody(body).setResponseCode(200).setBodyDelay(1, TimeUnit.MILLISECONDS); this.response = new MockResponse().setBody(body)
.setResponseCode(200)
.setBodyDelay(1, TimeUnit.MILLISECONDS);
} }
private AlwaysDispatch(MockResponse response) { private AlwaysDispatch(MockResponse response) {