This problem is only when launching maven via DOS command line, not via a
JUnit Eclipse plugin.
2008/4/27 Tristan <[EMAIL PROTECTED]>:
> All jsp directives in test pages look wrong :
>
> <jsp:directive.page contentType="text/html; charset=UTF8"/>
>
> instead of :
>
> <jsp:directive.page contentType="text/html; charset=UTF-8"/>
>
> But after correcting it, it just adds an error for test displ107 (which
> try to compare "UTF8" to "UTF-8")
>
> 2008/4/27 Tristan <[EMAIL PROTECTED]>:
>
> Hi,
> >
> > I've exported sources from :
> > https://displaytag.svn.sourceforge.net/svnroot/displaytag/tags/displaytag-1.1.1/displaytag
> >
> > And launched unit tests via "mvn package", I have 4 errors out of 332
> > tests (on 2 test cases) :
> >
> > -------------------------------------------------------
> > T E S T S
> > -------------------------------------------------------
> > Running org.displaytag.test.TestAll
> > Rhino classes (js.jar) not found - Javascript disabled
> > Tests run: 332, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 41.328
> > sec <<< FAILURE!
> >
> > Results :
> >
> > Failed tests:
> > org.displaytag.jsptests.Displ249Test.test11
> > (DISPL-249.jsp)(org.displaytag.jsptests.Displ249Test)
> > org.displaytag.jsptests.Displ249Test.testEL
> > (DISPL-249.jsp)(org.displaytag.jsptests.Displ249Test)
> > org.displaytag.jsptests.EncodedUriTest.test11
> > (requesturi.jsp)(org.displaytag.jsptests.EncodedUriTest)
> > org.displaytag.jsptests.EncodedUriTest.testEL
> > (requesturi.jsp)(org.displaytag.jsptests.EncodedUriTest)
> >
> > Tests run: 332, Failures: 4, Errors: 0, Skipped: 0
> >
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > In surefire-reports, I have :
> >
> > org.displaytag.jsptests.Displ249Test.test11
> > (DISPL-249.jsp)(org.displaytag.jsptests.Displ249Test) Time elapsed: 0.125
> > sec <<< FAILURE!
> > junit.framework.ComparisonFailure: expected:<...àeèiìoòuù> but
> > was:<...à eèiìoòuù>
> > at junit.framework.Assert.assertEquals(Assert.java:81)
> > at junit.framework.Assert.assertEquals(Assert.java:87)
> > at org.displaytag.jsptests.Displ249Test.doTest(Displ249Test.java:66)
> > at org.displaytag.test.DisplaytagCase.test11(DisplaytagCase.java:61)
> >
> > org.displaytag.jsptests.Displ249Test.testEL
> > (DISPL-249.jsp)(org.displaytag.jsptests.Displ249Test) Time elapsed: 0.078
> > sec <<< FAILURE!
> > junit.framework.ComparisonFailure: expected:<...àeèiìoòuù> but
> > was:<...à eèiìoòuù>
> > at junit.framework.Assert.assertEquals(Assert.java:81)
> > at junit.framework.Assert.assertEquals(Assert.java:87)
> > at org.displaytag.jsptests.Displ249Test.doTest(Displ249Test.java:66)
> > at org.displaytag.test.DisplaytagCase.testEL(DisplaytagCase.java:70)
> >
> > org.displaytag.jsptests.EncodedUriTest.test11
> > (requesturi.jsp)(org.displaytag.jsptests.EncodedUriTest) Time elapsed:
> > 0.093 sec <<< FAILURE!
> > junit.framework.ComparisonFailure: expected:<......> but
> > was:<...83%C2%...>
> > at junit.framework.Assert.assertEquals(Assert.java:81)
> > at junit.framework.Assert.assertEquals(Assert.java:87)
> > at
> > org.displaytag.jsptests.EncodedUriTest.doTest(EncodedUriTest.java:64)
> > at org.displaytag.test.DisplaytagCase.test11(DisplaytagCase.java:61)
> >
> > org.displaytag.jsptests.EncodedUriTest.testEL
> > (requesturi.jsp)(org.displaytag.jsptests.EncodedUriTest) Time elapsed:
> > 0.063 sec <<< FAILURE!
> > junit.framework.ComparisonFailure: expected:<......> but
> > was:<...83%C2%...>
> > at junit.framework.Assert.assertEquals(Assert.java:81)
> > at junit.framework.Assert.assertEquals(Assert.java:87)
> > at
> > org.displaytag.jsptests.EncodedUriTest.doTest(EncodedUriTest.java:64)
> > at org.displaytag.test.DisplaytagCase.testEL(DisplaytagCase.java:70)
> >
> > Some encoding parameter somewhere must be wrong, maybe on SVN server ?
> >
> > Tristan
> >
> >
>
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel