public interface DownloadCache extends ExternalResource
DownloadCacheallows tests to download a files and/or directories and optionally caches them.
Whether, how, and for how long files are cached is implementation-dependent.
|Modifier and Type||Method and Description|
Returns the configured DownloadCache implementation, or a
Returns either a cached or newly downloaded version of the given file.
afterTestFailure, afterTestSuccess, apply, before
Path getOrDownload(String url, Path targetDir) throws IOException
url- File/directory to download
targetDir- directory to place file in
IOException- if any IO operation fails
static DownloadCache get()
LolCacheif none is configured.
LolCacheis none is configured
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.