The Startup
Published in

The Startup

Effectively Manage Your Test Cases with JUnit Rules

JUnit rule feature allows flexibly to add or redefine behavior in test methods in test classes and facilitate writing clean test cases

Photo: Unsplash by Lopez Robin

JUnit rules is a useful feature to manage the JUnit test cases. It allows performing common tasks before and after test cases in a more generic way based…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Somnath Musib

Somnath Musib

Manning Author for Spring Boot In Practice book, Individual Contributor, Technical Architect. Find more at https://musibs.github.io