chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fguilla...@apache.org
Subject svn commit: r783850 [3/3] - in /incubator/chemistry/trunk/chemistry: chemistry-api/src/main/java/org/apache/chemistry/ chemistry-atompub-client/src/main/java/org/apache/chemistry/atompub/client/ chemistry-atompub-client/src/main/java/org/apache/chemist...
Date Thu, 11 Jun 2009 17:09:48 GMT
Modified: incubator/chemistry/trunk/chemistry/chemistry-commons/src/test/java/org/apache/chemistry/xml/stax/TestXMLWriter.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-commons/src/test/java/org/apache/chemistry/xml/stax/TestXMLWriter.java?rev=783850&r1=783040&r2=783850&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-commons/src/test/java/org/apache/chemistry/xml/stax/TestXMLWriter.java
(original)
+++ incubator/chemistry/trunk/chemistry/chemistry-commons/src/test/java/org/apache/chemistry/xml/stax/TestXMLWriter.java
Thu Jun 11 17:09:45 2009
@@ -15,7 +15,7 @@
  *     Bogdan Stefanescu, Nuxeo
  *     Florent Guillaume, Nuxeo
  */
-package org.apache.chemistry.atompub.client.common.xml;
+package org.apache.chemistry.xml.stax;
 
 import java.io.IOException;
 import java.io.InputStream;
@@ -23,17 +23,22 @@
 import java.io.Reader;
 import java.io.StringWriter;
 import java.io.Writer;
-import java.net.URL;
 
-import junit.framework.TestCase;
+import javax.xml.namespace.QName;
 
-import org.apache.chemistry.atompub.CMIS;
+import junit.framework.TestCase;
 
 /**
  *
  */
 public class TestXMLWriter extends TestCase {
 
+    public static final String CMIS_NS = "http://docs.oasis-open.org/ns/cmis/core/200901";
+
+    public static final String CMIS_PREFIX = "cmis";
+
+    public static final QName OBJECT = new QName(CMIS_NS, "object", CMIS_PREFIX);
+
     public static String toString(Reader r) throws IOException {
         char[] chars = new char[1000]; // big enough for this test
         int pos = 0;
@@ -48,10 +53,10 @@
     public void testXMLWriter() throws Exception {
         Writer w = new StringWriter();
         XMLWriter x = new XMLWriter(w, 2);
-        x.start().element("service").xmlns("cmis", CMIS.CMIS_NS).attr(
-                "version", "1.0").start().element("ws1").attr("k", "v").content(
-                "test").element("ws2").attr("key", "val").start().element(
-                CMIS.OBJECT).end().element("ws3").attr("key", "val").end().end();
+        x.start().element("service").xmlns("cmis", CMIS_NS).attr("version",
+                "1.0").start().element("ws1").attr("k", "v").content("test").element(
+                "ws2").attr("key", "val").start().element(OBJECT).end().element(
+                "ws3").attr("key", "val").end().end();
         String actual = w.toString();
 
         InputStream stream = this.getClass().getClassLoader().getResourceAsStream(

Propchange: incubator/chemistry/trunk/chemistry/chemistry-commons/src/test/resources/xmlwriter-output.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/chemistry/trunk/chemistry/chemistry-commons/src/test/resources/xmlwriter-output.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: incubator/chemistry/trunk/chemistry/chemistry-commons/src/test/resources/xmlwriter-output.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: incubator/chemistry/trunk/chemistry/chemistry-tests/src/test/java/org/apache/chemistry/test/TestAtomPubClientServer.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-tests/src/test/java/org/apache/chemistry/test/TestAtomPubClientServer.java?rev=783850&r1=783849&r2=783850&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-tests/src/test/java/org/apache/chemistry/test/TestAtomPubClientServer.java
(original)
+++ incubator/chemistry/trunk/chemistry/chemistry-tests/src/test/java/org/apache/chemistry/test/TestAtomPubClientServer.java
Thu Jun 11 17:09:45 2009
@@ -26,9 +26,9 @@
 import org.apache.chemistry.Connection;
 import org.apache.chemistry.Folder;
 import org.apache.chemistry.Repository;
+import org.apache.chemistry.atompub.client.APPRepository;
 import org.apache.chemistry.atompub.client.ContentManager;
-import org.apache.chemistry.atompub.client.app.APPContentManager;
-import org.apache.chemistry.atompub.client.app.model.APPRepository;
+import org.apache.chemistry.atompub.client.connector.APPContentManager;
 import org.apache.chemistry.atompub.server.CMISServlet;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
@@ -47,7 +47,7 @@
 
     public static final String HOST = "0.0.0.0";
 
-    public static final int PORT = 8080;
+    public static final int PORT = 8285;
 
     public static final String SERVLET_PATH = "/cmis";
 



Mime
View raw message