Hi Jevon,

I just tried and I can't reproduce the issue. Note that I am using Maven 3.0.3 
on Windows so maybe the issue you are facing is related to Maven version or OS.

Can you send me the full build log trace (mvn test -X > build.log) and also the 
dependency tree (mvn dependency:tree > tree.log).

Thanks

Julien



----- Message d'origine ----
> De : Jevon Wright <je...@jevon.org>
> À : JWebUnit Development mail list 
<jwebunit-development@lists.sourceforge.net>
> Envoyé le : Ven 25 mars 2011, 6h 58min 40s
> Objet : [JWebUnit-development] mvn test crashes with NoSuchMethodError on 
>Mockito.when
> 
> Hi,
> 
> I am trying to get JWebUnit trunk to test using mvn ("mvn test"),  but
> the tests crash quickly with an error:
> 
> Tests run: 2, Failures: 0,  Errors: 2, Skipped: 0, Time elapsed: 0.969
> sec <<<  FAILURE!
>testAssertImageSrcContainsShouldDelegateXPathExpressionToUnderlyingTestingEngine(net.sourceforge.jwebunit.junit.WebTesterTest)
>)
>   Time elapsed: 0.468 sec  <<<  ERROR!
> java.lang.NoSuchMethodError:
>org.mockito.Mockito.when(Ljava/lang/Object;)Lorg/mockito/internal/progress/NewOngoingStubbing;
>;
>      at  
>net.sourceforge.jwebunit.junit.WebTesterTest.engine(WebTesterTest.java:57)
>      at  
>net.sourceforge.jwebunit.junit.WebTesterTest.testAssertImageSrcContainsShouldDelegateXPathExpressionToUnderlyingTestingEngine(WebTesterTest.java:32)
>
>      ...
> 
> According to [1] this is due to multiple versions of Mockito being  on
> the class path. Is this a Maven configuration setting? Any ideas on
> how  to fix the problem? I'm still a Maven novice so any help would  be
> appreciated. :)
> 
> Jevon
> 
> [1]: 
>http://groups.google.com/group/mockito/browse_thread/thread/6c21dc83d1974ead?pli=1
>
> 
> ------------------------------------------------------------------------------
> Enable  your software for Intel(R) Active Management Technology to meet the
> growing  manageability and security demands of your customers. Businesses
> are taking  advantage of Intel(R) vPro (TM) technology - will your software 
> be a part of  the solution? Download the Intel(R) Manageability Checker 
> today! http://p.sf.net/sfu/intel-dev2devmar
> _______________________________________________
> JWebUnit-development  mailing list
> JWebUnit-development@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jwebunit-development
> 

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
JWebUnit-development mailing list
JWebUnit-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to