Utility class for working with test fixtures.
| Type Params | Return Type | Name and description |
|---|---|---|
|
static java.io.File |
createDirectoryFixture(java.lang.String resourceName, org.junit.rules.TemporaryFolder testProjectDir)This function locates a test fixture zip file on the class path and expands the zip file into the test project directory. |
|
static java.io.File |
createDirectoryFixture(java.lang.String resourceName, java.io.File fixtureFile, java.io.File fixtureDir) |
|
static java.io.File |
createFileFixture(java.lang.String resourceName, org.junit.rules.TemporaryFolder testProjectDir) |
|
static java.io.File |
createFileFixture(java.lang.String resourceName, org.junit.rules.TemporaryFolder testProjectDir, java.lang.String suffix) |
|
static java.io.FileSystem |
createFileSystemFixture(java.lang.String resourceName, org.junit.rules.TemporaryFolder testProjectDir) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
This function locates a test fixture zip file on the class path and expands
the zip file into the test project directory.
The zip file can be prepared using the processFixtures task.
resourceName - The name of the fixture resource to expandtestProjectDir - The test project temporary directory