This pattern is unrestricted; it is used for testing any architectural layer.
A PED Test Rule (Rule) implements the JUnit TestRule Interface and provides a consistent semantic for pre/post configuration of tests. The Rule approach is preferred over base classes and Runners for much same reason; multiple rules can be active concurrently.
|Extend Base Class||Y|
|Protected Constructor||Y||Supports Fluent Methods|
|Static Public Methods (enum)||Y||1.|
|Delegate to Helper||Optional|
- There are situations where extending this class may be advantageous, therefore we recommend that an enum is NOT used.