Add one unit-test for a different way of calculating workdays to see if this also triggers test failures in Sonar Maven runs which currently fail for test-case TestWorkdayFunction
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1696498 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
85d45501c9
commit
badd478547
@ -65,6 +65,12 @@ public class TestWorkdayCalculator extends TestCase {
|
||||
assertEquals(4, WorkdayCalculator.instance.calculateWorkdays(A_FRIDAY, A_WEDNESDAY, new double[]{ A_SATURDAY, A_SUNDAY }));
|
||||
}
|
||||
|
||||
public void testCalculateWorkdaysNumberOfDays() {
|
||||
double start = 41553.0;
|
||||
int days = 1;
|
||||
assertEquals(new Date(113, 9, 7), WorkdayCalculator.instance.calculateWorkdays(start, days, new double[0]));
|
||||
}
|
||||
|
||||
public void testPastDaysOfWeekShouldReturn0Past0Saturdays() {
|
||||
final double A_WEDNESDAY = DateUtil.getExcelDate(new Date(111, DECEMBER, 7));
|
||||
final double A_FRIDAY = DateUtil.getExcelDate(new Date(111, DECEMBER, 9));
|
||||
|
Loading…
Reference in New Issue
Block a user