public class TestFile extends TemporaryDirectoryBasedRuleSupport<TestFile> implements WrappedPath
| Modifier and Type | Class and Description |
|---|---|
static interface |
TestFile.ContentProducer |
| Constructor and Description |
|---|
TestFile(String name) |
TestFile(String name,
byte[] content) |
TestFile(String name,
String content) |
TestFile(String name,
TestFile.ContentProducer contentProducer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
evaluate(org.junit.runners.model.Statement base,
org.junit.runner.Description description,
Path baseDirectory) |
static TestFile.ContentProducer |
fromClasspath(String path) |
static TestFile.ContentProducer |
fromClasspath(String name,
Class<?> ofClass) |
static TestFile.ContentProducer |
fromClasspath(String path,
ClassLoader ofClassLoader) |
protected Path |
generateFileFor(Path baseDirectory) |
String |
toString() |
Path |
wrapped() |
apply, baseDirectory, deleteDirectory, evaluate, folderNameFor, generateTemporaryFolderFor, handleExceptionIfRequired, isFailOnProblemsWhileCleanup, normalizeFolderName, setFailOnProblemsWhileCleanupclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompareTo, endsWith, endsWith, getFileName, getFileSystem, getName, getNameCount, getParent, getRoot, isAbsolute, iterator, normalize, register, register, relativize, resolve, resolve, resolveSibling, resolveSibling, startsWith, startsWith, subpath, toAbsolutePath, toFile, toRealPath, toUriforEach, spliteratorpublic TestFile(@Nonnull String name, @Nullable TestFile.ContentProducer contentProducer)
protected void evaluate(@Nonnull org.junit.runners.model.Statement base, @Nonnull org.junit.runner.Description description, @Nonnull Path baseDirectory) throws Throwable
evaluate in class TemporaryDirectoryBasedRuleSupport<TestFile>Throwable@Nonnull public Path wrapped()
wrapped in interface WrappedPath@Nonnull protected Path generateFileFor(@Nonnull Path baseDirectory) throws Exception
Exceptionpublic String toString()
@Nonnull public static TestFile.ContentProducer fromClasspath(@Nonnull String name, @Nonnull Class<?> ofClass)
@Nonnull public static TestFile.ContentProducer fromClasspath(@Nonnull String path, @Nonnull ClassLoader ofClassLoader)
@Nonnull public static TestFile.ContentProducer fromClasspath(@Nonnull String path)
Copyright © 2017 echocat. All rights reserved.