@Test(expected = IOException.class) public void missingOutput() throws IOException { DefaultSingleOutputWriter victim = new DefaultSingleOutputWriter(ExistingOutputPolicy.OVERWRITE, context); victim.dispatch(new FileTaskOutput(folder.newFile())); }
@Override public void dispatch(FileTaskOutput output) throws IOException { if (isNull(taskOutput)) { throw new IOException("No task output set"); } moveFile(taskOutput, output.getDestination(), existingOutputPolicy, executionContext); }
DefaultSingleOutputWriter implements SingleOutputWriter { @Override public void dispatch(FileTaskOutput output) throws IOException { if (isNull(taskOutput)) { throw new IOException("No task output set"); } moveFile(taskOutput, output.getDestination(), existingOutputPolicy, executionContext); } }
DefaultSingleOutputWriter implements SingleOutputWriter { @Override public void dispatch(FileTaskOutput output) throws IOException { if (isNull(taskOutput)) { throw new IOException("No task output set"); } moveFile(taskOutput, output.getDestination(), existingOutputPolicy, executionContext); } DefaultSingleOutputWriter(ExistingOutputPolicy existingOutputPolicy, TaskExecutionContext executionContext); }
DefaultSingleOutputWriter implements SingleOutputWriter { @Override public void dispatch(FileTaskOutput output) throws IOException { if (isNull(taskOutput)) { throw new IOException("No task output set"); } moveFile(taskOutput, output.getDestination(), existingOutputPolicy, executionContext); } DefaultSingleOutputWriter(ExistingOutputPolicy existingOutputPolicy, TaskExecutionContext executionContext); @Override void taskOutput(File taskOutput); @Override void dispatch(FileTaskOutput output); @Override void dispatch(DirectoryTaskOutput output); @Override void dispatch(FileOrDirectoryTaskOutput output); }
DefaultSingleOutputWriter implements SingleOutputWriter { @Override public void dispatch(FileTaskOutput output) throws IOException { if (isNull(taskOutput)) { throw new IOException("No task output set"); } moveFile(taskOutput, output.getDestination(), existingOutputPolicy, executionContext); } DefaultSingleOutputWriter(ExistingOutputPolicy existingOutputPolicy, TaskExecutionContext executionContext); @Override void taskOutput(File taskOutput); @Override void dispatch(FileTaskOutput output); @Override void dispatch(DirectoryTaskOutput output); @Override void dispatch(FileOrDirectoryTaskOutput output);  }