Hi Thomas,
Using Junit 4.4 instead of 4.7 did not make any difference, the surefire
component kept failing anyway...
Upgrading Maven to 2.2.1 did not work either.
But I have found a workaround:
Instead of using
@ContextConfiguration,
I am using now
@ContextConfiguration("/applicationContext-text.xml")
Now it is running fine on Continuum with Junit 4.7.
Cheers,
Erik
-----Original Message-----
From: InterNetX - Thomas Koch [mailto:thomas.koch@internetx.de]
Sent: 20 August 2009 08:19
To: users@continuum.apache.org
Subject: AW: @RunWith(SpringJUnit4ClassRunner.class) NoSuchMethodError
Hi Erik,
Which JUnit version do you use?
We actually had a same problem when using JUnit 4.5 instead of 4.4.
So we changed to JUnit 4.4 and all works fine.
Best regards
Thomas
Team Entwicklung
--
InterNetX GmbH
Maximilianstr. 6
93047 Regensburg
Germany
Tel. +49 941 59559-475
Fax +49 941 59559-55
Geschäftsführer/CEO: Thomas Mörz
Amtsgericht Regensburg, HRB 7142
> -----Ursprüngliche Nachricht-----
> Von: VanIngen, Erik (FIES) [mailto:Erik.VanIngen@fao.org]
> Gesendet: Mittwoch, 19. August 2009 16:51
> An: users@continuum.apache.org
> Betreff: @RunWith(SpringJUnit4ClassRunner.class) NoSuchMethodError
>
>
>
> Running my Spring unit test on Continuum give errors. Any
> idea how to solve this?
>
> Running the same test in eclipse or on the prompt runs
> without problems.
>
> More info: http://forum.springsource.org/showthread.php?t=76434
>
|