jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r704144 - in /jackrabbit/sandbox/jackrabbit-test-harness/compatibility: ./ base/ base/src/ base/src/main/ base/src/main/java/ base/src/main/java/org/ base/src/main/java/org/apache/ base/src/main/java/org/apache/jackrabbit/ base/src/main/jav...
Date Mon, 13 Oct 2008 15:48:39 GMT
Author: jukka
Date: Mon Oct 13 08:48:37 2008
New Revision: 704144

URL: http://svn.apache.org/viewvc?rev=704144&view=rev
Log:
test-harness: Added a basic backwards compatibility test suite.

Added:
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/assembly.xml   (with props)
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/pom.xml   (with props)
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/java/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/java/org/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/java/org/apache/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/java/org/apache/jackrabbit/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/java/org/apache/jackrabbit/harness/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/java/org/apache/jackrabbit/harness/compatibility/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/java/org/apache/jackrabbit/harness/compatibility/AbstractRepositoryTest.java
  (with props)
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/resources/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/resources/log4j.properties
  (with props)
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/pom.xml   (with props)
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/src/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/src/test/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/src/test/java/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/src/test/java/org/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/src/test/java/org/apache/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/src/test/java/org/apache/jackrabbit/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/src/test/java/org/apache/jackrabbit/harness/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/src/test/java/org/apache/jackrabbit/harness/compatibility/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
  (with props)
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/pom.xml   (with props)
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/pom.xml   (with props)
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/src/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/src/test/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/src/test/java/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/src/test/java/org/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/src/test/java/org/apache/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/src/test/java/org/apache/jackrabbit/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/src/test/java/org/apache/jackrabbit/harness/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/src/test/java/org/apache/jackrabbit/harness/compatibility/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/src/test/java/org/apache/jackrabbit/harness/compatibility/VerifyRepositoryTest.java
  (with props)

Added: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/assembly.xml
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-test-harness/compatibility/assembly.xml?rev=704144&view=auto
==============================================================================
--- jackrabbit/sandbox/jackrabbit-test-harness/compatibility/assembly.xml (added)
+++ jackrabbit/sandbox/jackrabbit-test-harness/compatibility/assembly.xml Mon Oct 13 08:48:37
2008
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+  -->
+
+<assembly>
+  <id>repository</id>
+  <formats>
+    <format>jar</format>
+  </formats>
+  <baseDirectory>${project.artifactId}</baseDirectory>
+  <fileSets>
+    <fileSet>
+      <directory>target/repository</directory>
+      <outputDirectory></outputDirectory>
+    </fileSet>
+  </fileSets>
+</assembly>

Propchange: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/assembly.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/pom.xml?rev=704144&view=auto
==============================================================================
--- jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/pom.xml (added)
+++ jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/pom.xml Mon Oct 13 08:48:37
2008
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+  -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+                             http://maven.apache.org/maven-v4_0_0.xsd ">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.jackrabbit.harness</groupId>
+    <artifactId>compatibility</artifactId>
+    <version>SNAPSHOT</version>
+  </parent>
+
+  <artifactId>compatibility-base</artifactId>
+  <name>Backwards Compatibility Test Utilities</name>
+
+  <dependencies>
+    <dependency>
+      <groupId>javax.jcr</groupId>
+      <artifactId>jcr</artifactId>
+      <version>1.0</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.jackrabbit</groupId>
+      <artifactId>jackrabbit-core</artifactId>
+      <version>1.4</version> <!-- overridden by downstream projects -->
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>commons-io</groupId>
+      <artifactId>commons-io</artifactId>
+      <version>1.4</version>
+    </dependency>
+  </dependencies>
+
+</project>
+

