Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
None
Description
This test fails on JDK20-Ea
org.apache.zookeeper.test.StaticHostProviderTest.testEmptyResolution
Mockito cannot mock this class: class java.net.InetAddress. Mockito can only mock non-private & non-final classes. If you're not sure why you're getting this error, please report to the mailing list.
if I try to upgrade Mockito to 4.9.0 the error is
org.mockito.exceptions.base.MockitoException:
Cannot mock/spy class java.net.InetAddress
Mockito cannot mock/spy because :
- sealed class
at org.apache.zookeeper.test.StaticHostProviderTest.testReResolvingSingle(StaticHostProviderTest.jav
Attachments
Issue Links
- links to