public class DotCiPluginAdapterTest {
@Test
public void should_copy_files_only_when_specified() throws IOException {
DotCiPluginAdapter plugin =spy( new DotCiPluginAdapter("myplugin", "") {
@Override
public boolean perform(DynamicBuild dynamicBuild, Launcher launcher, BuildListener listener) {
return true;
}
});
plugin.runFinished(null,null,null);
verify(plugin,never()).copyFiles(any(DynamicSubBuild.class),any(DynamicBuild.class),anyString(),any(BuildListener.class));
}