@Test public void listGroovyMacros() { List<String> macros = Lists.newArrayList("macro1", "macro2"); when(groovyMacroScanner.listMacros()).thenReturn(macros); assertEquals(macros, macroFactory.listGroovyMacros()); }
public List<String> listGroovyMacros() { return groovyMacroScanner.listMacros(); }
MacroFactory implements Lifecycle { public List<String> listGroovyMacros() { return groovyMacroScanner.listMacros(); } }
MacroFactory implements Lifecycle { public List<String> listGroovyMacros() { return groovyMacroScanner.listMacros(); }  }
MacroFactory implements Lifecycle { public List<String> listGroovyMacros() { return groovyMacroScanner.listMacros(); }  @Override void start(); @Override void stop(); @Override boolean isRunning(); IMacro get(String macroName); Set<IMacroDescriptor> getDescriptors(); List<String> listGroovyMacros(); String getGroovyMacroCode(String name); List<CompilationMessage> verifyGroovyMacro(String code); void saveGroovyMacro(String name, String code); void deleteGroovyMacro(String name); Object getData(String macroName, String request, Map<String, String[]> parameterMap, Authentication authentication); }
MacroFactory implements Lifecycle { public List<String> listGroovyMacros() { return groovyMacroScanner.listMacros(); }  @Override void start(); @Override void stop(); @Override boolean isRunning(); IMacro get(String macroName); Set<IMacroDescriptor> getDescriptors(); List<String> listGroovyMacros(); String getGroovyMacroCode(String name); List<CompilationMessage> verifyGroovyMacro(String code); void saveGroovyMacro(String name, String code); void deleteGroovyMacro(String name); Object getData(String macroName, String request, Map<String, String[]> parameterMap, Authentication authentication);  }