Thanks a lot it solves my problem ! 
 
But I still dont understand why I was the only one in my team with this case (we share 
the project.xml).

Antoine

Ben Walding <[EMAIL PROTECTED]> wrote:
You need to make sure you don't have junit in your dependency list. It 
is added automatically during the test phase.

I'd say you're compiling against one version, then running against a 
different version of junit

Bartel Runeaxe wrote:

>Hi,
> 
>We are currently migrating our project from ant to maven.
>
>I try to perform a 'test:test' goal and get the fallowing error (stack bellow).
>The method for the line refered in the stack is:
>"assertEquals(Object, Object)" from the JUnit framework.
>The two object passed are 'String'
>But If explicitely cast my two String in Object the error doesn't occur. 
>assertEquals((Object)st2, (Object)st2)
>I am the only one of my team to get this, so it must come from my local classpath or 
>so.
>
>But I can't find anything. 
> 
>Thanks for any help.
> 
>stack:
> 
>Testcase: test took 0.14 sec
> Caused an ERROR
>null
>java.lang.NoSuchMethodError
> at com.myproject.Test.test(Test.java:38)
> at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:232)
> at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
> at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
> at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
> at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)
> at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
> at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
> at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
> at com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:128)
> at com.werken.werkz.Goal.fire(Goal.java:639)
> at com.werken.werkz.Goal.attain(Goal.java:575)
> at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
> at com.werken.werkz.Goal.attain(Goal.java:573)
> at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:448)
> at org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
> at org.apache.maven.cli.App.doMain(App.java:543)
> at org.apache.maven.cli.App.main(App.java:1109)
> at com.werken.forehead.Forehead.run(Forehead.java:551)
> at com.werken.forehead.Forehead.main(Forehead.java:581)
>
>
>
>---------------------------------
>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
>Testez le nouveau Yahoo! Mail
> 
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Testez le nouveau Yahoo! Mail

Reply via email to