fix tests

This commit is contained in:
Anthony Calosa
2024-09-26 13:17:02 +08:00
parent c07e3b99a3
commit a7c69da4e6
2 changed files with 12 additions and 3 deletions

View File

@@ -310,7 +310,7 @@
<dependency> <dependency>
<groupId>org.objenesis</groupId> <groupId>org.objenesis</groupId>
<artifactId>objenesis</artifactId> <artifactId>objenesis</artifactId>
<version>3.3</version> <version>3.4</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>

13
pom.xml
View File

@@ -126,9 +126,18 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version> <version>3.1.2</version>
<configuration> <configuration>
<argLine>--add-opens java.base/java.lang=ALL-UNNAMED</argLine> <argLine>
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/java.time=ALL-UNNAMED
--add-opens java.base/java.text=ALL-UNNAMED
--add-opens java.base/java.util=ALL-UNNAMED
--add-opens java.base/java.util.regex=ALL-UNNAMED
--add-opens java.base/java.util.stream=ALL-UNNAMED
--add-opens java.base/java.lang.reflect=ALL-UNNAMED
--add-opens java.desktop/javax.imageio.spi=ALL-UNNAMED
</argLine>
</configuration> </configuration>
</plugin> </plugin>