jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1157054 - in /jackrabbit/sandbox/spi2microkernel: ./ src/test/java/org/apache/jackrabbit/spi2microkernel/tck/ src/test/java/org/apache/jackrabbit/spi2microkernel/test/ src/test/resources/
Date Fri, 12 Aug 2011 11:25:27 GMT
Author: mduerig
Date: Fri Aug 12 11:25:27 2011
New Revision: 1157054

URL: http://svn.apache.org/viewvc?rev=1157054&view=rev
Log:
spi2microkernel (WIP)
- tests: move TCK tests to Maven profile tck

Added:
    jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/
      - copied from r1157051, jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/test/
    jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/TckTests.java
Removed:
    jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/TestAll.java
    jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/test/
Modified:
    jackrabbit/sandbox/spi2microkernel/pom.xml
    jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/RepositoryStubImpl.java
    jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/TestContentLoader.java
    jackrabbit/sandbox/spi2microkernel/src/test/resources/repositoryStubImpl.properties

Modified: jackrabbit/sandbox/spi2microkernel/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/pom.xml?rev=1157054&r1=1157053&r2=1157054&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/pom.xml (original)
+++ jackrabbit/sandbox/spi2microkernel/pom.xml Fri Aug 12 11:25:27 2011
@@ -111,4 +111,24 @@
         </plugins>
     </build>
 
+    <profiles>
+        <profile>
+            <id>tck</id>
+
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-surefire-plugin</artifactId>
+                        <version>2.9</version>
+                        <configuration>
+                            <includes>
+                                <include>**/TckTests.java</include>
+                            </includes>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>

Modified: jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/RepositoryStubImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/RepositoryStubImpl.java?rev=1157054&r1=1157051&r2=1157054&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/RepositoryStubImpl.java
(original)
+++ jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/RepositoryStubImpl.java
Fri Aug 12 11:25:27 2011
@@ -14,7 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.jackrabbit.spi2microkernel.test;
+package org.apache.jackrabbit.spi2microkernel.tck;
 
 import org.apache.jackrabbit.spi2microkernel.Spi2MicrokernelRepositoryServiceFactory;
 import org.apache.jackrabbit.test.NotExecutableException;

Added: jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/TckTests.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/TckTests.java?rev=1157054&view=auto
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/TckTests.java
(added)
+++ jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/TckTests.java
Fri Aug 12 11:25:27 2011
@@ -0,0 +1,32 @@
+/*
+ * 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.spi2microkernel.tck;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import org.apache.jackrabbit.test.JCRTestSuite;
+
+public class TckTests extends TestCase {
+
+    static {
+        System.setProperty("javax.jcr.tck.properties", "src/test/resources/repositoryStubImpl.properties");
+    }
+
+    public static Test suite() {
+        return new JCRTestSuite();
+    }
+}

Modified: jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/TestContentLoader.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/TestContentLoader.java?rev=1157054&r1=1157051&r2=1157054&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/TestContentLoader.java
(original)
+++ jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/tck/TestContentLoader.java
Fri Aug 12 11:25:27 2011
@@ -14,7 +14,7 @@
  * License for the specific language governing permissions and limitations under
  * the License.
  */
-package org.apache.jackrabbit.spi2microkernel.test;
+package org.apache.jackrabbit.spi2microkernel.tck;
 
 import org.apache.jackrabbit.commons.JcrUtils;
 

Modified: jackrabbit/sandbox/spi2microkernel/src/test/resources/repositoryStubImpl.properties
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/test/resources/repositoryStubImpl.properties?rev=1157054&r1=1157053&r2=1157054&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/test/resources/repositoryStubImpl.properties (original)
+++ jackrabbit/sandbox/spi2microkernel/src/test/resources/repositoryStubImpl.properties Fri
Aug 12 11:25:27 2011
@@ -14,7 +14,7 @@
 #  limitations under the License.
 
 # Use this stub implementation instead
-javax.jcr.tck.repository_stub_impl=org.apache.jackrabbit.spi2microkernel.test.RepositoryStubImpl
+javax.jcr.tck.repository_stub_impl=org.apache.jackrabbit.spi2microkernel.tck.RepositoryStubImpl
 
 # repository factory class name
 javax.jcr.tck.repository.factory=org.apache.jackrabbit.spi2microkernel.RepositoryFactoryImpl



Mime
View raw message