Interface Fixture

All Known Implementing Classes:
FixtureInstance

public interface Fixture
An instance of a fixture class.
Since:
2.0.0
  • Method Details

    • getFixtureObject

      Object getFixtureObject()
      Returns:
      the fixture instance.
    • getFixtureType

      FixtureType getFixtureType()
      Returns:
      the FixtureType, which is a wrapper around the fixtureObject's class.
    • setupForRun

      void setupForRun(Object fixtureObject)
      Setup the fixture for the next run, hence the need to pass in a fixture object.
      Parameters:
      fixtureObject - the fixture about to be run
    • beforeSuite

      void beforeSuite()
      Call methods annotated with @BeforeSuite.
    • afterSuite

      void afterSuite()
      Call methods annotated with @AfterSuite.
    • beforeSpecification

      void beforeSpecification()
      Save the specification scoped fields and call methods annotated with @BeforeSpecification.
    • afterSpecification

      void afterSpecification()
      Call methods annotated with @AfterSpecification and destroy specification scoped fields.
    • beforeProcessExample

      void beforeProcessExample(String exampleName)
      Not currently used.
      Parameters:
      exampleName - the name of the example being invoked
    • beforeExample

      void beforeExample(String exampleName)
      Call methods annotated with @BeforeExample.
      Parameters:
      exampleName - the name of the example being invoked
    • afterExample

      void afterExample(String exampleName)
      Call methods annotated with @AfterExample.
      Parameters:
      exampleName - the name of the example being invoked
    • afterProcessExample

      void afterProcessExample(String exampleName)
      Destroy example scoped fields.
      Parameters:
      exampleName - the name of the example being invoked