Author: rhauch
Date: 2009-03-10 12:51:50 -0400 (Tue, 10 Mar 2009)
New Revision: 768
Added:
trunk/dna-jcr/src/test/resources/repositoryForTckTests.xml
Removed:
trunk/dna-jcr/src/test/resources/repositoryJackrabbitTck.xml
Modified:
trunk/dna-jcr/src/test/java/org/jboss/dna/jcr/JcrTckTest.java
Log:
Renamed the file containing the repository content for our TCK unit tests.
Modified: trunk/dna-jcr/src/test/java/org/jboss/dna/jcr/JcrTckTest.java
===================================================================
--- trunk/dna-jcr/src/test/java/org/jboss/dna/jcr/JcrTckTest.java 2009-03-10 16:37:29 UTC
(rev 767)
+++ trunk/dna-jcr/src/test/java/org/jboss/dna/jcr/JcrTckTest.java 2009-03-10 16:51:50 UTC
(rev 768)
@@ -48,7 +48,8 @@
import org.jboss.dna.graph.property.Path;
/**
- * Test suite to wrap Apache Jackrabbit JCR technology compatibility kit (TCK) unit
tests.
+ * Test suite to wrap Apache Jackrabbit JCR technology compatibility kit (TCK) unit
tests. Note that technically these are not the
+ * actual TCK, but these are unit tests that happen to be similar to (or provided the
basis for) a subset of the TCK.
*/
public class JcrTckTest {
@@ -287,7 +288,7 @@
Path destinationPath =
executionContext.getValueFactories().getPathFactory().create("/");
GraphImporter importer = new GraphImporter(graph);
- URI xmlContent = new
File("src/test/resources/repositoryJackrabbitTck.xml").toURI();
+ URI xmlContent = new
File("src/test/resources/repositoryForTckTests.xml").toURI();
Graph.Batch batch = importer.importXml(xmlContent,
Location.create(destinationPath));
batch.execute();
Copied: trunk/dna-jcr/src/test/resources/repositoryForTckTests.xml (from rev 764,
trunk/dna-jcr/src/test/resources/repositoryJackrabbitTck.xml)
===================================================================
--- trunk/dna-jcr/src/test/resources/repositoryForTckTests.xml
(rev 0)
+++ trunk/dna-jcr/src/test/resources/repositoryForTckTests.xml 2009-03-10 16:51:50 UTC
(rev 768)
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ JBoss DNA (
http://www.jboss.org/dna)
+ ~
+ ~ See the COPYRIGHT.txt file distributed with this work for information
+ ~ regarding copyright ownership. Some portions may be licensed
+ ~ to Red Hat, Inc. under one or more contributor license agreements.
+ ~ See the AUTHORS.txt file in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ JBoss DNA is free software. Unless otherwise indicated, all code in JBoss DNA
+ ~ is licensed to you under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ JBoss DNA is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ ~ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+ ~ for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public License
+ ~ along with this distribution; if not, write to:
+ ~ Free Software Foundation, Inc.
+ ~ 51 Franklin Street, Fifth Floor
+ ~ Boston, MA 02110-1301 USA
+ -->
+<testroot
xmlns:jcr="http://www.jcp.org/jcr/1.0"
+
xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
+
xmlns:dna="http://www.jboss.org/dna/1.0"
+ jcr:primaryType="nt:unstructured">
+ <nt:unstructured jcr:name="node1"
prop1="<foo&foo>" >
+ <!-- This stanza checks for the jcr:xmltext special case for document export. DO
NOT change this element. -->
+ <dna:xmlText jcr:name="jcr:xmltext" jcr:xmlcharacters="This is my
"XML" text!" />
+ </nt:unstructured>
+ <nt:unstructured jcr:name="node2 has a multi-word name"
prop2="bar" />
+ <nt:unstructured jcr:name="node3" />
+ <nt:unstructured jcr:name="node4" />
+</testroot>
\ No newline at end of file
Deleted: trunk/dna-jcr/src/test/resources/repositoryJackrabbitTck.xml
===================================================================
--- trunk/dna-jcr/src/test/resources/repositoryJackrabbitTck.xml 2009-03-10 16:37:29 UTC
(rev 767)
+++ trunk/dna-jcr/src/test/resources/repositoryJackrabbitTck.xml 2009-03-10 16:51:50 UTC
(rev 768)
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ~ JBoss DNA (
http://www.jboss.org/dna)
- ~
- ~ See the COPYRIGHT.txt file distributed with this work for information
- ~ regarding copyright ownership. Some portions may be licensed
- ~ to Red Hat, Inc. under one or more contributor license agreements.
- ~ See the AUTHORS.txt file in the distribution for a full listing of
- ~ individual contributors.
- ~
- ~ JBoss DNA is free software. Unless otherwise indicated, all code in JBoss DNA
- ~ is licensed to you under the terms of the GNU Lesser General Public License as
- ~ published by the Free Software Foundation; either version 2.1 of
- ~ the License, or (at your option) any later version.
- ~
- ~ JBoss DNA is distributed in the hope that it will be useful,
- ~ but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- ~ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
- ~ for more details.
- ~
- ~ You should have received a copy of the GNU Lesser General Public License
- ~ along with this distribution; if not, write to:
- ~ Free Software Foundation, Inc.
- ~ 51 Franklin Street, Fifth Floor
- ~ Boston, MA 02110-1301 USA
- -->
-<testroot
xmlns:jcr="http://www.jcp.org/jcr/1.0"
-
xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
-
xmlns:dna="http://www.jboss.org/dna/1.0"
- jcr:primaryType="nt:unstructured">
- <nt:unstructured jcr:name="node1"
prop1="<foo&foo>" >
- <!-- This stanza checks for the jcr:xmltext special case for document export. DO
NOT change this element. -->
- <dna:xmlText jcr:name="jcr:xmltext" jcr:xmlcharacters="This is my
"XML" text!" />
- </nt:unstructured>
- <nt:unstructured jcr:name="node2 has a multi-word name"
prop2="bar" />
- <nt:unstructured jcr:name="node3" />
- <nt:unstructured jcr:name="node4" />
-</testroot>
\ No newline at end of file