tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: PROPOSAL: Update Tomcat 7 tests to JUnit 4
Date Mon, 25 Jul 2011 22:30:45 GMT
2011/7/22 Konstantin Kolinko <knst.kolinko@gmail.com>:
> * First step is to use these values in build.properties:
>
> junit.home=${base.path}/junit4.8.2
> junit.lib=${junit.home}
> junit.jar=${junit.lib}/junit-4.8.2.jar
> junit.loc=http://cloud.github.com/downloads/KentBeck/junit/junit4.8.2.zip
>
> With this, all our tests are running successfully as they are now.
>
>
> * Next step is to convert existing tests to use JUnit 4 annotations.
> My plan is the following:
>
> 1. Convert test classes that are direct descendants of TestCase.
>
> 2. Create a copy of TomcatBaseTest class that does not extend TestCase.
> Let's name it TomcatBaseTestJUnit4.
>
> 3. Convert descendants of TomcatBaseTest to use TomcatBaseTestJUnit4.
>
> 4. Rename TomcatBaseTestJUnit4 -> TomcatBaseTest.
>

Completed for everything,
except test cases that are in org.apache.catalina.tribes.**. I have
not touched them.


Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message