You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On sample code which works with network UtBot tries to create mockStatic(sun.net.util.IPAddressUtil.class) while IPAddressUtill is not exported from JDK module, so resulting tests are not compilable.
It seems we have two options to resolve that problem:
Detect somehow that class is not exported and don't generate such tests.
Generate test as is but add some comment that user has to add those --add-exports manually to test run configuration, see the same suggestion for --add-opens. And update the docs as well - #2047
The text was updated successfully, but these errors were encountered:
Description
On sample code which works with network UtBot tries to create
mockStatic(sun.net.util.IPAddressUtil.class)
whileIPAddressUtill
is not exported from JDK module, so resulting tests are not compilable.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Generated test are compilable.
Actual behavior
Generated test is not compilable, because uses internal JDK class
Visual proofs (screenshots, logs, images)

Additional context
It seems we have two options to resolve that problem:
--add-exports
manually to test run configuration, see the same suggestion for--add-opens
. And update the docs as well - #2047The text was updated successfully, but these errors were encountered: