aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/junit/runners/JUnit4.java
blob: 1e1f3479d322ffce0ece9120caf9ad10ac52a28f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package org.junit.runners;

import org.junit.runners.model.InitializationError;

/**
 * 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 {@code @RunWith(JUnit4.class)}, not,
 * for example in JUnit 4.5, {@code @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.
 */
public final class JUnit4 extends BlockJUnit4ClassRunner {
	/**
	 * Constructs a new instance of the default runner
	 */
	public JUnit4(Class<?> klass) throws InitializationError {
		super(klass);
	}
}