I have a test class in which I have around 10 unit test cases. In this, I have a mock method created which is useful in just 2 of the 10 test cases.
public static class MockCreateStudent extends Mockup<CreateStudentDAO>{
@Mock
public boolean isFeesPaid(long studentID){
return true;
}
}
So technically I want the isFeesPaid() method to be executed as-is for 8 test cases and mocked for 2 of the test cases.
Is there any way this can be achieved?