In this video tutorial of Junit you will learn how to write tests that use rules.
The following rules are covered:
Provided rules:
TemporaryFolder Rule
ErrorCollector Rule
TestName Rule
Timeout Rule
ExpectedException Rules
ClassRule rule
ExternalResource rule
RuleChain rule
Custom rules:
MyRuleOne extend ExternalResource
MyRuleTwo implements TestRule
Main web site: http://www.craftofprogramming.com
facebook: / craftofprogramming.com
twitter: / craftofprogramming.com