Class PepperManipulatorTest
- java.lang.Object
-
- org.corpus_tools.pepper.testFramework.helpers.PepperModuleTestHelper
-
- org.corpus_tools.pepper.testFramework.helpers.PepperModuleTest
-
- org.corpus_tools.pepper.testFramework.PepperManipulatorTest
-
public abstract class PepperManipulatorTest extends PepperModuleTest
This class is a helper class for creating tests for
PepperManipulators. This class provides a fixture declaration which could be called via#setFixture(PepperManipulator). The fixture which is returned viaPepperModuleTestHelper.getFixture()is of typePepperManipulator. To create an easier access, we recommend to overwrite the methodPepperModuleTestHelper.getFixture()as follows:@Override public MY_MANIPULATOR_CLASS getFixture() { return (MY_MANIPULATOR_CLASS) fixture; }The method#setFixture(PepperManipulator)sets theSaltProjectand creates a singleSCorpusGraphobject, which is added to the list of corpus structures in the salt project. To access the salt project or the corpus structure use the following code:getFixture().getSaltProject(); getFixture().getSaltProject().getCorpusGraphs()To run the test call
PepperModuleTestHelper.start()in your test method. This will start the test environment, which simulates a Pepper conversion process.- Author:
- florian
-
-
Field Summary
-
Fields inherited from class org.corpus_tools.pepper.testFramework.helpers.PepperModuleTestHelper
fixture, logger, resourceURI, TMP_TEST_DIR
-
-
Constructor Summary
Constructors Constructor Description PepperManipulatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckThatWhenSimulatingFitnessCheckModulePassesSelfTest(ModuleFitness fitness)-
Methods inherited from class org.corpus_tools.pepper.testFramework.helpers.PepperModuleTest
checkThatCorpusGraphIsSettable, checkThatFixtureIsSet, checkThatModuleHasName, checkThatResourcePathIsSet, checkThatWhenSimulatingFitnessCheckModulePassesSelfTest, diffsBetweenActualAndExpected, runSelfTest
-
Methods inherited from class org.corpus_tools.pepper.testFramework.helpers.PepperModuleTestHelper
compareFiles, compareFiles, getFixture, getSrcResources, getTempPath, getTempPath_static, getTempURI, getTestResources, initialize, setFixture, setResourcesURI, start
-
-
-
-
Method Detail
-
checkThatWhenSimulatingFitnessCheckModulePassesSelfTest
public void checkThatWhenSimulatingFitnessCheckModulePassesSelfTest(ModuleFitness fitness)
- Specified by:
checkThatWhenSimulatingFitnessCheckModulePassesSelfTestin classPepperModuleTest
-
-