This class offers some static fields and methods for testing PepperModule
objects.
More...
|
static File | getTempPath_static (String testDirectory) |
| Returns a File object pointing to a temporary path, where the caller can store temporary files.
|
|
static String | getSrcResources () |
| Returns a default test folder, where to find resources for tests.
|
|
static String | getTestResources () |
| Returns a default test folder, where to find resources for tests.
|
|
static Pepper | createDefaultPepper () |
|
static void | start (final Collection<? extends PepperModule > fixtures) |
| This methods starts the processing of Pepper in the development environment for a set of Pepper modules.
|
|
static< T extends PepperModule > void | runPepperForTest (T... fixtures) |
|
static PepperJob | prepareFixturesAndCreateJob (final Pepper pepper, final Collection<? extends PepperModule > fixtures) |
|
static void | start (final Pepper pepper, final Collection<? extends PepperModule > fixtures) |
|
|
static String | TMP_TEST_DIR = "pepper-test" |
| Name of the directory where tests for Pepper and Pepper modules can be stored.
|
|
This class offers some static fields and methods for testing PepperModule
objects.
- Author
- florian
◆ getSrcResources()
static String org.corpus_tools.pepper.testFramework.PepperTestUtil.getSrcResources |
( |
| ) |
|
|
static |
Returns a default test folder, where to find resources for tests.
When using the default maven structure, this folder is located at 'src/test/resources/'.
- Returns
- a folder where to find test resources
◆ getTempPath_static()
static File org.corpus_tools.pepper.testFramework.PepperTestUtil.getTempPath_static |
( |
String |
testDirectory | ) |
|
|
static |
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
◆ getTestResources()
static String org.corpus_tools.pepper.testFramework.PepperTestUtil.getTestResources |
( |
| ) |
|
|
static |
Returns a default test folder, where to find resources for tests.
When using the default maven structure, this folder is located at 'src/test/resources/'.
- Returns
- a folder where to find test resources
◆ prepareFixturesAndCreateJob()
static PepperJob org.corpus_tools.pepper.testFramework.PepperTestUtil.prepareFixturesAndCreateJob |
( |
final Pepper |
pepper, |
|
|
final Collection<? extends PepperModule > |
fixtures |
|
) |
| |
|
static |
set the salt project for all modules, if it is already set, check that it is equal in all modules. Extract all importers, manipulators and exporters
Create and add alibi steps
◆ runPepperForTest()
static< T extends PepperModule > void org.corpus_tools.pepper.testFramework.PepperTestUtil.runPepperForTest |
( |
T... |
fixtures | ) |
|
|
static |
- See also
- #start(Collection)
◆ start() [1/2]
static void org.corpus_tools.pepper.testFramework.PepperTestUtil.start |
( |
final Collection<? extends PepperModule > |
fixtures | ) |
|
|
static |
◆ start() [2/2]
static void org.corpus_tools.pepper.testFramework.PepperTestUtil.start |
( |
final Pepper |
pepper, |
|
|
final Collection<? extends PepperModule > |
fixtures |
|
) |
| |
|
static |
- See also
- #start(Collection)
- Parameters
-
pepper | a pepper instance to be used |