public class TestTools extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestTools.FileSource |
Modifier and Type | Field and Description |
---|---|
static Path |
PROJECT_ROOT |
static Path |
SAMPLE_DATA |
static Path |
TEST_RESOURCES_ABS |
static Path |
TEST_RESOURCES_REL |
static Path |
WORKING_PATH |
Constructor and Description |
---|
TestTools() |
Modifier and Type | Method and Description |
---|---|
static void |
copyDirToDest(Path relPath,
File destDir,
TestTools.FileSource fileSource) |
static File |
getFile(Path relPath,
TestTools.FileSource fileSource) |
static File |
getProjectFile(Path relPath) |
static org.junit.rules.TestRule |
getRepeatRule(boolean enforce)
If not enforced, the repeat rule applies only if the test is run in non-debug mode.
|
static File |
getResourceFile(Path relPath) |
static org.junit.rules.TestRule |
getTimeoutRule(int timeout) |
public static final Path TEST_RESOURCES_REL
public static final Path PROJECT_ROOT
public static final Path WORKING_PATH
public static final Path TEST_RESOURCES_ABS
public static final Path SAMPLE_DATA
public static org.junit.rules.TestRule getTimeoutRule(int timeout)
public static org.junit.rules.TestRule getRepeatRule(boolean enforce)
public static File getFile(Path relPath, TestTools.FileSource fileSource)
public static void copyDirToDest(Path relPath, File destDir, TestTools.FileSource fileSource)
Copyright © 2021 The Apache Software Foundation. All rights reserved.