diff options
Diffstat (limited to 'src/main/java/org/junit/After.java')
-rw-r--r-- | src/main/java/org/junit/After.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/main/java/org/junit/After.java b/src/main/java/org/junit/After.java index 39aa6e5..eae7e3a 100644 --- a/src/main/java/org/junit/After.java +++ b/src/main/java/org/junit/After.java @@ -6,15 +6,15 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** - * <p>If you allocate external resources in a {@link org.junit.Before} method you need to release them + * If you allocate external resources in a {@link org.junit.Before} method you need to release them * after the test runs. Annotating a <code>public void</code> method * with <code>@After</code> causes that method to be run after the {@link org.junit.Test} method. All <code>@After</code> - * methods are guaranteed to run even if a {@link org.junit.Before} or {@link org.junit.Test} method throws an + * methods are guaranteed to run even if a {@link org.junit.Before} or {@link org.junit.Test} method throws an * exception. The <code>@After</code> methods declared in superclasses will be run after those of the current - * class.</p> - * + * class, unless they are overridden in the current class. + * <p> * Here is a simple example: -* <pre> + * <pre> * public class Example { * File output; * @Before public void createOutputFile() { @@ -28,9 +28,10 @@ import java.lang.annotation.Target; * } * } * </pre> - * + * * @see org.junit.Before * @see org.junit.Test + * @since 4.0 */ @Retention(RetentionPolicy.RUNTIME) |