You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by Garrett Rooney <ro...@electricjellyfish.net> on 2006/08/19 19:19:11 UTC

Feed Validator Test Failures

I'm also seeing some test failures in the feed validator tests...

Specifically, three of the section 4.1.3.3 tests:

     [java] There were 3 failures:
     [java] 1) testSection4133ContentXhtmlEscaped(org.apache.abdera.test.parser.stax.FeedValidatorTest)junit.framework.ComparisonFailure:
expected:<...>bold&lt;/b>...> but was:<...&gt;bold&lt;/b&gt;...>
     [java]     at
org.apache.abdera.test.parser.stax.FeedValidatorTest.testSection4133ContentXhtmlEscaped(FeedValidatorTest.java:2521)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at
org.apache.abdera.test.parser.stax.TestSuite.main(TestSuite.java:28)
     [java] 2) testSection4133ContentXhtmlMixed(org.apache.abdera.test.parser.stax.FeedValidatorTest)junit.framework.ComparisonFailure:
expected:<...>bold&lt;/b>...> but was:<...&gt;bold&lt;/b&gt;...>
     [java]     at
org.apache.abdera.test.parser.stax.FeedValidatorTest.testSection4133ContentXhtmlMixed(FeedValidatorTest.java:2531)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at
org.apache.abdera.test.parser.stax.TestSuite.main(TestSuite.java:28)
     [java] 3) testSection4133ContentXhtmlNotmarkup(org.apache.abdera.test.parser.stax.FeedValidatorTest)junit.framework.ComparisonFailure:
expected:<...>bold&lt;/x>...> but was:<...&gt;bold&lt;/x&gt;...>
     [java]     at
org.apache.abdera.test.parser.stax.FeedValidatorTest.testSection4133ContentXhtmlNotmarkup(FeedValidatorTest.java:2551)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at
org.apache.abdera.test.parser.stax.TestSuite.main(TestSuite.java:28)

Is anyone else seeing this?

-garrett

Re: Feed Validator Test Failures

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 8/19/06, James M Snell <ja...@gmail.com> wrote:
> Well, the stax ref impl has it's own problems, namely, it doesn't seem
> to properly support the config properties that tell it to ignore DTD's
> and entity replacements.   I'm going to be trying out the new Woodstox
> 3.0 parser this next week to see if it does what we need.

Great, thanks!

-garrett

Re: Feed Validator Test Failures

Posted by James M Snell <ja...@gmail.com>.
Well, the stax ref impl has it's own problems, namely, it doesn't seem
to properly support the config properties that tell it to ignore DTD's
and entity replacements.   I'm going to be trying out the new Woodstox
3.0 parser this next week to see if it does what we need.

- James

Garrett Rooney wrote:
> On 8/19/06, James M Snell <ja...@gmail.com> wrote:
>> I may be missing something, but these are likely caused by using the
>> woodstox stax impl vs. the stax reference impl.  Specifically, woodstox
>> does not entity encode greater than signs; the stax reference impl does.
>>  Remove the woodstox parser from the classpath and things should work.
> 
> Well, if that's the case (don't have time to test right now), should
> we stop using woodstox by default?  Both of our build systems pull it
> in, so anyone who tries to build things from source will get these
> failures.
> 
> -garrett
> 

Re: Feed Validator Test Failures

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 8/19/06, James M Snell <ja...@gmail.com> wrote:
> I may be missing something, but these are likely caused by using the
> woodstox stax impl vs. the stax reference impl.  Specifically, woodstox
> does not entity encode greater than signs; the stax reference impl does.
>  Remove the woodstox parser from the classpath and things should work.

Well, if that's the case (don't have time to test right now), should
we stop using woodstox by default?  Both of our build systems pull it
in, so anyone who tries to build things from source will get these
failures.

-garrett

Re: Feed Validator Test Failures

Posted by James M Snell <ja...@gmail.com>.
I may be missing something, but these are likely caused by using the
woodstox stax impl vs. the stax reference impl.  Specifically, woodstox
does not entity encode greater than signs; the stax reference impl does.
 Remove the woodstox parser from the classpath and things should work.

- James

Garrett Rooney wrote:
> I'm also seeing some test failures in the feed validator tests...
> 
> Specifically, three of the section 4.1.3.3 tests:
> 
>     [java] There were 3 failures:
>     [java] 1)
> testSection4133ContentXhtmlEscaped(org.apache.abdera.test.parser.stax.FeedValidatorTest)junit.framework.ComparisonFailure:
> 
> expected:<...>bold&lt;/b>...> but was:<...&gt;bold&lt;/b&gt;...>
>     [java]     at
> org.apache.abdera.test.parser.stax.FeedValidatorTest.testSection4133ContentXhtmlEscaped(FeedValidatorTest.java:2521)
> 
>     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>     [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 
>     [java]     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 
>     [java]     at
> org.apache.abdera.test.parser.stax.TestSuite.main(TestSuite.java:28)
>     [java] 2)
> testSection4133ContentXhtmlMixed(org.apache.abdera.test.parser.stax.FeedValidatorTest)junit.framework.ComparisonFailure:
> 
> expected:<...>bold&lt;/b>...> but was:<...&gt;bold&lt;/b&gt;...>
>     [java]     at
> org.apache.abdera.test.parser.stax.FeedValidatorTest.testSection4133ContentXhtmlMixed(FeedValidatorTest.java:2531)
> 
>     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>     [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 
>     [java]     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 
>     [java]     at
> org.apache.abdera.test.parser.stax.TestSuite.main(TestSuite.java:28)
>     [java] 3)
> testSection4133ContentXhtmlNotmarkup(org.apache.abdera.test.parser.stax.FeedValidatorTest)junit.framework.ComparisonFailure:
> 
> expected:<...>bold&lt;/x>...> but was:<...&gt;bold&lt;/x&gt;...>
>     [java]     at
> org.apache.abdera.test.parser.stax.FeedValidatorTest.testSection4133ContentXhtmlNotmarkup(FeedValidatorTest.java:2551)
> 
>     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>     [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 
>     [java]     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 
>     [java]     at
> org.apache.abdera.test.parser.stax.TestSuite.main(TestSuite.java:28)
> 
> Is anyone else seeing this?
> 
> -garrett
>