diff options
Diffstat (limited to 'src/main/java/org/junit/Before.java')
-rw-r--r-- | src/main/java/org/junit/Before.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/org/junit/Before.java b/src/main/java/org/junit/Before.java index 66b34ee..def8adb 100644 --- a/src/main/java/org/junit/Before.java +++ b/src/main/java/org/junit/Before.java @@ -6,13 +6,12 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** - * <p>When writing tests, it is common to find that several tests need similar + * When writing tests, it is common to find that several tests need similar * objects created before they can run. Annotating a <code>public void</code> method * with <code>@Before</code> causes that method to be run before the {@link org.junit.Test} method. - * The <code>@Before</code> methods of superclasses will be run before those of the current class. - * No other ordering is defined. - * </p> - * + * The <code>@Before</code> methods of superclasses will be run before those of the current class, + * unless they are overridden in the current class. No other ordering is defined. + * <p> * Here is a simple example: * <pre> * public class Example { @@ -28,9 +27,10 @@ import java.lang.annotation.Target; * } * } * </pre> - * + * * @see org.junit.BeforeClass * @see org.junit.After + * @since 4.0 */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) |