Conditionally ignoring tests in JUnit
We might require to ignore a jUnit test based on a certain condition. jUnit just comes up with a @Ignore annotation which can be used to ignore the test.
We can use the below code to check if the condition has been met or not to ignore a test.
import...
sachinhandiekar.com1 min read