Martin Desruisseaux ha scritto:
> Andrea Aime a écrit :
>> Thought, I can't think of a reason for it misbehaving under java 6....
..
> FallbackAuthorityFactoryTest registers a new factory, called 
> "FactoryESPGExtra", with a higher priority level than FactoryUsingWKT. 
> Consequently, if FallbackAuthorityFactoryTest is executed before 
> FactoryUsingWktTest, the later is actually performing its tests against 
> FactoryESPGExtra instead of FactoryUsingWKT.
> 
> I fixed that on my local copy (set a lower priority level for 
> FactoryESPGExtra). Will commit in a few hours.

Hum, the meaning of the test was really to have it with higher priority, 
so that we could check the fallback exception mechanism. Basically,
FactoryESPGExtra throws a WKT decoding exception, and the other does not
know about the code.
In the old exception handling we would get a "code not found exception",
the new one throws the proper wkt decoding one, and the test makes
sure this behaviour is preserved.

Is there any way to un-register o reset the set of registered factories
after tests are executed, making them order independent?

Cheers
Andrea

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to