Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] MockitoException with Maven but not with Eclipse

How do you run tests from Eclipse, as JUnit Test or JUnit Plug-In Test?

I do not believe surefire classloading applies to Tycho. Tycho always
runs tests in an OSGi runtime, which has completely different
classloading model.

--
Regards,
Igor

On 11-12-07 7:48 AM, Davy Meers wrote:
Hello,

i am experiencing strange behavior when using mockito 1.8.5 in my unit
tests.

I can run my tests from within eclipse without any problems but when the
test are run while building with tycho the tests fail with a
MockitoException.
I think i am experiencing the problem described in [1]. This seems to be
a class loading problem with surefire and should be solved in the Maven
Surefire plugin - Version 2.7.1 [2] .
But i am experiencing the described behavior even using Tycho
0.14.0-SNAPSHOT and if i am not mistaken the version of the Maven
Surefire plugin used in Tycho - version 0.14.0-SNAPSHOT is 0.10.0.

This leaves me a bit puzzled and stuck:
i cannot find any other information and have no idea what i can check or
do to solve this problem.

I hope someone can point me in the right direction.

Regards,
Davy meers


[1]
http://groups.google.com/group/mockito/browse_thread/thread/5d500f386ea5e609
[2] http://jira.codehaus.org/browse/SUREFIRE-673






_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top