Hi Julien,

Yes, the local revision was up-to-date.

So I decided to 'mvn clean' and it failed, but I realised that there
may be an open file handle in the system. I found and closed the file
handle, ran 'mvn clean' again (and it passed), and now 'mvn test'
passes.

So apparently "method not found" is a synonym for "cannot delete directory". :D

Thanks for all your help :)
Jevon

On Mon, Mar 28, 2011 at 8:18 PM, Julien HENRY <henr...@yahoo.fr> wrote:
> Hi Jevon,
>
> Is your SVN workspace up to date? I just checked and the method exists in
> JWebUnit trunk. See line 412 of WebTester:
> http://jwebunit.svn.sourceforge.net/viewvc/jwebunit/trunk/jwebunit-core/src/main/java/net/sourceforge/jwebunit/junit/WebTester.java?revision=901&view=markup
>
>
> Regards,
>
> Julien
>
>
>
> ----- Message d'origine ----
>> De : Jevon Wright <je...@jevon.org>
>> À : JWebUnit Development mail list
> <jwebunit-development@lists.sourceforge.net>
>> Envoyé le : Lun 28 mars 2011, 1h 46min 24s
>> Objet : Re: [JWebUnit-development] mvn test crashes with NoSuchMethodError on
>>Mockito.when
>>
>> Hi Julien,
>>
>> Thanks very much for your help. I was using Maven 2.2.1, so I  upgraded
>> to Maven 3.0.3 but now I am getting a different error when trying  to
>> test Core - API:
>>
>> [ERROR] Failed to execute  goal
>> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
>> (default-compile)  on project jwebunit-core: Compilation failure:
>> Compilation  failure:
>> [ERROR] \Documents  and
>>Settings\jmwright.MASSEY\workspace-iaml-branch\jwebunit-trunk\jwebunit-core\target\generated-sources\main\java\net\sourceforge\jwebunit\junit\JWebUnit.java:[291,26]
>>]
>> cannot  find symbol
>> [ERROR] symbol  : method getResponseHeaders()
>> [ERROR]  location: class net.sourceforge.jwebunit.junit.WebTester
>> [ERROR] \Documents  and
>>Settings\jmwright.MASSEY\workspace-iaml-branch\jwebunit-trunk\jwebunit-core\target\generated-sources\main\java\net\sourceforge\jwebunit\junit\WebTestCase.java:[447,25]
>>]
>> cannot  find symbol
>> [ERROR] symbol  : method getResponseHeaders()
>> [ERROR]  location: class net.sourceforge.jwebunit.junit.WebTester
>> [ERROR] -> [Help  1]
>>
>> Attached is the build log trace and the dependency tree in .zip  format.
>>
>> Cheers
>> Jevon
>>
>> On Fri, Mar 25, 2011 at 9:30 PM, Julien  HENRY <henr...@yahoo.fr> wrote:
>> > 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
>>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
>> >
>>
>
> ------------------------------------------------------------------------------
> 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
>

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and publish 
your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
JWebUnit-development mailing list
JWebUnit-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to