@Test public void assertEmptyWithoutFilesystem () { ScriptManager newScriptManager = new ScriptManager(false); assertThat(newScriptManager.getScripts(), hasSize(0)); }
public Collection<Script> getScripts () { return getScripts(script -> true); }
ScriptManager { public Collection<Script> getScripts () { return getScripts(script -> true); } }
ScriptManager { public Collection<Script> getScripts () { return getScripts(script -> true); } ScriptManager(@Value("${allowScriptsFromFilesystem:false}") boolean allowScriptsFromFilesystem); }
ScriptManager { public Collection<Script> getScripts () { return getScripts(script -> true); } ScriptManager(@Value("${allowScriptsFromFilesystem:false}") boolean allowScriptsFromFilesystem); Collection<Script> getScripts(); Collection<Script> getScripts(Predicate<? super Script> predicate); }
ScriptManager { public Collection<Script> getScripts () { return getScripts(script -> true); } ScriptManager(@Value("${allowScriptsFromFilesystem:false}") boolean allowScriptsFromFilesystem); Collection<Script> getScripts(); Collection<Script> getScripts(Predicate<? super Script> predicate);  }