Re: Maven POM for httpunit

Adam Hardy <[email protected]> Wed, 14 May 2008 09:23:20 +0100
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
Wolfgang Fahl on 14/05/08 07:09, wrote:
> Matt wrote:
>>  I have created and attached a POM for building httpunit using Maven2.
>>  It also runs FindBugs and cobertura, a code coverage tool, as well.
>>  It uses the current project structure.  It excludes the following tests:
>>   EventAwareTestCase
>>   WebClientTest
>>   WebPageTest
>>
>>  Also, if you run out of memory on the FindBugs, try upping the memory 
> thusly
>>  export MAVEN_OPTS=-Xmx384M
> Thanks so much. 967 has the file as httpunit.pom - would you please 
> check the SVN repository content whether it got there alright?

Actually that looks like a rounding error or something simple:

     <failure type="junit.framework.AssertionFailedError" message="cookie1 
expiration expected:&lt;1210756193666&gt; but 
was:&lt;1210756193665&gt;">junit.framework.AssertionFailedError: cookie1 
expiration expected:&lt;1210756193666&gt; but was:&lt;1210756193665&gt;
         at junit.framework.Assert.fail(Assert.java:47)
         at junit.framework.Assert.failNotEquals(Assert.java:282)
         at junit.framework.Assert.assertEquals(Assert.java:64)
         at junit.framework.Assert.assertEquals(Assert.java:136)
         at 
com.meterware.httpunit.cookies.CookieTest.testCookieAge(CookieTest.java:201)
</failure>


Strangely it only fails when run in the batch with 'mvn test' but not when run 
alone with  'mvn -Dtest=CookieTest test'


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/