DefaultFactoryTest.testFind is not properly isolated from other tests, results in failures in Java 6 ----------------------------------------------------------------------------------------------------
Key: GEOT-2460 URL: http://jira.codehaus.org/browse/GEOT-2460 Project: GeoTools Issue Type: Bug Components: core referencing Affects Versions: 2.5.4 Reporter: Andrea Aime Assignee: Andrea Aime Fix For: 2.5.5 The above test fails on Java 6 under maven due to the following issues: - maven runs all of the tests for a single module in a single VM, so static variables are persisted between test runs - the BufferedAuthorityFactory findPool is never cleared between tests - other tests do put the WGS84 lookalike CRS into the cache before testFind runs, making it fail to meet the expectation that the srs won't be found without a full scan The main difference between java 5 and java 6 is just the order in which the tests are run. Making sure that BufferedAuhotirtyFactory.dispose() clears the findPool, and calling dispose() at the beginning of each run, makes sure that tests are properly isolated from each other. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel