@Test public void testCopyDirExists() { final File tempFile = new File(temporaryFolder.getRoot(), "rooty"); tempFile.mkdirs(); final TaskContext context = new TaskContext(null, null, null, null, null, null, tempFile, false, true, false, false, null); copyTask.execute(context); Assert.assertTrue("jsdoc.zip should exist.", new File(tempFile, "jsdoc.zip").exists()); }
@Override public void execute(final TaskContext context) throws TaskException { try { final URL resource = findJsDocArchive(); copyTo(resource, context.getTempDir(), "jsdoc.zip"); } catch (IOException e) { throw new TaskException("Unable to copy jsdoc zip to temp dir.", e); } }
CopyTask implements Task { @Override public void execute(final TaskContext context) throws TaskException { try { final URL resource = findJsDocArchive(); copyTo(resource, context.getTempDir(), "jsdoc.zip"); } catch (IOException e) { throw new TaskException("Unable to copy jsdoc zip to temp dir.", e); } } }
CopyTask implements Task { @Override public void execute(final TaskContext context) throws TaskException { try { final URL resource = findJsDocArchive(); copyTo(resource, context.getTempDir(), "jsdoc.zip"); } catch (IOException e) { throw new TaskException("Unable to copy jsdoc zip to temp dir.", e); } }  }
CopyTask implements Task { @Override public void execute(final TaskContext context) throws TaskException { try { final URL resource = findJsDocArchive(); copyTo(resource, context.getTempDir(), "jsdoc.zip"); } catch (IOException e) { throw new TaskException("Unable to copy jsdoc zip to temp dir.", e); } }  @Override void execute(final TaskContext context); }
CopyTask implements Task { @Override public void execute(final TaskContext context) throws TaskException { try { final URL resource = findJsDocArchive(); copyTo(resource, context.getTempDir(), "jsdoc.zip"); } catch (IOException e) { throw new TaskException("Unable to copy jsdoc zip to temp dir.", e); } }  @Override void execute(final TaskContext context);  }