You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by mr...@apache.org on 2006/08/03 12:35:59 UTC
svn commit: r428311 -
/jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/query/PredicatesTest.java
Author: mreutegg
Date: Thu Aug 3 03:35:59 2006
New Revision: 428311
URL: http://svn.apache.org/viewvc?rev=428311&view=rev
Log:
JCR-524: TCK: PredicatesTest does not respect testroot configuration property
Modified:
jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/query/PredicatesTest.java
Modified: jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/query/PredicatesTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/query/PredicatesTest.java?rev=428311&r1=428310&r2=428311&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/query/PredicatesTest.java (original)
+++ jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/query/PredicatesTest.java Thu Aug 3 03:35:59 2006
@@ -78,7 +78,7 @@
* @throws RepositoryException
*/
public void testEquality() throws RepositoryException {
- String stmt = "/" + jcrRoot + "/*[@" + jcrPrimaryType + "='" + nodeTypeName + "']";
+ String stmt = "/" + jcrRoot + "/" + testPath+ "/*[@" + jcrPrimaryType + "='" + nodeTypeName + "']";
try {
qm.createQuery(stmt, Query.XPATH);
@@ -93,7 +93,7 @@
* @throws RepositoryException
*/
public void testCombinedOr() throws RepositoryException {
- String stmt = "/" + jcrRoot + "/*[@" + jcrPrimaryType + "='" + nodeTypeName + "' or @" + jcrPrimaryType + "='" + ntBase + "']";
+ String stmt = "/" + jcrRoot + "/" + testPath+ "/*[@" + jcrPrimaryType + "='" + nodeTypeName + "' or @" + jcrPrimaryType + "='" + ntBase + "']";
try {
qm.createQuery(stmt, Query.XPATH);
@@ -108,7 +108,7 @@
* @throws RepositoryException
*/
public void testOr() throws RepositoryException {
- String stmt = "/" + jcrRoot + "/*[@" + jcrPrimaryType + " or @" + jcrMixinTypes + "]";
+ String stmt = "/" + jcrRoot + "/" + testPath+ "/*[@" + jcrPrimaryType + " or @" + jcrMixinTypes + "]";
try {
qm.createQuery(stmt, Query.XPATH);
@@ -123,7 +123,7 @@
* @throws RepositoryException
*/
public void testAnd() throws RepositoryException {
- String stmt = "/" + jcrRoot + "/*[@" + jcrPrimaryType + " and @" + jcrMixinTypes + "]";
+ String stmt = "/" + jcrRoot + "/" + testPath+ "/*[@" + jcrPrimaryType + " and @" + jcrMixinTypes + "]";
try {
qm.createQuery(stmt, Query.XPATH);
@@ -138,7 +138,7 @@
* @throws RepositoryException
*/
public void testCombinedAnd() throws RepositoryException {
- String stmt = "/" + jcrRoot + "/*[@" + jcrPrimaryType + "='" + nodeTypeName + "' and @" + jcrPrimaryType + "='" + ntBase + "']";
+ String stmt = "/" + jcrRoot + "/" + testPath+ "/*[@" + jcrPrimaryType + "='" + nodeTypeName + "' and @" + jcrPrimaryType + "='" + ntBase + "']";
try {
qm.createQuery(stmt, Query.XPATH);