Add JUnit 4 support for online tests
------------------------------------

                 Key: GEOT-3008
                 URL: http://jira.codehaus.org/browse/GEOT-3008
             Project: GeoTools
          Issue Type: New Feature
    Affects Versions: 2.6.3, 2.7-M0
            Reporter: Ben Caradoc-Davies
         Attachments: OnlineTestSupport.patch

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."

{code}
-------- 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, 
perhaps?

-- 
Ben Caradoc-Davies
Software Engineering Team Leader
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre
{code}

-- 
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

        

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to