Class JUnit4TestMethodAdapter

java.lang.Object
org.apache.tools.ant.taskdefs.optional.junit.JUnit4TestMethodAdapter
All Implemented Interfaces:
junit.framework.Test

public class JUnit4TestMethodAdapter extends Object implements junit.framework.Test
Adapter between JUnit 3.8.x API and JUnit 4.x API for execution of tests and listening of events (test start, test finish, test failure, test skipped). The constructor is passed a JUnit 4 test class and a list of name of methods in it that should be executed. Method run(TestResult) executes the given JUnit-4-style test methods and notifies the given TestResult object using its old (JUnit 3.8.x style) API.
Author:
Marian Petras