hprange / wounit

The WOUnit framework contains a set of utilities for testing WebObjects applications using JUnit 4.7 or later capabilities.
http://hprange.github.io/wounit/
Apache License 2.0
19 stars 18 forks source link

Implement TestRule to conform JUnit 4.9 #18

Closed hprange closed 11 years ago

hprange commented 13 years ago

Copied from JUnit 4.9 release notes:

In JUnit 4.9, fields that can be annotated with either @Rule or @ClassRule should be of type TestRule. The old MethodRule type, which only made sense for method-level rules, will still work, but is deprecated.

Most built-in Rules have been moved to the new type already, in a way that should be transparent to most users. TestWatchman has been deprecated, and replaced by TestWatcher, which has the same functionality, but implements the new type.

hprange commented 12 years ago

The new TestRule is incompatible with the old MethodRule. There is a bug report for this https://github.com/KentBeck/junit/issues/351.

hprange commented 11 years ago

The MethodRule class is not deprecated anymore as of JUnit 4.11. See https://github.com/junit-team/junit/blob/master/doc/ReleaseNotes4.11.md for more information.