OnlineTestCase support for failure on failed connection -------------------------------------------------------
Key: GEOT-2320 URL: http://jira.codehaus.org/browse/GEOT-2320 Project: GeoTools Issue Type: Improvement Affects Versions: 2.6-M2 Reporter: Ben Caradoc-Davies Priority: Minor Attachments: OnlineTestCase.patch OnlineTestCase disables an online test if connect() fails. This may not be the desired behaviour. The attached patch (for trunk) adds an optional key to the test fixture property file that allows this behaviour to be changed. >From the javadoc: The default behaviour of this class is that if connect() throws an exception, the test suite is disabled, causing each test to pass without being run. In addition, exceptions thrown by disconnect() are ignored. This behaviour allows tests to be robust against transient outages of online resources, but also means that local software failures in connect() or disconnect() will be silent. To have exceptions thrown by connect() and disconnect() cause tests to fail, set skip.on.failure=false in the fixture property file. This restores the traditional behaviour of unit tests, that is, that exceptions cause unit tests to fail. -- 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 ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel