[ http://issues.apache.org/jira/browse/JCR-524?page=all ]
Marcel Reutegger resolved JCR-524. ---------------------------------- Fix Version/s: 1.1 Resolution: Fixed Fixed as proposed. svn revision: 428311 Thank you for reporting this issue. > TCK: PredicatesTest does not respect testroot configuration property > -------------------------------------------------------------------- > > Key: JCR-524 > URL: http://issues.apache.org/jira/browse/JCR-524 > Project: Jackrabbit > Issue Type: Bug > Components: test > Reporter: David Pitfield > Fix For: 1.1 > > > Test does not respect testroot configuration property. > Proposal: use testroot configuration property in constructing the test > queries. > --- PredicatesTest.java (revision 422074) > +++ PredicatesTest.java (working copy) > @@ -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); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira