Examples of ExcelAntEvaluationResult


Examples of org.apache.poi.ss.excelant.util.ExcelAntEvaluationResult

                  eval.setGlobalPrecision( globalPrecision ) ;
              }

              try {
                  eval.execute() ;
                  ExcelAntEvaluationResult result = eval.getResult() ;
                  if( result.didTestPass() &&
                          result.evaluationCompleteWithError() == false ) {
                      if( showSuccessDetails == true ) {
                          log("Succeeded when evaluating " +
                           result.getCellName() + ".  It evaluated to " +
                             result.getReturnValue() + " when the value of " +
                             eval.getExpectedValue() + " with precision of " +
                             eval.getPrecision(), Project.MSG_INFO ) ;
                      }
                  } else {
                      if( showFailureDetail == true ) {
                          failureMessages.add( "\tFailed to evaluate cell " +
                           result.getCellName() + ".  It evaluated to " +
                           result.getReturnValue() + " when the value of " +
                           eval.getExpectedValue() + " with precision of " +
                           eval.getPrecision() + " was expected." ) ;

                      }
                      passed = false ;
                      failureCount++ ;
                     
                      if( eval.requiredToPass() == true ) {
                          throw new BuildException( "\tFailed to evaluate cell " +
                                  result.getCellName() + ".  It evaluated to " +
                                  result.getReturnValue() + " when the value of " +
                                  eval.getExpectedValue() + " with precision of " +
                                  eval.getPrecision() + " was expected." ) ;
                      }
                  }
              } catch( NullPointerException npe ) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.