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:[email protected]] 
Sent: 20 August 2009 08:19
To: [email protected]
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:[email protected]]
> Gesendet: Mittwoch, 19. August 2009 16:51
> An: [email protected]
> 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
> 

Reply via email to