-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
When I run this test I expect getMinutes() will return 60 minutes .
It instead returns 0.
Can you check please ?
Thanks in advance for you support
@Test
public void testCalculatorIssues() {
calculator = new WorkTimeCalculator(parse("02/15/2020 18:30"), parse("02/17/2020 10:30"));
calculator.setWeekends(Calendar.SATURDAY, Calendar.SUNDAY);
Assert.assertEquals(60, calculator.getMinutes(), 0);
}
The same test as before but with differents hours and minutes values ,this time the test will pass
@Test
public void testCalculatorIssue_two() {
calculator = new WorkTimeCalculator(parse("02/15/2020 09:30"), parse("02/17/2020 10:30"));
calculator.setWeekends(Calendar.SATURDAY, Calendar.SUNDAY);
Assert.assertEquals(60, calculator.getMinutes(), 0);
}
mercury77mercury77mercury77
Metadata
Metadata
Assignees
Labels
No labels