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

Hi,

not long ago I was asking about same issue here: https://www.eclipse.org/lists/tycho-user/msg08382.html unfortunately without having any advices.

The good news however is that the ticket https://bugs.eclipse.org/bugs/show_bug.cgi?id=537487 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):
Hi,

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
tycho-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-user


--
____________________________
pozdrawiam
Michał Anglart

Back to the top