Class TestResources
java.lang.Object
org.junit.rules.TestWatcher
org.apache.maven.plugin.testing.resources.TestResources
- All Implemented Interfaces:
org.junit.rules.TestRule
Deprecated.
Junit4 test
Rule to extract and assert test resources.- Since:
- 3.1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertDirectoryContents(File dir, String... expectedPaths) Deprecated.static voidassertFileContents(File basedir, String expectedPath, String actualPath) Deprecated.static voidDeprecated.static voidDeprecated.getBasedir(String project) Deprecated.Creates new clean copy of test project directory structure.static voidDeprecated.protected voidstarting(org.junit.runner.Description d) Deprecated.static voidDeprecated.static voidDeprecated.Methods inherited from class org.junit.rules.TestWatcher
apply, failed, finished, skipped, skipped, succeeded
-
Constructor Details
-
TestResources
public TestResources()Deprecated. -
TestResources
Deprecated.
-
-
Method Details
-
starting
protected void starting(org.junit.runner.Description d) Deprecated.- Overrides:
startingin classorg.junit.rules.TestWatcher
-
getBasedir
Deprecated.Creates new clean copy of test project directory structure. The copy is named after both the test being executed and test project name, which allows the same test project can be used by multiple tests and by different instances of the same parametrized tests.TODO Provide alternative working directory naming for Windows, which still limits path names to ~250 charecters
- Throws:
IOException
-
cp
Deprecated.- Throws:
IOException
-
assertFileContents
public static void assertFileContents(File basedir, String expectedPath, String actualPath) throws IOException Deprecated.- Throws:
IOException
-
assertDirectoryContents
Deprecated. -
touch
Deprecated.- Throws:
InterruptedException
-
touch
Deprecated.- Throws:
InterruptedException
-
rm
Deprecated. -
create
Deprecated.- Throws:
IOException- Since:
- 3.2.0
-
MojoExtensioninstead.