Examples of evaluateTyped()


Examples of org.jfree.formula.Formula.evaluateTyped()

      formula.initialize(context);
    } catch (EvaluationException e)
    {
      Assert.fail("Initialization Error", e);
    }
    final TypeValuePair evaluation = formula.evaluateTyped();
    Assert.assertNotNull(evaluation);
    Assert.assertTrue(evaluation.getType().isFlagSet(Type.ARRAY_TYPE));
   
    final ArrayCallback table = (ArrayCallback)evaluation.getValue();
    Assert.assertEquals(table.getColumnCount(), 1);
View Full Code Here

Examples of org.jfree.formula.Formula.evaluateTyped()

      formula.initialize(context);
    } catch (EvaluationException e)
    {
      Assert.fail("Initialization Error", e);
    }
    final TypeValuePair evaluation = formula.evaluateTyped();
    Assert.assertNotNull(evaluation);
    Assert.assertTrue(evaluation.getType().isFlagSet(Type.ARRAY_TYPE));
   
    final ArrayCallback table = (ArrayCallback)evaluation.getValue();
    Assert.assertEquals(table.getColumnCount(), 3);
View Full Code Here

Examples of org.jfree.formula.Formula.evaluateTyped()

      formula.initialize(context);
    } catch (EvaluationException e)
    {
      Assert.fail("Initialization Error", e);
    }
    final TypeValuePair evaluation = formula.evaluateTyped();
    Assert.assertNotNull(evaluation);
    Assert.assertTrue(evaluation.getType().isFlagSet(Type.ARRAY_TYPE));
   
    final ArrayCallback table = (ArrayCallback)evaluation.getValue();
    Assert.assertEquals(table.getColumnCount(), 3);
View Full Code Here

Examples of org.jfree.formula.Formula.evaluateTyped()

      formula.initialize(context);
    } catch (EvaluationException e)
    {
      Assert.fail("Initialization Error", e);
    }
    final TypeValuePair evaluation = formula.evaluateTyped();
    Assert.assertNotNull(evaluation);
    Assert.assertTrue(evaluation.getType().isFlagSet(Type.DATATABLE_TYPE));
   
    final DataTable table = (DataTable)evaluation.getValue();
    Assert.assertEquals(table.getColumnCount(), 1);
View Full Code Here

Examples of org.jfree.formula.Formula.evaluateTyped()

      formula.initialize(context);
    } catch (EvaluationException e)
    {
      Assert.fail("Initialization Error", e);
    }
    final TypeValuePair evaluation = formula.evaluateTyped();
    Assert.assertNotNull(evaluation);
    Assert.assertTrue(evaluation.getType().isFlagSet(Type.DATATABLE_TYPE));
   
    final DataTable table = (DataTable)evaluation.getValue();
    Assert.assertEquals(table.getColumnCount(), 3);
View Full Code Here

Examples of org.jfree.formula.Formula.evaluateTyped()

      formula.initialize(context);
    } catch (EvaluationException e)
    {
      Assert.fail("Initialization Error", e);
    }
    final TypeValuePair evaluation = formula.evaluateTyped();
    Assert.assertNotNull(evaluation);
    Assert.assertTrue(evaluation.getType().isFlagSet(Type.DATATABLE_TYPE));
   
    final DataTable table = (DataTable)evaluation.getValue();
    Assert.assertEquals(table.getColumnCount(), 3);
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.Formula.evaluateTyped()

        errorTextHolder.setToolTipText(Messages.getInstance().getString("FormulaEditorDialog.ErrorNoFormulaContext"));
        return;
      }
      final Formula formula = new Formula(formulaText);
      formula.initialize(formulaContext);
      final TypeValuePair pair = formula.evaluateTyped();

      if (pair.getValue() instanceof LibFormulaErrorValue)
      {
        errorTextHolder.setText(Messages.getInstance().getString("FormulaEditorDialog.ShortEvaluationError"));
        errorTextHolder.setToolTipText(Messages.getInstance().getString("FormulaEditorDialog.EvaluationError"));
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.Formula.evaluateTyped()

  public void testRowsInlineArrays() throws Exception
  {
    final Formula formula = new Formula("{3|2|1}");
    formula.initialize(context);
    final TypeValuePair evaluation = formula.evaluateTyped();
    assertNotNull(evaluation);
    assertTrue(evaluation.getType().isFlagSet(Type.ARRAY_TYPE));

    final ArrayCallback table = (ArrayCallback) evaluation.getValue();
    assertEquals(table.getColumnCount(), 1);
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.Formula.evaluateTyped()

  public void testColumnsInlineArrays() throws Exception
  {
    final Formula formula = new Formula("{3;2;1}");
    formula.initialize(context);
    final TypeValuePair evaluation = formula.evaluateTyped();
    assertNotNull(evaluation);
    assertTrue(evaluation.getType().isFlagSet(Type.ARRAY_TYPE));

    final ArrayCallback table = (ArrayCallback) evaluation.getValue();
    assertEquals(table.getColumnCount(), 3);
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.Formula.evaluateTyped()

  public void testInlineArrays() throws Exception
  {
    final Formula formula = new Formula("{3;2;1|2;4;6}");
    formula.initialize(context);

    final TypeValuePair evaluation = formula.evaluateTyped();
    assertNotNull(evaluation);
    assertTrue(evaluation.getType().isFlagSet(Type.ARRAY_TYPE));

    final ArrayCallback table = (ArrayCallback) evaluation.getValue();
    assertEquals(table.getColumnCount(), 3);
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.