Permalink
Browse files

Fixes #254: replaced @Rule by @ClassRule

  • Loading branch information...
1 parent ced634a commit 73c15ac3097078d2de1478dfecf4317a616346a3 @stefanbirkner stefanbirkner committed Jul 6, 2011
Showing with 4 additions and 4 deletions.
  1. +1 −1 doc/ReleaseNotes4.9.html
  2. +1 −1 doc/ReleaseNotes4.9.txt
  3. +2 −2 src/main/java/org/junit/ClassRule.java
View
@@ -17,7 +17,7 @@
public class UsesExternalResource {
public static Server myServer= new Server();
- @Rule
+ @ClassRule
public static ExternalResource resource= new ExternalResource() {
@Override
protected void before() throws Throwable {
View
@@ -17,7 +17,7 @@ all the test classes run, and disconnects after they are finished:
public class UsesExternalResource {
public static Server myServer= new Server();
- @Rule
+ @ClassRule
public static ExternalResource resource= new ExternalResource() {
@Override
protected void before() throws Throwable {
@@ -37,7 +37,7 @@
* public class UsesExternalResource {
* public static Server myServer= new Server();
*
- * @Rule
+ * @ClassRule
* public static ExternalResource resource= new ExternalResource() {
* @Override
* protected void before() throws Throwable {
@@ -57,4 +57,4 @@
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface ClassRule {
-}
+}

0 comments on commit 73c15ac

Please sign in to comment.