Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Another issue comes up in Sling GraphQL Core when it tries to mock classes like Resource Resolver:

Underlying exception : org.mockito.exceptions.base.MockitoException: Could not modify all classes [interface, interface java.lang.AutoCloseable, interface]


When I upgrade to the latest Mockito-inline (5.2.0) from 3.5.11 then the instrumentation does work but the Pax IT test all time out because it is unable to lookup Sling services:

[INFO] Running

[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 21.341 s <<< FAILURE! - in

[ERROR]  Time elapsed: 10.114 s  <<< ERROR!

org.ops4j.pax.swissbox.tracker.ServiceLookupException: gave up waiting for service javax.script.ScriptEngineFactory

at org.ops4j.pax.swissbox.tracker.ServiceLookup.getService(

Remediation: Pending


Failure with OSGi Converter