[java-identity-provider COMMIT] /trunk/idp-attribute-resolver-impl/src/test/resources/data/net/shibboleth/idp/attribu...
noreply at shibboleth.net
noreply at shibboleth.net
Sat Jan 24 05:12:12 EST 2015
Author: rdw
Date: Sat Jan 24 05:12:12 2015
New Revision: 7277
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=7277&view=rev
Log:
IDP-573 Reintoduce the "allow null as values" semantic into the *simulated* V2 attribute. Fix V8 tests
Added:
trunk/idp-attribute-resolver-impl/src/test/resources/data/net/shibboleth/idp/attribute/resolver/impl/ad/jdk8/nullValue.script
- copied, changed from r7273, trunk/idp-attribute-resolver-impl/src/test/resources/data/net/shibboleth/idp/attribute/resolver/impl/ad/nullValue.script
Copied: trunk/idp-attribute-resolver-impl/src/test/resources/data/net/shibboleth/idp/attribute/resolver/impl/ad/jdk8/nullValue.script (from r7273, trunk/idp-attribute-resolver-impl/src/test/resources/data/net/shibboleth/idp/attribute/resolver/impl/ad/nullValue.script)
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-attribute-resolver-impl/src/test/resources/data/net/shibboleth/idp/attribute/resolver/impl/ad/jdk8/nullValue.script?p2=trunk/idp-attribute-resolver-impl/src/test/resources/data/net/shibboleth/idp/attribute/resolver/impl/ad/jdk8/nullValue.script&p1=trunk/idp-attribute-resolver-impl/src/test/resources/data/net/shibboleth/idp/attribute/resolver/impl/ad/nullValue.script&r1=7273&r2=7277&rev=7277&view=diff
==============================================================================
--- trunk/idp-attribute-resolver-impl/src/test/resources/data/net/shibboleth/idp/attribute/resolver/impl/ad/nullValue.script (original)
+++ trunk/idp-attribute-resolver-impl/src/test/resources/data/net/shibboleth/idp/attribute/resolver/impl/ad/jdk8/nullValue.script Sat Jan 24 05:12:12 2015
@@ -1,1 +1,5 @@
-Scripted.addValue(null);
+nativeAttribute = Scripted.getNativeAttribute();
+tmp = new (Java.type("java.util.HashSet"));
+val = Java.type("net.shibboleth.idp.attribute.StringAttributeValue").valueOf(null);
+tmp.add(val);
+nativeAttribute.setValues(tmp);
More information about the commits
mailing list