Propchange: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/java/org/apache/jackrabbit/harness/compatibility/AbstractRepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/java/org/apache/jackrabbit/harness/compatibility/AbstractRepositoryTest.java?rev=704144&view=auto
==============================================================================
--- jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/java/org/apache/jackrabbit/harness/compatibility/AbstractRepositoryTest.java
(added)
+++ jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/java/org/apache/jackrabbit/harness/compatibility/AbstractRepositoryTest.java
Mon Oct 13 08:48:37 2008
@@ -0,0 +1,174 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.jackrabbit.harness.compatibility;
+
+import java.io.ByteArrayInputStream;
+import java.io.File;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.util.Calendar;
+
+import javax.jcr.Node;
+import javax.jcr.Session;
+import javax.jcr.SimpleCredentials;
+import javax.jcr.Value;
+import javax.jcr.version.Version;
+import javax.jcr.version.VersionHistory;
+
+import org.apache.commons.io.FileUtils;
+import org.apache.commons.io.IOUtils;
+import org.apache.jackrabbit.core.RepositoryImpl;
+import org.apache.jackrabbit.core.config.RepositoryConfig;
+
+public class AbstractRepositoryTest {
+
+    protected void doCreateRepository(InputStream xml) throws Exception {
+        File directory = new File("target/repository");
+        File configuration = new File(directory, "repository.xml");
+
+        try {
+            OutputStream output = FileUtils.openOutputStream(configuration);
+            try {
+                IOUtils.copy(xml, output);
+            } finally {
+                output.close();
+            }
+        } finally {
+            xml.close();
+        }
+
+        RepositoryConfig config = RepositoryConfig.create(
+                configuration.getPath(), directory.getPath());
+        RepositoryImpl repository = RepositoryImpl.create(config);
+        try {
+            Session session = repository.login(
+                    new SimpleCredentials("admin", "admin".toCharArray()));
+            try {
+                createTestData(session);
+                verifyTestData(session);
+            } finally {
+                session.logout();
+            }
+        } finally {
+            repository.shutdown();
+        }
+    }
+
+    protected void doVerifyRepository(String name) throws Exception {
+        File directory = new File("target/dependency", name);
+        File configuration = new File(directory, "repository.xml");
+
+        RepositoryConfig config = RepositoryConfig.create(
+                configuration.getPath(), directory.getPath());
+        RepositoryImpl repository = RepositoryImpl.create(config);
+        try {
+            Session session = repository.login(
+                    new SimpleCredentials("admin", "admin".toCharArray()));
+            try {
+                verifyTestData(session);
+            } finally {
+                session.logout();
+            }
+        } finally {
+            repository.shutdown();
+        }
+    }
+
+    private void createTestData(Session session) throws Exception {
+        Calendar calendar = Calendar.getInstance();
+        calendar.setTimeInMillis(1234567890);
+
+        Node root = session.getRootNode();
+
+        Node test = root.addNode("test", "nt:unstructured");
+
+        Node versionable = test.addNode("versionable", "nt:folder");
+        versionable.addMixin("mix:versionable");
+        session.save();
+
+        Version version = versionable.checkin();
+        VersionHistory history = versionable.getVersionHistory();
+        history.addVersionLabel(version.getName(), "label", false);
+
+        Node properties = test.addNode("properties", "nt:unstructured");
+        properties.setProperty("boolean", true);
+        properties.setProperty("date", calendar);
+        properties.setProperty("double", 0.123456789);
+        properties.setProperty("long", 1234567890);
+        properties.setProperty("reference", versionable);
+        properties.setProperty("string", "test");
+        properties.setProperty("multiple", new String[] { "a", "b", "c" });
+        properties.setProperty("binary", new ByteArrayInputStream(
+                new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }));
+        session.save();
+    }
+
+    private void verifyTestData(Session session) throws Exception {
+        Node root = session.getRootNode();
+
+        assert root.hasNode("test");
+        Node test = root.getNode("test");
+
+        assert test.hasNode("versionable");
+        Node versionable = test.getNode("versionable");
+        assert versionable.isNodeType("nt:folder");
+        assert versionable.isNodeType("mix:versionable");
+
+        Version version = versionable.getBaseVersion();
+        VersionHistory history = versionable.getVersionHistory();
+        String[] labels = history.getVersionLabels(version);
+        assert labels.length == 1;
+        assert labels[0].equals("label");
+
+        assert test.hasNode("properties");
+        Node properties = test.getNode("properties");
+        assert properties.isNodeType("nt:unstructured");
+        assert properties.getProperty("boolean").getBoolean();
+        Calendar calendar = properties.getProperty("date").getDate();
+        assert calendar.getTimeInMillis() == 1234567890;
+        assert properties.getProperty("double").getDouble() == 0.123456789;
+        assert properties.getProperty("long").getLong() == 1234567890;
+        Node reference = properties.getProperty("reference").getNode();
+        assert reference.isSame(versionable);
+        assert properties.getProperty("string").getString().equals("test");
+
+        Value[] multiple = properties.getProperty("multiple").getValues();
+        assert multiple.length == 3;
+        assert multiple[0].getString().equals("a");
+        assert multiple[1].getString().equals("b");
+        assert multiple[2].getString().equals("c");
+
+        InputStream stream = properties.getProperty("binary").getStream();
+        try {
+            assert stream.read() == 0;
+            assert stream.read() == 1;
+            assert stream.read() == 2;
+            assert stream.read() == 3;
+            assert stream.read() == 4;
+            assert stream.read() == 5;
+            assert stream.read() == 6;
+            assert stream.read() == 7;
+            assert stream.read() == 8;
+            assert stream.read() == 9;
+            assert stream.read() == -1;
+        } finally {
+            stream.close();
+        }
+    }
+
+}
+

