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

Reply via email to