Details
-
Bug
-
Resolution: Cannot Reproduce
-
Minor
-
None
-
8.4.4, 13.6
-
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Java version: 11.0.11, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk-11.0.11.jdk/Contents/Home
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.14.6", arch: "x86_64", family: "mac"Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Java version: 11.0.11, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk-11.0.11.jdk/Contents/Home Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "10.14.6", arch: "x86_64", family: "mac"
-
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.