@Test public void saveGroovyMacro() throws IOException { macroFactory.saveGroovyMacro(GROOVY_MACRO, "code"); InOrder inOrder = inOrder(groovyMacroScanner); inOrder.verify(groovyMacroScanner).saveMacro(GROOVY_MACRO, "code"); inOrder.verify(groovyMacroScanner).findGroovyMacros(); }
public void saveGroovyMacro(String name, String code) throws IOException { groovyMacroScanner.saveMacro(name, code); rescanAllMacros(); }
MacroFactory implements Lifecycle { public void saveGroovyMacro(String name, String code) throws IOException { groovyMacroScanner.saveMacro(name, code); rescanAllMacros(); } }
MacroFactory implements Lifecycle { public void saveGroovyMacro(String name, String code) throws IOException { groovyMacroScanner.saveMacro(name, code); rescanAllMacros(); }  }
MacroFactory implements Lifecycle { public void saveGroovyMacro(String name, String code) throws IOException { groovyMacroScanner.saveMacro(name, code); rescanAllMacros(); }  @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 void saveGroovyMacro(String name, String code) throws IOException { groovyMacroScanner.saveMacro(name, code); rescanAllMacros(); }  @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);  }