@Test public void getSettings() { when(systemSettingsStore.getMacroSetting(MACRO, "key")).thenReturn("value"); assertEquals("value", context.getSettings().getSetting("key")); }
@Override public IMacroSettings getSettings() { return new IMacroSettings() { @Override public String getSetting(String key) { return systemSettingsStore.getMacroSetting(macroName, key); } }; }
MacroContext implements IMacroContext { @Override public IMacroSettings getSettings() { return new IMacroSettings() { @Override public String getSetting(String key) { return systemSettingsStore.getMacroSetting(macroName, key); } }; } }
MacroContext implements IMacroContext { @Override public IMacroSettings getSettings() { return new IMacroSettings() { @Override public String getSetting(String key) { return systemSettingsStore.getMacroSetting(macroName, key); } }; } MacroContext(String macroName, String parameters, String body, HtmlSerializerContext htmlSerializerContext, Locale locale); }
MacroContext implements IMacroContext { @Override public IMacroSettings getSettings() { return new IMacroSettings() { @Override public String getSetting(String key) { return systemSettingsStore.getMacroSetting(macroName, key); } }; } MacroContext(String macroName, String parameters, String body, HtmlSerializerContext htmlSerializerContext, Locale locale); @Override IMacroSettings getSettings(); }
MacroContext implements IMacroContext { @Override public IMacroSettings getSettings() { return new IMacroSettings() { @Override public String getSetting(String key) { return systemSettingsStore.getMacroSetting(macroName, key); } }; } MacroContext(String macroName, String parameters, String body, HtmlSerializerContext htmlSerializerContext, Locale locale); @Override IMacroSettings getSettings();  }