Because JUnit 4 gets more and more used a new
class runner is introduced.
You can now leverage datadriven testing of DDTUnit and the execution model of JUnit 4
annotations in one class. To do this follow the example (
DDTJUnit4ClassRunnerTest:
@RunWith(value = DDTUnit4ClassRunner.class) public class DDTJUnit4ClassRunnerTest extends DDTTestCase { // now you can use JUnit4 standard annotations @BeforeClass public static void beforeClass() { logger.info("beforeClass"); } // and @Before, @After, @AfterClass and even @Test ...