Package org.junit.runners
Class JUnit4
java.lang.Object
org.junit.runner.Runner
org.junit.runners.BlockJUnit4ClassRunner
org.junit.runners.JUnit4
Aliases the current default JUnit 4 class runner, for future-proofing. If future versions of
JUnit change the default Runner class, they will also change the definition of this class.
Developers wanting to explicitly tag a class as a JUnit 4 class should use
@RunWith(JUnit4.class), not, for example in JUnit 4.5,
@RunWith(BlockJUnit4ClassRunner.class). This is the only way this class should be
used--any extension that depends on the implementation details of this class is likely to break
in future versions.- Since:
- 4.5
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JUnit4
Constructs a new instance of the default runner
-