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

TestDefinitionParserTest with JDK 11 tests failing when building source code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Minor
    • None
    • 8.4.4, 13.6
    • Easy
    • N/A
    • N/A

    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

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

            Dates

              Created:
              Updated:
              Resolved: