Class PepperManipulatorTest


  • 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.

    Author:
    florian