execution of a test (@Rule) or a test class (@ClassRule) • Designed to be combined — great for simple use cases • But: a single rule cannot be used for method-level and class-level callbacks, no support for instance-level callbacks
writing tests (Java 8!) • Powerful extension model with a focus on composability • API Segregation: Decouple test execution/reporting from test definition • Compatibility with older releases + migration path • Modularization + no external dependencies
2016.2 • Eclipse support is available on Eclipse Marketplace: https://marketplace.eclipse.org/content/junit-5-support- beta-oxygen Will be integrated without requiring any additional work in Oxygen.1a • Interim solution for other IDEs: JUnitPlatform Runner
with @ExtendWith to register extensions • Supports an arbitrary number of extensions at the same time • May be used as a meta-annotation • Global: Opt-in support for registration via ServiceLoader