Rules
are used to enhance the behavior of each test method in a test class.
Below
table summarizes the different rules supported by junit.
Rule
|
Description
|
By
using this, you can check that your code is throwing specific exception.
|
|
Continue
test execution even after failure
|
|
Create
Temporary folder
|
|
Time
out for all unit tests
|
|
Get
the test case name under execution
|
|
Initialize
external resources
|
|
Rules
applicable to static fields
|
|
Chain
multiple rules
|
No comments:
Post a Comment