JUnit 5 Tutorial: Rules

Опубликовано: 15 Февраль 2026
на канале: Craft Of Programming
2,899
54

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