One of the core principles of JUnit is to prefer extension points over features. This principle means that rather than putting all the features in the JUnit core, the JUnit team wants to offer an extensible mechanism that can be used by developers to meet their needs. This philosophy has existed in previous versions of JUnit as well. In JUnit 4, the team added support for the Rule API (application programming interface ) to provide functionalities like creating temporary directories and files, exception ...
© Shekhar Gulati, Rahul Sharma 2017
Shekhar Gulati and Rahul Sharma, Java Unit Testing with JUnit 5, https://doi.org/10.1007/978-1-4842-3015-2_7
7. JUnit 5 Extension Model
Shekhar Gulati1 and Rahul Sharma2
(1)Gurgaon, Haryana, India
(2)Delhi, Delhi, India
Get Java Unit Testing with JUnit 5: Test Driven Development with JUnit 5 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.