[java-identity-provider COMMIT] /trunk/idp-profile-impl/src/test/java/net/shibboleth/idp/profile/logic/RelyingPartyId...
noreply at shibboleth.net
noreply at shibboleth.net
Mon May 5 12:28:26 EDT 2014
Author: scantor
Date: Mon May 5 12:28:26 2014
New Revision: 5842
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=5842&view=rev
Log:
Generalize relying party ID predicate through lookup function.
Modified:
trunk/idp-profile-impl/src/test/java/net/shibboleth/idp/profile/logic/RelyingPartyIdPredicateTest.java
Modified: trunk/idp-profile-impl/src/test/java/net/shibboleth/idp/profile/logic/RelyingPartyIdPredicateTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-profile-impl/src/test/java/net/shibboleth/idp/profile/logic/RelyingPartyIdPredicateTest.java?rev=5842&r1=5841&r2=5842&view=diff
==============================================================================
--- trunk/idp-profile-impl/src/test/java/net/shibboleth/idp/profile/logic/RelyingPartyIdPredicateTest.java (original)
+++ trunk/idp-profile-impl/src/test/java/net/shibboleth/idp/profile/logic/RelyingPartyIdPredicateTest.java Mon May 5 12:28:26 2014
@@ -43,8 +43,6 @@
@Test
public void testNone() throws ComponentInitializationException {
final RelyingPartyIdPredicate pred = new RelyingPartyIdPredicate();
- pred.setId("test");
- pred.initialize();
Assert.assertFalse(pred.apply(prc));
@@ -55,9 +53,7 @@
@Test
public void testMatch() throws ComponentInitializationException {
final RelyingPartyIdPredicate pred = new RelyingPartyIdPredicate();
- pred.setId("test");
pred.setRelyingPartyIds(Collections.singleton("foo"));
- pred.initialize();
Assert.assertFalse(pred.apply(prc));
@@ -68,9 +64,7 @@
@Test
public void testNoMatch() throws ComponentInitializationException {
final RelyingPartyIdPredicate pred = new RelyingPartyIdPredicate();
- pred.setId("test");
pred.setRelyingPartyIds(Collections.singleton("bar"));
- pred.initialize();
Assert.assertFalse(pred.apply(prc));
More information about the commits
mailing list