[java-identity-provider COMMIT] /trunk/idp-saml-api/src/test/java/net/shibboleth/idp/saml/attribute/encoding/SAMLEnco...

noreply at shibboleth.net noreply at shibboleth.net
Fri Nov 14 15:32:11 EST 2014


Author: scantor
Date: Fri Nov 14 15:32:11 2014
New Revision: 6899

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=6899&view=rev
Log:
IDP-513 - Fix base64 test.

Modified:
    trunk/idp-saml-api/src/test/java/net/shibboleth/idp/saml/attribute/encoding/SAMLEncoderSupportTest.java

Modified: trunk/idp-saml-api/src/test/java/net/shibboleth/idp/saml/attribute/encoding/SAMLEncoderSupportTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-saml-api/src/test/java/net/shibboleth/idp/saml/attribute/encoding/SAMLEncoderSupportTest.java?rev=6899&r1=6898&r2=6899&view=diff
==============================================================================
--- trunk/idp-saml-api/src/test/java/net/shibboleth/idp/saml/attribute/encoding/SAMLEncoderSupportTest.java (original)
+++ trunk/idp-saml-api/src/test/java/net/shibboleth/idp/saml/attribute/encoding/SAMLEncoderSupportTest.java Fri Nov 14 15:32:11 2014
@@ -37,6 +37,7 @@
 import org.opensaml.core.xml.io.MarshallingException;
 import org.opensaml.core.xml.io.UnmarshallingException;
 import org.opensaml.core.xml.schema.XSAny;
+import org.opensaml.core.xml.schema.XSBase64Binary;
 import org.opensaml.core.xml.schema.XSString;
 import org.opensaml.core.xml.schema.impl.XSAnyImpl;
 import org.opensaml.saml.saml2.core.NameID;
@@ -112,8 +113,8 @@
         
         XMLObject obj = SAMLEncoderSupport.encodeByteArrayValue(ATTR, QNAME, BYTE_ARRAY_VALUE, true);
         Assert.assertEquals(obj.getElementQName().getLocalPart(), QNAME_LOCALPART);
-        Assert.assertTrue(obj instanceof XSString);
-        XSString str = (XSString) obj;
+        Assert.assertTrue(obj instanceof XSBase64Binary);
+        XSBase64Binary str = (XSBase64Binary) obj;
         
         Assert.assertEquals(Base64Support.decode(str.getValue()), BYTE_ARRAY_VALUE);
     }



More information about the commits mailing list