@Test public void testExternalFunctionFunction() throws Exception { Function f = new ExternalFunctionFunction(new ConfigThingy("", "URL \"java:de.muenchen.allg.itd51.wollmux.func.ExternalFunctionFunctionTest.extMethod\"")); assertEquals(0, f.parameters().length); assertEquals("extMethod", f.getString(null)); assertFalse(f.getBoolean(null)); Collection<String> dialogFunctions = new ArrayList<>(); f.getFunctionDialogReferences(dialogFunctions); assertTrue(dialogFunctions.isEmpty()); f = new ExternalFunctionFunction(new ConfigThingy("", "URL \"java:de.muenchen.allg.itd51.wollmux.func.ExternalFunctionFunctionTest.extMethod2\"")); assertEquals(FunctionLibrary.ERROR, f.getString(null)); }
public ExternalFunctionFunction(ConfigThingy conf) { func = new ExternalFunction(conf, ConfClassLoader.getClassLoader()); }
ExternalFunctionFunction implements Function { public ExternalFunctionFunction(ConfigThingy conf) { func = new ExternalFunction(conf, ConfClassLoader.getClassLoader()); } }
ExternalFunctionFunction implements Function { public ExternalFunctionFunction(ConfigThingy conf) { func = new ExternalFunction(conf, ConfClassLoader.getClassLoader()); } ExternalFunctionFunction(ConfigThingy conf); }
ExternalFunctionFunction implements Function { public ExternalFunctionFunction(ConfigThingy conf) { func = new ExternalFunction(conf, ConfClassLoader.getClassLoader()); } ExternalFunctionFunction(ConfigThingy conf); @Override String[] parameters(); @Override void getFunctionDialogReferences(Collection<String> set); @Override String getString(Values parameters); @Override boolean getBoolean(Values parameters); }
ExternalFunctionFunction implements Function { public ExternalFunctionFunction(ConfigThingy conf) { func = new ExternalFunction(conf, ConfClassLoader.getClassLoader()); } ExternalFunctionFunction(ConfigThingy conf); @Override String[] parameters(); @Override void getFunctionDialogReferences(Collection<String> set); @Override String getString(Values parameters); @Override boolean getBoolean(Values parameters);  }