Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Unable to use Tycho + Junit5 + MockitoExtension


not long ago I was asking about same issue here: unfortunately without having any advices.

The good news however is that the ticket was resolved over the weekend and it is targeting 1.7.0 release. Unfortunately it seems nothing else can be done other than waiting for newer release.

pon., 9 mar 2020 o 10:12 Sebastien Arod <sebastien.arod@xxxxxxxxx> napisał(a):

I'm trying to use Tycho with Junit5 and Mockito using @ExtendWith and MockitoExtension

However Mockito requires a jupiter-engine version 5.4.0+ but Tycho seems to embed a version an older version. So when I run my test it fails with
java.lang.AbstractMethodError: Method org/junit/jupiter/engine/descriptor/MethodExtensionContext.getTestInstances()Ljava/util/Optional; is abstract

I tried using a newer engine by adding junit-jupiter-engine to the Require-bundle but then the execution fails with:
Caused by: java.util.ServiceConfigurationError: org.junit.platform.engine.TestEngine: Provider org.junit.jupiter.engine.JupiterTestEngine not a subtype

Is there a way to specify a more recent engine to use?

In case it helps I have a small repro test available here
tycho-user mailing list
To unsubscribe from this list, visit

Michał Anglart

Back to the top