Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-524

TCK: PredicatesTest does not respect testroot configuration property

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1
    • Component/s: test
    • Labels:
      None

      Description

      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);

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dpitfiel David Pitfield
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: