I have a @Service
annotated service class method createShiftPlan(int numberOfEmployees, int startingMonth, int year)
inside which I am using SimpleDateFormat
class's parse()
method.
How can I test for parse exceptions with integer inputs here?