I have @Theroy class as:
@Datapoints data1, data 2 ..... data 10 and,
@Theory
testMethod (data1, data2, data3) {
//do testing
exit from testMethod once testing is passed
}
I want to pass the testing exactly once, but not to run all the possible cases of datapoints.
Apparantly, i just want to test once, and exit to another test once passed.
I am not wishing System.exit() ... because I am not exiting jvm, but only that @Theory test is to be exit.
Thanks