From: David S. <ds...@us...> - 2006-03-10 00:52:18
|
Update of /cvsroot/junit/junit/org/junit/runner In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1356/org/junit/runner Modified Files: RunWith.java Log Message: Patched javadoc, thanks to Matthias Schmidt RunWith is @Inherited Added acknowledgements to-do is up to date Index: RunWith.java =================================================================== RCS file: /cvsroot/junit/junit/org/junit/runner/RunWith.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- RunWith.java 16 Feb 2006 08:29:35 -0000 1.3 +++ RunWith.java 10 Mar 2006 00:52:15 -0000 1.4 @@ -1,21 +1,25 @@ package org.junit.runner; import java.lang.annotation.ElementType; +import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -//TODO add simple exampel +//TODO add simple example /** - * When you annotate a class with <code>@RunWith</code>, JUnit will invoke + * When a class is annotated with <code>@RunWith</code> or extends a class annotated with + * <code>@RunWith</code>, + * JUnit will invoke * the class it references to run the tests in that class instead of the runner - * built into JUnit. We added this feature late in development. While it + * built into JUnit. We added this feature late in development. While it * seems powerful we expect the runner API to change as we learn how people * really use it. Some of the classes that are currently internal will likely be refined * and become public. */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) +@Inherited public @interface RunWith { /** * @return a Runner class (must have a constructor that takes a single Class to run) |