Package ag.ion.bion.officelayer.internal.text.table

Examples of ag.ion.bion.officelayer.internal.text.table.TextTableFormula


   *
   * @author Miriam Sutter
   */
  private void formula(String formulaValue, double realResult, HashMap argumentMap) {
    try {     
      TextTableFormula formula = new TextTableFormula(new TextTableFormulaExpression(formulaValue));
      IArgument[] arguments = formula.getArguments();
      for(int i = 0; i < arguments.length; i++) {
        arguments[i].setValue(argumentMap.get(arguments[i].getName()));
      }
      
      double result = formula.calcFormula();
      Assert.assertEquals(result,realResult,0.001);
    }
    catch(Exception e) {
      e.printStackTrace();
      Assert.fail();
View Full Code Here


   * @author Miriam Sutter
   */
  private void formula(String formulaValue, double realResult,
      HashMap argumentMap) {
    try {
      TextTableFormula formula = new TextTableFormula(
          new TextTableFormulaExpression(formulaValue));
      IArgument[] arguments = formula.getArguments();
      for (int i = 0; i < arguments.length; i++) {
        arguments[i].setValue(argumentMap.get(arguments[i].getName()));
      }

      double result = formula.calcFormula();
      Assert.assertEquals(result, realResult, 0.001);
    } catch (Exception e) {
      e.printStackTrace();
      Assert.fail();
    }
View Full Code Here

TOP

Related Classes of ag.ion.bion.officelayer.internal.text.table.TextTableFormula

Copyright © 2018 www.massapicom. 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.