CVS: junit/src/org/junit Ignore.java,1.2,1.3
David Saff <[email protected]> Thu, 22 Mar 2007 10:47:54 -0700
| Newsgroups | gmane.comp.java.junit.devel |
|---|---|
| Message-ID | <[email protected]> |
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)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV