jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r998249 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/SQLJoinTest.java
Date Fri, 17 Sep 2010 18:49:57 GMT
Author: jukka
Date: Fri Sep 17 18:49:57 2010
New Revision: 998249

URL: http://svn.apache.org/viewvc?rev=998249&view=rev
Log:
JCR-2663: JCR unit tests use invalid queries

Fixed as suggested by Randall Hauch

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

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/SQLJoinTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/SQLJoinTest.java?rev=998249&r1=998248&r2=998249&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/SQLJoinTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/SQLJoinTest.java
Fri Sep 17 18:49:57 2010
@@ -63,7 +63,7 @@ public class SQLJoinTest extends Abstrac
         query.append(" WHERE ");
         query.append(testNodeType).append(".").append(jcrPath);
         query.append(" = ");
-        query.append(mixReferenceable).append(".").append(jcrPath);
+        query.append(testMixin).append(".").append(jcrPath);
         query.append(" AND ").append(jcrPath).append(" LIKE ");
         query.append("'").append(testRoot).append("/%'");
 
@@ -92,11 +92,11 @@ public class SQLJoinTest extends Abstrac
         assertFalse("Node at " + n2.getPath() + " should not have mixin " + testMixin, n2.isNodeType(testMixin));
 
         StringBuffer query = new StringBuffer("SELECT * FROM ");
-        query.append(ntBase).append(", ").append(testMixin);
+        query.append(testNodeType).append(", ").append(testMixin);
         query.append(" WHERE ");
         query.append(testNodeType).append(".").append(jcrPath);
         query.append(" = ");
-        query.append(mixReferenceable).append(".").append(jcrPath);
+        query.append(testMixin).append(".").append(jcrPath);
         query.append(" AND ").append(jcrPath).append(" LIKE ");
         query.append("'").append(testRoot).append("/%'");
 
@@ -120,7 +120,7 @@ public class SQLJoinTest extends Abstrac
         query.append(" WHERE ");
         query.append(testNodeType).append(".").append(jcrPath);
         query.append(" = ");
-        query.append(mixReferenceable).append(".").append(jcrPath);
+        query.append(ntBase).append(".").append(jcrPath);
         query.append(" AND ").append(jcrPath).append(" LIKE ");
         query.append("'").append(testRoot).append("/%'");
 



Mime
View raw message