public final class LolCache extends Object
DownloadCache
implementation that does not cache anything.LolCacheFactory
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
Constructor and Description |
---|
LolCache(org.junit.rules.TemporaryFolder folder) |
Modifier and Type | Method and Description |
---|---|
void |
afterTestSuccess() |
void |
before() |
Path |
getOrDownload(String url,
Path targetDir)
Returns either a cached or newly downloaded version of the given file.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get
afterTestFailure, apply
public void afterTestSuccess()
afterTestSuccess
in interface ExternalResource
public void before() throws IOException
before
in interface ExternalResource
IOException
public Path getOrDownload(String url, Path targetDir) throws IOException
DownloadCache
getOrDownload
in interface DownloadCache
url
- File/directory to downloadtargetDir
- directory to place file inIOException
- if any IO operation failsCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.