I've attached a patch (SaveJaxbOutput.patch.txt) for the JeeTest that saves the generated xml out to disk if it fails and prints the file location to system.out.

Can someone who has this problem apply the patch, run the test, then attach the generated xml file to this issue?

-David

On Sep 27, 2007, at 3:57 AM, Karan Malhi wrote:

Here is the surefire report for this test. This contains the diff.
Notice the square brackets - [] showing up in the xml. These are
causing the assertEquals to fail.

---------------------------------------------------------------------- ---------

Test set: org.apache.openejb.jee.JeeTest

---------------------------------------------------------------------- ---------

Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.5
sec <<< FAILURE!

testWar(org.apache.openejb.jee.JeeTest) Time elapsed: 0.296 sec <<< FAILURE!

junit.framework.ComparisonFailure: null expected:<...scription
xml:lang="[en-US">description117</description>
    <description xml:lang="">description121</description>
    <display-name xml:lang="en-US">display-name6</display-name>
    <display-name xml:lang="">display-name9</display-name>
    <icon xml:lang="en-US" id="ID967">
        <small-icon>small-icon8</small-icon>
        <large-icon>large-icon8</large-icon>
    </icon>
    <icon xml:lang="" id="ID913">
        <small-icon>small-icon5</small-icon>
        <large-icon>large-icon5]</large-icon>
</...> but was:<...scription xml:lang="[">description121</ description>
    <description xml:lang="en-US">description117</description>
    <display-name xml:lang="">display-name9</display-name>
    <display-name xml:lang="en-US">display-name6</display-name>
    <icon xml:lang="" id="ID913">
        <small-icon>small-icon5</small-icon>
        <large-icon>large-icon5</large-icon>
    </icon>
    <icon xml:lang="en-US" id="ID967">
        <small-icon>small-icon8</small-icon>
        <large-icon>large-icon8]</large-icon>
    </...>

        at junit.framework.Assert.assertEquals(Assert.java:81)

        at junit.framework.Assert.assertEquals(Assert.java:87)

at org.apache.openejb.jee.JeeTest.marshalAndUnmarshal(JeeTest.java: 83)

        at org.apache.openejb.jee.JeeTest.testWar(JeeTest.java:55)




On 9/27/07, David Blevins <[EMAIL PROTECTED]> wrote:
Hmm...  Can you try running the test say in Eclipse or Intellij and
using a debugger to diff the xml documents?

This is likely the same issue Ashok reported and I'm almost certain
it's something trivial like whitespace or newline differences.

-David

On Sep 26, 2007, at 6:32 PM, Karan Malhi wrote:

Is the following test failing for anybody?
org.apache.openejb.jee.JeeTest

--
Karan Singh Malhi





--
Karan Singh Malhi


Reply via email to