Skip to content

Docs. Troubleshooting test run configuration with Java 17 #2047

Closed
@alisevych

Description

@alisevych

Description

Add Troubleshooting section in User guide on how to run tests with Java 17 using reflection.
In order to support user with bug

Please consider the best place for Troubleshooting section.

Expected behavior

UnitTestBot sometimes cannot combine Object assemble model without using reflection.
Sometimes a private field needs to be set or got.
Reflection methods using setAccessible is forbidden in Java 17+.
User can add keys to the JVm in order to run the tests.
Otherwise UtUtils methods can fail.

Environment

IntelliJ IDEA Ultimate 2023.3.*

Potential alternatives

Possibility to add needed keys automatically can be very complex.
One can see the list of keys needed to run tests for UnitTestBot: build.gradle.kts

Context

UnitTestBot plugin will be working on Java 17 starting from Release 2023.3

Metadata

Metadata

Labels

ctg-documentationImprovements or additions to documentationctg-enhancementNew feature, improvement or change request

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions