[java-identity-provider COMMIT] /trunk/idp-consent/src/test/java/net/shibboleth/idp/consent/ConsentTestingSupport.java
noreply at shibboleth.net
noreply at shibboleth.net
Tue Nov 25 03:48:51 EST 2014
Author: rdw
Date: Tue Nov 25 03:48:51 2014
New Revision: 7009
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=7009&view=rev
Log:
Gotta love a JRE update that changes the implied order insides Sets. Keeps us on our toes.
Change test support to use a List for input variables rather than a Set. That guratantees the order and allows (I hope) Java8 to pass)
Modified:
trunk/idp-consent/src/test/java/net/shibboleth/idp/consent/ConsentTestingSupport.java
Modified: trunk/idp-consent/src/test/java/net/shibboleth/idp/consent/ConsentTestingSupport.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-consent/src/test/java/net/shibboleth/idp/consent/ConsentTestingSupport.java?rev=7009&r1=7008&r2=7009&view=diff
==============================================================================
--- trunk/idp-consent/src/test/java/net/shibboleth/idp/consent/ConsentTestingSupport.java (original)
+++ trunk/idp-consent/src/test/java/net/shibboleth/idp/consent/ConsentTestingSupport.java Tue Nov 25 03:48:51 2014
@@ -28,6 +28,7 @@
import net.shibboleth.idp.consent.storage.ConsentResult;
import net.shibboleth.idp.consent.storage.StorageIndex;
+import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
/**
@@ -59,7 +60,7 @@
attribute1.setValues(Sets.newHashSet(value1));
final IdPAttribute attribute2 = new IdPAttribute("attribute2");
- attribute2.setValues(Sets.newHashSet(value1, value2));
+ attribute2.setValues(Lists.newArrayList(value1, value2));
final IdPAttribute attribute3 = new IdPAttribute("attribute3");
attribute3.setValues(Sets.newHashSet(value3));
More information about the commits
mailing list