Inherited by org.corpus_tools.pepper.testFramework.helpers.PepperModuleTest.
|
static final Logger | logger = LoggerFactory.getLogger("Pepper") |
|
◆ PepperModuleTestHelper()
org.corpus_tools.pepper.testFramework.helpers.PepperModuleTestHelper.PepperModuleTestHelper |
( |
| ) |
|
◆ compareFiles() [1/2]
boolean org.corpus_tools.pepper.testFramework.helpers.PepperModuleTestHelper.compareFiles |
( |
File |
file1, |
|
|
File |
file2 |
|
) |
| throws IOException |
Compares the content of two files.
Iff they are exactly the same, than true will be returned. False otherwise.
- Parameters
-
file1 | first file to compare |
file2 | second file to compare |
- Returns
- true, iff files are exactly the same
- Exceptions
-
◆ compareFiles() [2/2]
boolean org.corpus_tools.pepper.testFramework.helpers.PepperModuleTestHelper.compareFiles |
( |
URI |
uri1, |
|
|
URI |
uri2 |
|
) |
| throws IOException |
Compares the content of two files.
Iff they are exactly the same, than true will be returned. False otherwise.
- Parameters
-
uri1 | first file to compare |
uri2 | second file to compare |
- Returns
- true, iff files are exactly the same
- Exceptions
-
◆ getFixture()
PepperModule org.corpus_tools.pepper.testFramework.helpers.PepperModuleTestHelper.getFixture |
( |
| ) |
|
|
protected |
◆ getTempPath()
File org.corpus_tools.pepper.testFramework.helpers.PepperModuleTestHelper.getTempPath |
( |
String |
testDirectory | ) |
|
Returns a File object pointing to a temporary path, where the caller can store temporary files.
The temporary path is located in the temporary directory provided by the underlying os. The resulting directory is located in TEMP_PATH_BY_OS/{@value TMP_TEST_DIR}/ testDirectory
.
- Parameters
-
testDirectory | last part of the temporary path |
- Returns
- a file object locating to a temporary folder, where files can be stored temporarily
◆ getTempURI()
URI org.corpus_tools.pepper.testFramework.helpers.PepperModuleTestHelper.getTempURI |
( |
String |
testDirectory | ) |
|
Returns a File object pointing to a temporary path, where the caller can store temporary files.
The temporary path is located in the temporary directory provided by the underlying os. The resulting directory is located in TEMP_PATH_BY_OS/{@value TMP_TEST_DIR}/ testDirectory
.
- Parameters
-
testDirectory | last part of the temporary path |
- Returns
- a file object locating to a temporary folder, where files can be stored temporarily
◆ initialize()
void org.corpus_tools.pepper.testFramework.helpers.PepperModuleTestHelper.initialize |
( |
| ) |
|
Initializes this object.
This means:
◆ setFixture()
void org.corpus_tools.pepper.testFramework.helpers.PepperModuleTestHelper.setFixture |
( |
PepperModule |
fixture | ) |
|
|
protected |
◆ setResourcesURI()
void org.corpus_tools.pepper.testFramework.helpers.PepperModuleTestHelper.setResourcesURI |
( |
URI |
resourceURI | ) |
|
Sets the path to resources folder for module.
- Parameters
-
◆ start()
void org.corpus_tools.pepper.testFramework.helpers.PepperModuleTestHelper.start |
( |
| ) |
|