Class PepperModuleTest
- java.lang.Object
-
- org.corpus_tools.pepper.testFramework.helpers.PepperModuleTestHelper
-
- org.corpus_tools.pepper.testFramework.helpers.PepperModuleTest
-
- Direct Known Subclasses:
PepperImExporterTest,PepperManipulatorTest
public abstract class PepperModuleTest extends PepperModuleTestHelper
This class is an abstract helper class to create own test classes for anyPepperModule. The method start simulates the Pepper framework as in normal runtime. The difference is, that here Pepper is started in an development environment and enables for developers to get an access directly to the OSGi environment.- Author:
- Florian Zipser
-
-
Field Summary
-
Fields inherited from class org.corpus_tools.pepper.testFramework.helpers.PepperModuleTestHelper
fixture, logger, resourceURI, TMP_TEST_DIR
-
-
Constructor Summary
Constructors Constructor Description PepperModuleTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcheckThatCorpusGraphIsSettable()voidcheckThatFixtureIsSet()voidcheckThatModuleHasName()voidcheckThatResourcePathIsSet()voidcheckThatWhenSimulatingFitnessCheckModulePassesSelfTest()protected abstract voidcheckThatWhenSimulatingFitnessCheckModulePassesSelfTest(ModuleFitness fitness)protected StringdiffsBetweenActualAndExpected()protected ModuleFitnessrunSelfTest()-
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
-
checkThatFixtureIsSet
public void checkThatFixtureIsSet()
-
checkThatCorpusGraphIsSettable
public void checkThatCorpusGraphIsSettable()
-
checkThatModuleHasName
public void checkThatModuleHasName()
-
checkThatResourcePathIsSet
public void checkThatResourcePathIsSet()
-
checkThatWhenSimulatingFitnessCheckModulePassesSelfTest
public void checkThatWhenSimulatingFitnessCheckModulePassesSelfTest()
-
runSelfTest
protected ModuleFitness runSelfTest()
-
checkThatWhenSimulatingFitnessCheckModulePassesSelfTest
protected abstract void checkThatWhenSimulatingFitnessCheckModulePassesSelfTest(ModuleFitness fitness)
-
diffsBetweenActualAndExpected
protected String diffsBetweenActualAndExpected()
-
-