Author: vmassol Date: 2007-11-02 15:11:52 +0100 (Fri, 02 Nov 2007) New Revision: 5608
Modified: xwiki-products/xwiki-enterprise/trunk/distribution-test/xmlrpc-tests/src/test/it/com/xpn/xwiki/it/xmlrpc/XhtmlValidityTest.java Log: Fixed failing XMLRPC tests when verifying pages for XHTML compliance for pages that require authorization for viewing. Modified: xwiki-products/xwiki-enterprise/trunk/distribution-test/xmlrpc-tests/src/test/it/com/xpn/xwiki/it/xmlrpc/XhtmlValidityTest.java =================================================================== --- xwiki-products/xwiki-enterprise/trunk/distribution-test/xmlrpc-tests/src/test/it/com/xpn/xwiki/it/xmlrpc/XhtmlValidityTest.java 2007-11-02 13:01:29 UTC (rev 5607) +++ xwiki-products/xwiki-enterprise/trunk/distribution-test/xmlrpc-tests/src/test/it/com/xpn/xwiki/it/xmlrpc/XhtmlValidityTest.java 2007-11-02 14:11:52 UTC (rev 5608) @@ -19,30 +19,11 @@ */ package com.xpn.xwiki.it.xmlrpc; -import java.io.ByteArrayOutputStream; -import java.io.FileInputStream; -import java.io.IOException; -import java.io.OutputStreamWriter; -import java.io.PrintStream; -import java.io.PrintWriter; -import java.io.StringReader; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; -import java.util.zip.ZipEntry; -import java.util.zip.ZipInputStream; - -import javax.xml.XMLConstants; -import javax.xml.transform.Source; -import javax.xml.transform.sax.SAXSource; -import javax.xml.validation.Schema; -import javax.xml.validation.SchemaFactory; -import javax.xml.validation.Validator; - +import com.xpn.xwiki.plugin.packaging.Package; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; - +import org.apache.commons.codec.binary.Base64; import org.codehaus.swizzle.confluence.Confluence; import org.codehaus.swizzle.confluence.Page; import org.dom4j.Document; @@ -59,7 +40,24 @@ import org.xml.sax.SAXException; import org.xml.sax.SAXParseException; -import com.xpn.xwiki.plugin.packaging.Package; +import javax.xml.XMLConstants; +import javax.xml.transform.Source; +import javax.xml.transform.sax.SAXSource; +import javax.xml.validation.Schema; +import javax.xml.validation.SchemaFactory; +import javax.xml.validation.Validator; +import java.io.ByteArrayOutputStream; +import java.io.FileInputStream; +import java.io.IOException; +import java.io.OutputStreamWriter; +import java.io.PrintStream; +import java.io.PrintWriter; +import java.io.StringReader; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; +import java.util.zip.ZipEntry; +import java.util.zip.ZipInputStream; /** * Verifies that all pages in the default wiki are valid XHTML documents using the Confluence XMLRPC @@ -269,6 +267,7 @@ ac.setProfile("css21"); ac.setCssVersion("css21"); ac.setMedium("all"); + ac.setCredential("Basic " + new String(Base64.encodeBase64("Admin:admin".getBytes()))); String output = "text"; int warningLevel = 2; _______________________________________________ notifications mailing list notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications