cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1350548 - in /cxf/fediz/trunk/plugins/core/src: main/java/org/apache/cxf/fediz/core/metadata/MetadataWriter.java test/java/org/apache/cxf/fediz/core/FederationProcessorTest.java
Date Fri, 15 Jun 2012 09:24:20 GMT
Author: coheigea
Date: Fri Jun 15 09:24:19 2012
New Revision: 1350548

URL: http://svn.apache.org/viewvc?rev=1350548&view=rev
Log:
Fixed a failing test

Modified:
    cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/metadata/MetadataWriter.java
    cxf/fediz/trunk/plugins/core/src/test/java/org/apache/cxf/fediz/core/FederationProcessorTest.java

Modified: cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/metadata/MetadataWriter.java
URL: http://svn.apache.org/viewvc/cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/metadata/MetadataWriter.java?rev=1350548&r1=1350547&r2=1350548&view=diff
==============================================================================
--- cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/metadata/MetadataWriter.java
(original)
+++ cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/metadata/MetadataWriter.java
Fri Jun 15 09:24:19 2012
@@ -295,6 +295,7 @@ public class MetadataWriter {
         // location of the resulting XMLSignature's parent element.
         //DOMSignContext dsc = new DOMSignContext(keyEntry.getPrivateKey(), doc.getDocumentElement());
         DOMSignContext dsc = new DOMSignContext(keyEntry, doc.getDocumentElement());
+        dsc.setIdAttributeNS(doc.getDocumentElement(), null, "ID");
         dsc.setNextSibling(doc.getDocumentElement().getFirstChild());
 
         // Create the XMLSignature, but don't sign it yet.

Modified: cxf/fediz/trunk/plugins/core/src/test/java/org/apache/cxf/fediz/core/FederationProcessorTest.java
URL: http://svn.apache.org/viewvc/cxf/fediz/trunk/plugins/core/src/test/java/org/apache/cxf/fediz/core/FederationProcessorTest.java?rev=1350548&r1=1350547&r2=1350548&view=diff
==============================================================================
--- cxf/fediz/trunk/plugins/core/src/test/java/org/apache/cxf/fediz/core/FederationProcessorTest.java
(original)
+++ cxf/fediz/trunk/plugins/core/src/test/java/org/apache/cxf/fediz/core/FederationProcessorTest.java
Fri Jun 15 09:24:19 2012
@@ -55,7 +55,6 @@ import org.apache.ws.security.util.DOM2W
 import org.joda.time.DateTime;
 import org.junit.AfterClass;
 import org.junit.BeforeClass;
-import org.junit.Ignore;
 import org.opensaml.common.SAMLVersion;
 
 
@@ -183,7 +182,6 @@ public class FederationProcessorTest {
         }
     }
     
-    @Ignore
     @org.junit.Test
     public void validateTokenAndCreateMetadata() throws Exception {
         validateSAML2Token();



Mime
View raw message