Inherited by org.corpus_tools.pepper.testFramework.helpers.PepperModuleTest.
|
| PepperModuleTestHelper () |
| Creates an object of type PepperModuleTest .
|
|
void | initialize () |
| Initializes this object.
|
|
URI | getTempURI (String testDirectory) |
| Returns a File object pointing to a temporary path, where the caller can store temporary files.
|
|
File | getTempPath (String testDirectory) |
| Returns a File object pointing to a temporary path, where the caller can store temporary files.
|
|
void | start () |
| This methods starts the processing of Pepper in the development environment.
|
|
void | setResourcesURI (URI resourceURI) |
| Sets the path to resources folder for module.
|
|
boolean | compareFiles (URI uri1, URI uri2) throws IOException |
| Compares the content of two files.
|
|
boolean | compareFiles (File file1, File file2) throws IOException |
| Compares the content of two files.
|
|
|
static File | getTempPath_static (String testDirectory) |
| {@inheritDoc PepperTestUtil::getTempPath_static(String)}
|
|
static String | getTestResources () |
| {@inheritDoc PepperTestUtil::getTestResources()}
|
|
static String | getSrcResources () |
| {@inheritDoc PepperTestUtil::getSrcResources()}
|
|
|
static String | TMP_TEST_DIR = PepperTestUtil.TMP_TEST_DIR |
| {@inheritDoc PepperTestUtil::TMP_TEST_DIR}
|
|
|
void | setFixture (PepperModule fixture) |
| Sets the current fixture to test.
|
|
PepperModule | getFixture () |
| Returns the current fixture to test.
|
|
|
URI | resourceURI = null |
|
PepperModule | fixture = null |
|
|
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 |
Returns the current fixture to test.
- Returns
- object to test, derived from
PepperModule
◆ 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 |
( |
| ) |
|