Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-18925

TestDefinitionParserTest with JDK 11 tests failing when building source code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 8.4.4, 13.6
    • Fix Version/s: None
    • Labels:
    • Environment:
    • Difficulty:
      Easy
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      3 assert statements in the testDefinitionTestParser test in

      org.xwiki.security.authorization.testwikis.internal.parser.TestDefinitionParserTest.java
      

      are failing when trying to build source code with JDK 11.

      Needing to change previously hardcoded values to new hardcoded values:

      1.

      assertThat("There must be 26 access rules on main wiki", rules.size(), equalTo(26));
      

      to

      assertThat("There must be 48 access rules on main wiki", rules.size(), equalTo(48));
      

      2.

      assertThat("There must be 8 access rules on space 1", rules.size(), equalTo(8));

      to

      assertThat("There must be 19 access rules on space 1", rules.size(), equalTo(19));
      

      3.

      assertThat("There must be 7 access rules on document 1", rules.size(), equalTo(7));
      

      to

      assertThat("There must be 18 access rules on document 1", rules.size(), equalTo(18));
      

      Is there a bug in the access rules or are these hardcoding changes ok to make for the tests to pass?

      Attached the error as a text file.

        Attachments

          Activity

            People

            Assignee:
            vmassol Vincent Massol
            Reporter:
            dbear db
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: