@Test public void sumFunction() throws Exception { FunctionLibrary funcLib = new FunctionLibrary(); DialogLibrary dialogLib = new DialogLibrary(); HashMap<Object, Object> context = new HashMap<>(); Function f = new SumFunction(new ConfigThingy("SUM", "\"1\" \"2\""), funcLib, dialogLib, context); assertEquals(0, f.parameters().length); assertEquals("3", f.getString(null)); assertFalse(f.getBoolean(null)); Collection<String> dialogFunctions = new ArrayList<>(); f.getFunctionDialogReferences(dialogFunctions); assertTrue(dialogFunctions.isEmpty()); f = new SumFunction(new ConfigThingy("SUM", "\"test\" \"2\""), funcLib, dialogLib, context); assertEquals(FunctionLibrary.ERROR, f.getString(null)); }
public SumFunction(ConfigThingy conf, FunctionLibrary funcLib, DialogLibrary dialogLib, Map<Object, Object> context) { super(conf, funcLib, dialogLib, context); }
SumFunction extends NumberFunction { public SumFunction(ConfigThingy conf, FunctionLibrary funcLib, DialogLibrary dialogLib, Map<Object, Object> context) { super(conf, funcLib, dialogLib, context); } }
SumFunction extends NumberFunction { public SumFunction(ConfigThingy conf, FunctionLibrary funcLib, DialogLibrary dialogLib, Map<Object, Object> context) { super(conf, funcLib, dialogLib, context); } SumFunction(ConfigThingy conf, FunctionLibrary funcLib,
      DialogLibrary dialogLib, Map<Object, Object> context); }
SumFunction extends NumberFunction { public SumFunction(ConfigThingy conf, FunctionLibrary funcLib, DialogLibrary dialogLib, Map<Object, Object> context) { super(conf, funcLib, dialogLib, context); } SumFunction(ConfigThingy conf, FunctionLibrary funcLib,
      DialogLibrary dialogLib, Map<Object, Object> context);  }
SumFunction extends NumberFunction { public SumFunction(ConfigThingy conf, FunctionLibrary funcLib, DialogLibrary dialogLib, Map<Object, Object> context) { super(conf, funcLib, dialogLib, context); } SumFunction(ConfigThingy conf, FunctionLibrary funcLib,
      DialogLibrary dialogLib, Map<Object, Object> context);   }