You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Karan Malhi <ka...@gmail.com> on 2007/09/27 03:32:43 UTC
failed test
Is the following test failing for anybody?
org.apache.openejb.jee.JeeTest
--
Karan Singh Malhi
Re: failed test ([jira] OPENEJB-676)
Posted by David Blevins <da...@visi.com>.
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 <da...@visi.com> 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
>
Re: failed test
Posted by Dain Sundstrom <da...@iq80.com>.
The items are in a different order. The first file has:
description117
description121
display-name6
display-name9
icon8
icon5
and the second one has
description121
description117
display-name9
display-name6
icon5
icon8
-dain
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 <da...@visi.com> 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
Re: failed test
Posted by Karan Malhi <ka...@gmail.com>.
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 <da...@visi.com> 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
Re: failed test
Posted by David Blevins <da...@visi.com>.
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
>