[java-idp-integration-tests] branch main updated: Rename getBuilderOrThrow to ensureBuilder.
Scott Cantor
cantor.2 at osu.edu
Tue Mar 14 21:53:52 UTC 2023
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-idp-integration-tests.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-integration-tests.git;a=commit;h=0453a55fe3dcf64e4c924b8ebd24cfd766e75524
The following commit(s) were added to refs/heads/main by this push:
new 0453a55 Rename getBuilderOrThrow to ensureBuilder.
0453a55 is described below
commit 0453a55fe3dcf64e4c924b8ebd24cfd766e75524
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Mar 14 17:53:30 2023 -0400
Rename getBuilderOrThrow to ensureBuilder.
---
.../integration/tests/saml2/SAML2AttributeQueryIntegrationTest.java | 2 +-
.../integration/tests/saml2/SAML2SSORedirectLDAPIntegrationTest.java | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/test/java/net/shibboleth/idp/integration/tests/saml2/SAML2AttributeQueryIntegrationTest.java b/src/test/java/net/shibboleth/idp/integration/tests/saml2/SAML2AttributeQueryIntegrationTest.java
index e0bbb50..fbc547a 100644
--- a/src/test/java/net/shibboleth/idp/integration/tests/saml2/SAML2AttributeQueryIntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/integration/tests/saml2/SAML2AttributeQueryIntegrationTest.java
@@ -92,7 +92,7 @@ public class SAML2AttributeQueryIntegrationTest extends AbstractSAML2Integration
@Override
public void setUpValidator() throws IOException {
final SAMLObjectBuilder<NameID> builder = (SAMLObjectBuilder<NameID>) XMLObjectProviderRegistrySupport
- .getBuilderFactory().<NameID> getBuilderOrThrow(NameID.DEFAULT_ELEMENT_NAME);
+ .getBuilderFactory().<NameID> ensureBuilder(NameID.DEFAULT_ELEMENT_NAME);
final NameID nameID = builder.buildObject();
nameID.setValue("jdoe");
nameID.setNameQualifier(null);
diff --git a/src/test/java/net/shibboleth/idp/integration/tests/saml2/SAML2SSORedirectLDAPIntegrationTest.java b/src/test/java/net/shibboleth/idp/integration/tests/saml2/SAML2SSORedirectLDAPIntegrationTest.java
index 7019629..5331141 100644
--- a/src/test/java/net/shibboleth/idp/integration/tests/saml2/SAML2SSORedirectLDAPIntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/integration/tests/saml2/SAML2SSORedirectLDAPIntegrationTest.java
@@ -64,10 +64,10 @@ public class SAML2SSORedirectLDAPIntegrationTest extends AbstractSAML2Integratio
public void setUpIDP1026Validator() {
final SAMLObjectBuilder<Attribute> builder = (SAMLObjectBuilder<Attribute>) XMLObjectProviderRegistrySupport
- .getBuilderFactory().<Attribute> getBuilderOrThrow(Attribute.DEFAULT_ELEMENT_NAME);
+ .getBuilderFactory().<Attribute> ensureBuilder(Attribute.DEFAULT_ELEMENT_NAME);
final XMLObjectBuilder<XSAny> anyBuilder =
- XMLObjectProviderRegistrySupport.getBuilderFactory().<XSAny> getBuilderOrThrow(XSAny.TYPE_NAME);
+ XMLObjectProviderRegistrySupport.getBuilderFactory().<XSAny> ensureBuilder(XSAny.TYPE_NAME);
// the expected uid attribute
final Attribute uidAttribute = builder.buildObject();
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list