public final class TestResourceHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOGGER
The
Logger to use. |
static String |
TEST_RESOURCES_PATH
The path to the base-dir of test-resources of the current module.
|
private static String |
testPath |
| Modifier | Constructor and Description |
|---|---|
private |
TestResourceHelper()
Construction forbidden.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getTestPath()
This method gets the filesystem path to test-resource of the current project (maven module).
|
static String |
getTestPath(Class<?> testClass,
String suffix)
This method gets the filesystem path to some test-resource named after the given
testClass. |
static String |
getTestPath(Package testPackage,
String suffix)
This method gets the filesystem path to some test-resource located in the given
testPackage. |
static String |
getTestPath(String relativePath)
This method gets the filesystem path to test-resource with the given
relativePath. |
private static final org.slf4j.Logger LOGGER
Logger to use.public static final String TEST_RESOURCES_PATH
private static String testPath
public static String getTestPath()
public static String getTestPath(String relativePath)
relativePath.relativePath - is the path relative to the test resources path.public static String getTestPath(Class<?> testClass, String suffix)
testClass.testClass - is the Class reflecting the path to the test-resource.suffix - is the suffix to append after the testClass (e.g. ".xml").public static String getTestPath(Package testPackage, String suffix)
testPackage.testPackage - is the Package reflecting the path to the test-resource.suffix - is the suffix to append after the testPackage (e.g. ".xml").Copyright © 2001–2016 mmm-Team. All rights reserved.