Day: October 10, 2008
-
Thread Police for your Unit Tests
Writing the new ant I stumbled across the problem of test cases leaving threads behind, after returning control to the runner. My trusted colleague and JUnit Runner expert Mark Burnett and I, knocked up a quick and dirty junit runner that actually allows you to spot such a condition. Consider the following testcode: @Test public…