Propchange: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/java/org/apache/jackrabbit/harness/compatibility/AbstractRepositoryTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/resources/log4j.properties
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/resources/log4j.properties?rev=704144&view=auto
==============================================================================
--- jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/resources/log4j.properties
(added)
+++ jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/resources/log4j.properties
Mon Oct 13 08:48:37 2008
@@ -0,0 +1,21 @@
+#  Licensed to the Apache Software Foundation (ASF) under one or more
+#  contributor license agreements.  See the NOTICE file distributed with
+#  this work for additional information regarding copyright ownership.
+#  The ASF licenses this file to You under the Apache License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with
+#  the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+log4j.rootLogger=INFO, file
+log4j.appender.file=org.apache.log4j.FileAppender
+log4j.appender.file.File=target/jcr.log
+log4j.appender.file.layout=org.apache.log4j.PatternLayout
+log4j.appender.file.layout.ConversionPattern=%d{dd.MM.yyyy HH:mm:ss} *%-5p* [%t] %c{1}: %m
(%F, line %L)\n
+

Propchange: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/resources/log4j.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/pom.xml?rev=704144&view=auto
==============================================================================
--- jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/pom.xml (added)
+++ jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/pom.xml Mon Oct 13 08:48:37
2008
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+  -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+                             http://maven.apache.org/maven-v4_0_0.xsd ">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.jackrabbit.harness</groupId>
+    <artifactId>compatibility</artifactId>
+    <version>SNAPSHOT</version>
+  </parent>
+
+  <artifactId>compatibility-create10</artifactId>
+  <name>Create Jackrabbit 1.0 Repository</name>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.jackrabbit.harness</groupId>
+      <artifactId>compatibility-base</artifactId>
+      <version>${project.version}</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.jackrabbit</groupId>
+      <artifactId>jackrabbit-core</artifactId>
+      <version>1.0</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <configuration>
+          <descriptors>
+            <descriptor>../assembly.xml</descriptor>
+          </descriptors>
+        </configuration>
+        <executions>
+          <execution>
+            <id>make-assembly</id>
+            <phase>package</phase>
+            <goals>
+              <goal>single</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>
+

Propchange: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java?rev=704144&view=auto
==============================================================================
--- jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
(added)
+++ jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
Mon Oct 13 08:48:37 2008
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.jackrabbit.harness.compatibility;
+
+import org.apache.jackrabbit.core.RepositoryImpl;
+
+public class CreateRepositoryTest extends AbstractRepositoryTest {
+
+    public void testCreateRepository() throws Exception {
+        doCreateRepository(
+                RepositoryImpl.class.getResourceAsStream("repository.xml"));
+    }
+
+}

