jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1857631 - in /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test: AbstractJCRTest.java api/NodeSetPrimaryTypeTest.java
Date Tue, 16 Apr 2019 08:20:10 GMT
Author: mreutegg
Date: Tue Apr 16 08:20:10 2019
New Revision: 1857631

URL: http://svn.apache.org/viewvc?rev=1857631&view=rev
Log:
JCR-4425: NodeSetPrimaryTypeTest.testSetPrimaryType() must not use nt:activity

Modified:
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/AbstractJCRTest.java
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeSetPrimaryTypeTest.java

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/AbstractJCRTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/AbstractJCRTest.java?rev=1857631&r1=1857630&r2=1857631&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/AbstractJCRTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/AbstractJCRTest.java
Tue Apr 16 08:20:10 2019
@@ -228,6 +228,11 @@ public abstract class AbstractJCRTest ex
     protected String ntQuery;
 
     /**
+     * JCR Name nt:activity using the namespace resolver of the current session.
+     */
+    protected String ntActivity;
+
+    /**
      * Relative path to the test root node.
      */
     protected String testPath;
@@ -386,6 +391,7 @@ public abstract class AbstractJCRTest ex
         mixShareable = superuser.getNamespacePrefix(NS_MIX_URI) + ":shareable";
         mixTitle = superuser.getNamespacePrefix(NS_MIX_URI) + ":title";
         ntQuery = superuser.getNamespacePrefix(NS_NT_URI) + ":query";
+        ntActivity = superuser.getNamespacePrefix(NS_NT_URI) + ":activity";
 
         // setup custom namespaces
         if (isSupported(Repository.LEVEL_2_SUPPORTED)) {

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeSetPrimaryTypeTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeSetPrimaryTypeTest.java?rev=1857631&r1=1857630&r2=1857631&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeSetPrimaryTypeTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeSetPrimaryTypeTest.java
Tue Apr 16 08:20:10 2019
@@ -58,7 +58,9 @@ public class NodeSetPrimaryTypeTest exte
         while (nts.hasNext()) {
             NodeType nt = nts.nextNodeType();
             String ntName = nt.getName();
-            if (!nt.isAbstract() && !ntFrozenNode.equals(ntName)) {
+            if (!nt.isAbstract()
+                    && !ntFrozenNode.equals(ntName)
+                    && !ntActivity.equals(ntName)) {
                 try {
                     node.setPrimaryType(ntName);
                     // property value must be adjusted immediately



Mime
View raw message