]> source.dussan.org Git - poi.git/commitdiff
fix broken test
authorPJ Fanning <fanningpj@apache.org>
Fri, 29 Apr 2022 20:53:49 +0000 (20:53 +0000)
committerPJ Fanning <fanningpj@apache.org>
Fri, 29 Apr 2022 20:53:49 +0000 (20:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1900399 13f79535-47bb-0310-9956-ffa450edef68

poi/src/main/java/org/apache/poi/ss/formula/functions/AverageIf.java
poi/src/test/java/org/apache/poi/ss/formula/functions/TestAverageIf.java

index d489790dd2f534ae47a147606c98a604a967fe9e..906156bd7653dbe9a7032ef1282aba2ed87cbb26 100644 (file)
@@ -29,7 +29,7 @@ import org.apache.poi.ss.formula.functions.CountUtils.I_MatchPredicate;
  * the generic AverageIfs version.
  */
 public class AverageIf extends Baseifs {
-    public static final FreeRefFunction instance = new Averageifs();
+    public static final FreeRefFunction instance = new AverageIf();
 
     @Override
     public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
index 396b4e79ec65b2b9a0f92293145f7f19213a3fbf..5223bff1844fba961029362240290991d44bdde7 100644 (file)
@@ -33,7 +33,6 @@ import org.apache.poi.ss.formula.eval.NumericValueEval;
 import org.apache.poi.ss.formula.eval.StringEval;
 import org.apache.poi.ss.formula.eval.ValueEval;
 import org.apache.poi.ss.usermodel.FormulaEvaluator;
-import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.Test;
 
 import java.io.IOException;
@@ -118,7 +117,6 @@ final class TestAverageIf {
         confirm(24500, args);
     }
 
-    @Disabled("broken test")
     @Test
     void testExample2() throws IOException {
         try (HSSFWorkbook wb = new HSSFWorkbook()) {