poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cen...@apache.org
Subject svn commit: r1696498 - /poi/trunk/src/testcases/org/apache/poi/ss/formula/atp/TestWorkdayCalculator.java
Date Tue, 18 Aug 2015 20:24:07 GMT
Author: centic
Date: Tue Aug 18 20:24:07 2015
New Revision: 1696498

URL: http://svn.apache.org/r1696498
Log:
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

Modified:
    poi/trunk/src/testcases/org/apache/poi/ss/formula/atp/TestWorkdayCalculator.java

Modified: poi/trunk/src/testcases/org/apache/poi/ss/formula/atp/TestWorkdayCalculator.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/ss/formula/atp/TestWorkdayCalculator.java?rev=1696498&r1=1696497&r2=1696498&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/ss/formula/atp/TestWorkdayCalculator.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/ss/formula/atp/TestWorkdayCalculator.java Tue Aug
18 20:24:07 2015
@@ -65,6 +65,12 @@ public class TestWorkdayCalculator exten
         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));



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message