@Test public void shouldReturnEmptyCollectionWhenNoScriptFileGiven() { assertThat(scriptCollector.getScriptFiles(), is(not(nullValue()))); assertThat(scriptCollector.getScriptFiles(), is(empty())); }
@Override public Collection<ScriptFile> getScriptFiles() { return scripts; }
FailOnDuplicatesCollector implements ScriptCollector { @Override public Collection<ScriptFile> getScriptFiles() { return scripts; } }
FailOnDuplicatesCollector implements ScriptCollector { @Override public Collection<ScriptFile> getScriptFiles() { return scripts; }  }
FailOnDuplicatesCollector implements ScriptCollector { @Override public Collection<ScriptFile> getScriptFiles() { return scripts; }  @Override void collect(ScriptFile scriptFile); @Override Collection<ScriptFile> getScriptFiles(); }
FailOnDuplicatesCollector implements ScriptCollector { @Override public Collection<ScriptFile> getScriptFiles() { return scripts; }  @Override void collect(ScriptFile scriptFile); @Override Collection<ScriptFile> getScriptFiles();  }