use of org.craftercms.engine.macro.MacroResolver in project engine by craftercms.
the class FolderScanningSiteListResolverTest method createMacroResolver.
private MacroResolver createMacroResolver() {
MacroResolver macroResolver = mock(MacroResolver.class);
doAnswer(new Answer<String>() {
@Override
public String answer(InvocationOnMock invocation) throws Throwable {
return (String) invocation.getArguments()[0];
}
}).when(macroResolver).resolveMacros(anyString());
return macroResolver;
}
Aggregations