UpdateOperationWithCacheFileTask extends AbstractUpdateOperation { protected static File createTemporaryFile(@Nonnull final File file) { Check.notNull(file, "file"); final File tempFile = new File(file.getParent(), file.getName() + ".temp"); deleteFile(tempFile); return tempFile; } UpdateOperationWithCacheFileTask(@Nonnull final AbstractRefreshableDataStore dataStore, @Nonnull final File cacheFile); @Override void call();  }
@Test(expected = IllegalNullArgumentException.class) public void createTemporaryFile_null() { UpdateOperationWithCacheFileTask.createTemporaryFile(null); }