Propchange: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-test-harness/compatibility/pom.xml?rev=704144&view=auto
==============================================================================
--- jackrabbit/sandbox/jackrabbit-test-harness/compatibility/pom.xml (added)
+++ jackrabbit/sandbox/jackrabbit-test-harness/compatibility/pom.xml Mon Oct 13 08:48:37 2008
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+  -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+                             http://maven.apache.org/maven-v4_0_0.xsd ">
+  <modelVersion>4.0.0</modelVersion>
+
+  <!-- =================================================================== -->
+  <!-- P R O J E C T  D E S C R I P T I O N                                -->
+  <!-- =================================================================== -->
+
+  <parent>
+    <groupId>org.apache</groupId>
+    <artifactId>apache</artifactId>
+    <version>4</version>
+  </parent>
+
+  <groupId>org.apache.jackrabbit.harness</groupId>
+  <artifactId>compatibility</artifactId>
+  <name>Compatibility Test</name>
+  <version>SNAPSHOT</version>
+  <packaging>pom</packaging>
+
+  <modules>
+    <module>base</module>
+    <module>create10</module>
+    <module>verify</module>
+  </modules>
+
+  <build>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <artifactId>maven-compiler-plugin</artifactId>
+          <configuration>
+            <source>1.5</source>
+            <target>1.5</target>
+          </configuration>
+        </plugin>
+        <plugin>
+          <artifactId>maven-surefire-plugin</artifactId>
+          <configuration>
+            <systemProperties>
+              <property>
+                <name>derby.stream.error.file</name>
+                <value>target/derby.log</value>
+              </property>
+            </systemProperties>
+          </configuration>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+  </build>
+
+</project>
+

Propchange: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/pom.xml?rev=704144&view=auto
==============================================================================
--- jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/pom.xml (added)
+++ jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/pom.xml Mon Oct 13 08:48:37
2008
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+  -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+                             http://maven.apache.org/maven-v4_0_0.xsd ">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.jackrabbit.harness</groupId>
+    <artifactId>compatibility</artifactId>
+    <version>SNAPSHOT</version>
+  </parent>
+
+  <artifactId>compatibility-verify</artifactId>
+  <name>Verify Jackrabbit Backwards Compatibility</name>
+
+  <dependencies>
+    <dependency>
+      <groupId>${project.groupId}</groupId>
+      <artifactId>compatibility-base</artifactId>
+      <version>${project.version}</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>${project.groupId}</groupId>
+      <artifactId>compatibility-create10</artifactId>
+      <version>${project.version}</version>
+      <classifier>repository</classifier>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.jackrabbit</groupId>
+      <artifactId>jackrabbit-core</artifactId>
+      <version>1.4.6</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+      <version>1.3.0</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+         <artifactId>maven-dependency-plugin</artifactId>
+         <executions>
+           <execution>
+             <id>unpack-repositories</id>
+             <phase>compile</phase>
+             <goals>
+               <goal>unpack-dependencies</goal>
+             </goals>
+             <configuration>
+               <includeGroupIds>${project.groupId}</includeGroupIds>
+               <excludeArtifactIds>compatibility-base</excludeArtifactIds>
+               <excludes>META-INF,META-INF/**/*</excludes>
+             </configuration>
+           </execution>
+         </executions>
+       </plugin>
+    </plugins>
+  </build>
+
+</project>
+

Propchange: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/src/test/java/org/apache/jackrabbit/harness/compatibility/VerifyRepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/src/test/java/org/apache/jackrabbit/harness/compatibility/VerifyRepositoryTest.java?rev=704144&view=auto
==============================================================================
--- jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/src/test/java/org/apache/jackrabbit/harness/compatibility/VerifyRepositoryTest.java
(added)
+++ jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/src/test/java/org/apache/jackrabbit/harness/compatibility/VerifyRepositoryTest.java
Mon Oct 13 08:48:37 2008
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.jackrabbit.harness.compatibility;
+
+public class VerifyRepositoryTest extends AbstractRepositoryTest {
+
+    public void testVerify10Repository() throws Exception {
+        doVerifyRepository("compatibility-create10");
+    }
+
+}

Propchange: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/verify/src/test/java/org/apache/jackrabbit/harness/compatibility/VerifyRepositoryTest.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message