public abstract class PepperManipulatorTest extends PepperModuleTest
This class is a helper class for creating tests for PepperManipulator
s. This class provides a fixture declaration which could be called via
#setFixture(PepperManipulator). The fixture which is returned via
PepperModuleTestHelper.getFixture() is of type PepperManipulator. To create an
easier access, we recommend to overwrite the method PepperModuleTestHelper.getFixture() as
follows:
@Override
public MY_MANIPULATOR_CLASS getFixture() {
return (MY_MANIPULATOR_CLASS) fixture;
}
The method #setFixture(PepperManipulator) sets the
SaltProject and creates a single SCorpusGraph object, 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.
fixture, logger, resourceURI, TMP_TEST_DIR| Constructor and Description |
|---|
PepperManipulatorTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkThatWhenSimulatingFitnessCheckModulePassesSelfTest(ModuleFitness fitness) |
checkThatCorpusGraphIsSettable, checkThatFixtureIsSet, checkThatModuleHasName, checkThatResourcePathIsSet, checkThatWhenSimulatingFitnessCheckModulePassesSelfTest, diffsBetweenActualAndExpected, runSelfTestcompareFiles, compareFiles, getFixture, getSrcResources, getTempPath_static, getTempPath, getTempURI, getTestResources, initialize, setFixture, setResourcesURI, startpublic void checkThatWhenSimulatingFitnessCheckModulePassesSelfTest(ModuleFitness fitness)
checkThatWhenSimulatingFitnessCheckModulePassesSelfTest in class PepperModuleTestCopyright © 2009–2018 Humboldt-Universität zu Berlin, INRIA. All rights reserved.