carbidecpp22devenv/plugins/org.eclipse.test.source_3.5.0.r20080925/src/org.junit4_4.5.0.v20090423/junitsrc/org/junit/runners/JUnit4.java
changeset 636 3ef299ba838f
equal deleted inserted replaced
635:8d56403172bc 636:3ef299ba838f
       
     1 package org.junit.runners;
       
     2 
       
     3 import org.junit.runners.model.InitializationError;
       
     4 
       
     5 /**
       
     6  * Aliases the current default JUnit 4 class runner, for future-proofing. If
       
     7  * future versions of JUnit change the default Runner class, they will also
       
     8  * change the definition of this class. Developers wanting to explicitly tag a
       
     9  * class as a JUnit 4 class should use {@code @RunWith(JUnit4.class)}, not,
       
    10  * for example in JUnit 4.5, {@code @RunWith(BlockJUnit4ClassRunner.class)}.
       
    11  * This is the only way this class should be used--any extension that
       
    12  * depends on the implementation details of this class is likely to break
       
    13  * in future versions.
       
    14  */
       
    15 public final class JUnit4 extends BlockJUnit4ClassRunner {
       
    16 	/**
       
    17 	 * Constructs a new instance of the default runner
       
    18 	 */
       
    19 	public JUnit4(Class<?> klass) throws InitializationError {
       
    20 		super(klass);
       
    21 	}
       
    22 }