You are right, it works using maven2 from the commandline.
In my case it is used within Cruisecontrol.. 
May there a problem with different versions of junit.jar usd by maven2
and cruisecontrol???

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos
Sanchez
Sent: Tuesday, April 04, 2006 7:48 PM
To: Maven Users List
Subject: Re: [surefire] xml report not well formed <failure.message>
contains <

There's a test case
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-surefire-plug
in/src/it/test3
and it's working correctly

On 4/4/06, Jens Zastrow <[EMAIL PROTECTED]> wrote:
> the message attribute of the <failure> element contains < - the text 
> inside <failure> is escaped correctly.
>
> [pom.xml]
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <version>2.1.3</version>
>
> [report.xml]
>  <testcase time="0.615" name="testCheckValidityForIssuer">
>     <failure type="junit.framework.AssertionFailedError"
> message="expected:<1> but
was:<2>">junit.framework.AssertionFailedError:
> expected:&lt;1&gt; b
> ut was:&lt;2&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:201)
>         at junit.framework.Assert.assertEquals(Assert.java:207)
>         at
> de.dailab.security.control.pki.component.spki.tests.junit.JUnit_SPKIVa
> li dityCheckerBean.testCheckValidityForIssuer(JUnit_SPKIValidityChecke
> rBean.java:138)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> av
> a:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> or
> Impl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at junit.framework.TestCase.runTest(TestCase.java:154)
>         at junit.framework.TestCase.runBare(TestCase.java:127)
>         at junit.framework.TestResult$1.protect(TestResult.java:106)
>         at
junit.framework.TestResult.runProtected(TestResult.java:124)
>         at junit.framework.TestResult.run(TestResult.java:109)
>         at junit.framework.TestCase.run(TestCase.java:118)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
                             -- The Princess Bride

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to