[java-identity-provider] branch master updated: Replace deprecated methods.
Scott Cantor
cantor.2 at osu.edu
Tue Dec 10 15:14:20 EST 2019
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=685ed2b84a348ebed6d5fbc3d54fc7f215acfae7
The following commit(s) were added to refs/heads/master by this push:
new 685ed2b Replace deprecated methods.
685ed2b is described below
commit 685ed2b84a348ebed6d5fbc3d54fc7f215acfae7
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Dec 10 14:14:17 2019 -0600
Replace deprecated methods.
---
.../shibboleth/idp/test/flows/saml1/SAML1TestResponseValidator.java | 6 +++---
.../shibboleth/idp/test/flows/saml2/SAML2TestResponseValidator.java | 2 +-
.../idp/test/flows/saml2/SAML2TestStatusResponseTypeValidator.java | 2 +-
.../relyingparty/metadata/filter/NameIDFormatFilterParserTest.java | 6 +++---
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml1/SAML1TestResponseValidator.java b/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml1/SAML1TestResponseValidator.java
index 5dbad2f..e3d3394 100644
--- a/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml1/SAML1TestResponseValidator.java
+++ b/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml1/SAML1TestResponseValidator.java
@@ -263,7 +263,7 @@ public class SAML1TestResponseValidator {
Assert.assertNotNull(status.getStatusCode());
Assert.assertEquals(status.getStatusCode().getValue(), statusCode);
if (statusCode != StatusCode.SUCCESS) {
- Assert.assertEquals(status.getStatusMessage().getMessage(), statusMessage);
+ Assert.assertEquals(status.getStatusMessage().getValue(), statusMessage);
}
}
@@ -359,7 +359,7 @@ public class SAML1TestResponseValidator {
public void assertAudiences(@Nullable final List<Audience> audiences) {
Assert.assertNotNull(audiences);
Assert.assertEquals(audiences.size(), 1);
- Assert.assertEquals(audiences.get(0).getUri(), spEntityID);
+ Assert.assertEquals(audiences.get(0).getURI(), spEntityID);
}
/**
@@ -466,7 +466,7 @@ public class SAML1TestResponseValidator {
*/
public void assertConfirmationMethod(@Nullable final ConfirmationMethod method) {
Assert.assertNotNull(method);
- Assert.assertEquals(method.getConfirmationMethod(), confirmationMethod);
+ Assert.assertEquals(method.getURI(), confirmationMethod);
}
/**
diff --git a/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml2/SAML2TestResponseValidator.java b/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml2/SAML2TestResponseValidator.java
index edc8568..dcb0254 100644
--- a/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml2/SAML2TestResponseValidator.java
+++ b/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml2/SAML2TestResponseValidator.java
@@ -504,7 +504,7 @@ public class SAML2TestResponseValidator extends SAML2TestStatusResponseTypeValid
Assert.assertEquals(audiences.size(), 1);
final Audience audience = audiences.get(0);
- Assert.assertEquals(audience.getAudienceURI(), AbstractFlowTest.SP_ENTITY_ID);
+ Assert.assertEquals(audience.getURI(), AbstractFlowTest.SP_ENTITY_ID);
}
/**
diff --git a/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml2/SAML2TestStatusResponseTypeValidator.java b/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml2/SAML2TestStatusResponseTypeValidator.java
index ed44679..b920e25 100644
--- a/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml2/SAML2TestStatusResponseTypeValidator.java
+++ b/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml2/SAML2TestStatusResponseTypeValidator.java
@@ -108,7 +108,7 @@ public class SAML2TestStatusResponseTypeValidator {
Assert.assertNotNull(status.getStatusCode());
Assert.assertEquals(status.getStatusCode().getValue(), statusCode);
if (statusCode != StatusCode.SUCCESS) {
- Assert.assertEquals(status.getStatusMessage().getMessage(), statusMessage);
+ Assert.assertEquals(status.getStatusMessage().getValue(), statusMessage);
if (status.getStatusCode().getStatusCode() != null) {
Assert.assertEquals(status.getStatusCode().getStatusCode().getValue(), statusCodeNested);
}
diff --git a/idp-profile-spring/src/test/java/net/shibboleth/idp/profile/spring/relyingparty/metadata/filter/NameIDFormatFilterParserTest.java b/idp-profile-spring/src/test/java/net/shibboleth/idp/profile/spring/relyingparty/metadata/filter/NameIDFormatFilterParserTest.java
index d5c1a73..3f143c8 100644
--- a/idp-profile-spring/src/test/java/net/shibboleth/idp/profile/spring/relyingparty/metadata/filter/NameIDFormatFilterParserTest.java
+++ b/idp-profile-spring/src/test/java/net/shibboleth/idp/profile/spring/relyingparty/metadata/filter/NameIDFormatFilterParserTest.java
@@ -57,15 +57,15 @@ public class NameIDFormatFilterParserTest extends AbstractMetadataParserTest {
Assert.assertNotNull(entity);
Assert.assertEquals(entity.getSPSSODescriptor(SAMLConstants.SAML20P_NS).getNameIDFormats().size(), 1);
- Assert.assertEquals(entity.getSPSSODescriptor(SAMLConstants.SAML20P_NS).getNameIDFormats().get(0).getFormat(), "foo");
+ Assert.assertEquals(entity.getSPSSODescriptor(SAMLConstants.SAML20P_NS).getNameIDFormats().get(0).getURI(), "foo");
key = new EntityIdCriterion("https://sp2.example.org/sp/shibboleth");
entity = resolver.resolveSingle(new CriteriaSet(key));
Assert.assertNotNull(entity);
Assert.assertEquals(entity.getSPSSODescriptor(SAMLConstants.SAML20P_NS).getNameIDFormats().size(), 2);
- Assert.assertEquals(entity.getSPSSODescriptor(SAMLConstants.SAML20P_NS).getNameIDFormats().get(0).getFormat(), "foo");
- Assert.assertEquals(entity.getSPSSODescriptor(SAMLConstants.SAML20P_NS).getNameIDFormats().get(1).getFormat(), "bar");
+ Assert.assertEquals(entity.getSPSSODescriptor(SAMLConstants.SAML20P_NS).getNameIDFormats().get(0).getURI(), "foo");
+ Assert.assertEquals(entity.getSPSSODescriptor(SAMLConstants.SAML20P_NS).getNameIDFormats().get(1).getURI(), "bar");
}
}
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list