From: David S. <ds...@us...> - 2007-03-22 17:48:04
|
Update of /cvsroot/junit/junit/src/org/junit In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv27494/src/org/junit Modified Files: Ignore.java Log Message: @Ignore javadoc Fix TestClass method visibility Update build.xml to produce snapshots Index: Ignore.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/Ignore.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Ignore.java 24 Jan 2007 16:32:59 -0000 1.2 +++ Ignore.java 22 Mar 2007 17:47:52 -0000 1.3 @@ -6,10 +6,11 @@ import java.lang.annotation.Target; /** - * <p>Sometimes you want to temporarily disable a test. Methods annotated with {@link org.junit.Test} - * that are also annotated with <code>@Ignore</code> will not be executed as tests. Native JUnit 4 test runners - * should report the number of ignored tests along with the number of tests that ran and the - * number of tests that failed.</p> + * <p>Sometimes you want to temporarily disable a test or a group of tests. Methods annotated with + * {@link org.junit.Test} that are also annotated with <code>@Ignore</code> will not be executed as tests. + * Also, you can annotate a class containing test methods with <code>@Ignore</code> and none of the containing + * tests will be executed. Native JUnit 4 test runners should report the number of ignored tests along with the + * number of tests that ran and the number of tests that failed.</p> * * For example: * <pre> @@ -19,6 +20,13 @@ * <pre> * @Ignore("not ready yet") @Test public void something() { ... * </pre> + * @Ignore can also be applied to the test class:<br/> + * <pre> + * @Ignore public class IgnoreMe { + * @Test public void test1() { ... } + * @Test public void test2() { ... } + * } + * </pre> * */ @Retention(RetentionPolicy.RUNTIME) |