I have a bunch of JUnit 3 classes which extend TestCase and would like to automatically migrate them to be JUnit4 tests with annotations such as @Before,
Nice post. I did the upgrade using Netbeans with the following RegEx strings: (First line search-string, second one replace-string)
public void test
@Test\n public void test
@Override\n.*protected void onSetUp
@Before\n protected void onSetUp
@Override\n.*protected void onTearDown
@After\n protected void onTearDown
Don't forget to flag the Regular Expression checkbox!