cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1329854 - /cxf/trunk/rt/rs/security/xml/src/test/java/org/apache/cxf/rs/security/saml/sso/filter/AuthnRequestBuilderTest.java
Date Tue, 24 Apr 2012 17:03:04 GMT
Author: coheigea
Date: Tue Apr 24 17:03:04 2012
New Revision: 1329854

URL: http://svn.apache.org/viewvc?rev=1329854&view=rev
Log:
Minor update

Modified:
    cxf/trunk/rt/rs/security/xml/src/test/java/org/apache/cxf/rs/security/saml/sso/filter/AuthnRequestBuilderTest.java

Modified: cxf/trunk/rt/rs/security/xml/src/test/java/org/apache/cxf/rs/security/saml/sso/filter/AuthnRequestBuilderTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/rs/security/xml/src/test/java/org/apache/cxf/rs/security/saml/sso/filter/AuthnRequestBuilderTest.java?rev=1329854&r1=1329853&r2=1329854&view=diff
==============================================================================
--- cxf/trunk/rt/rs/security/xml/src/test/java/org/apache/cxf/rs/security/saml/sso/filter/AuthnRequestBuilderTest.java
(original)
+++ cxf/trunk/rt/rs/security/xml/src/test/java/org/apache/cxf/rs/security/saml/sso/filter/AuthnRequestBuilderTest.java
Tue Apr 24 17:03:04 2012
@@ -51,7 +51,6 @@ public class AuthnRequestBuilderTest ext
         docBuilderFactory.setNamespaceAware(true);
         DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
         Document doc = docBuilder.newDocument();
-        doc.appendChild(doc.createElement("root"));
         
         Issuer issuer = 
             SamlpRequestComponentBuilder.createIssuer("http://localhost:8888/saml2-demo/simple");
@@ -78,6 +77,7 @@ public class AuthnRequestBuilderTest ext
             );
         
         Element policyElement = OpenSAMLUtil.toDom(authnRequest, doc);
+        doc.appendChild(policyElement);
         // String outputString = DOM2Writer.nodeToString(policyElement);
         assertNotNull(policyElement);
     }



Mime
View raw message