The below is a simple method to test if a date is in range. While trying to generate junits, I am getting the below error:
Cannot generate essential test for isDateInRange: Timeout while generating the arrange/act section of your test.
public boolean isDateInRange(String entry, Model model) {
boolean a = lessEqualsThan(model.getStartDate(), entry);
boolean b = lessEqualsThan(entry, model.getEndDate());
return a && b;
}
Any ideas ?
Thanks
Venu