Refactoring JUnit 3.8 to 4.0 when hierarchy extends TestCase

Site menu:

Topics

Recent Posts

Blog

 

February 2010
M T W T F S S
« Jan   Mar »
1234567
891011121314
15161718192021
22232425262728

Past Posts

Links:

Archive for February 2nd, 2010

Refactoring JUnit 3.8 to 4.0 when hierarchy extends TestCase

February 2nd, 2010 by Jeanne Boyarsky

Problem: I want to start writing tests in JUnit 4.0, but I have a lot of tests in JUnit 3.8.  I can’t just start writing tests in 4.0, because I rely on common setup/assertions in my custom superclass which extends TestCase. (Which means JUnit will only look for 3.8 style tests) Solution: Create one or [...]