abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@gmail.com>
Subject Re: Failing tests (was Re: <content src=>)
Date Tue, 08 Aug 2006 18:03:11 GMT
Ah! This is the change I made yesterday for persistently setting the
default parser options! doh!  Mea culpa.

- James

Ugo Cei wrote:
> More info about the failing tests. The following test methods fail:
> 
> FOMTest#testTextFilter
> FOMTest#testXPath
> FOMTest#testRoundTrip
> 
> Now, hold yourself tight, but if I run each of those tests *alone* in
> Eclipse, they succeed!
> 
> This tells me there is some interaction between tests. What stands out
> is this, apparently:
> 
> 
>     ParserOptions options = Parser.INSTANCE.getDefaultParserOptions();
>     options.setTextFilter(filter);
> 
> If the object returned by getDefaultParserOptions is a singleton, it's
> possible that one of the tests sets a filter and a subsequent tests
> fails because it expects the options to be empty. Just a suggestion.
> 
>     Ugo
> 
> 
> --Ugo Cei
> Blog: http://agylen.com/
> Open Source Zone: http://oszone.org/
> Evil or Not?: http://evilornot.info/
> Company: http://www.sourcesense.com/
> 
> 
> 

Mime
View raw message