Using the Rule Annotation
21st Jun 2021 by Aneesh Mistry

The Rule Annotation

Leverage the Rule annotation to neatly surround your unit tests with bespoke logic for setting up and tearing down components that can be used within each test. Explore the different implementations that come out of the box with JUnit, and dive a little deeper to understand how the TemporaryFolder may be valuable to use when testing with files.

YouTube video link


Share this post