From: Ben Caradoc-Davies (JIRA) <jira@co...> - 2010-03-24 03:44:30
Add JUnit 4 support for online tests
Issue Type: New Feature
Affects Versions: 2.6.3, 2.7-M0
Reporter: Ben Caradoc-Davies
Attached patch adds JUnit 4 online test support through a new class OnlineTestSupport.
>From the javadoc: "This class is an adapter to OnlineTestCase that allows its use with JUnit 4. Delegation is used to recycle the behaviour of OnlineTestCase without extending TestCase. This is necessary because TestRunners appear to give priority to JUnit 3 behaviour, ignoring JUnit 4 annotations in suites that extend TestCase."
-------- Original Message --------
Subject: [ExternalEmail] [Geotools-devel] OnlineTestCase and JUnit 4
Date: Tue, 23 Mar 2010 17:36:57 +0800
From: Ben Caradoc-Davies
To: Geotools-Devel list
OnlineTestCase extends JUnit 3 TestCase. The TestRunners I have been
using ignore JUnit 4 annotations on classes that extend JUnit 3
TestCase, leading to suites with no tests. :-(
As I extend my offline JUnit4 tests to have online parts, I dutifully
refactor the online parts into OnlineTestCases, but it feels like I am
backporting to JUnit 3 (probably because I am).
Do we need a JUnit 4 equivalent of OnlineTestCase? OnlineTestSupport,
Software Engineering Team Leader
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre
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