Class FixtureInstance

java.lang.Object
org.concordion.internal.FixtureInstance
All Implemented Interfaces:
Fixture

public class FixtureInstance extends Object implements Fixture
  • Constructor Details

    • FixtureInstance

      public FixtureInstance(Object fixtureObject)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getFixtureObject

      public Object getFixtureObject()
      Specified by:
      getFixtureObject in interface Fixture
      Returns:
      the fixture instance.
    • getFixtureType

      public FixtureType getFixtureType()
      Specified by:
      getFixtureType in interface Fixture
      Returns:
      the FixtureType, which is a wrapper around the fixtureObject's class.
    • setupForRun

      public void setupForRun(Object fixtureObject)
      Description copied from interface: Fixture
      Setup the fixture for the next run, hence the need to pass in a fixture object.
      Specified by:
      setupForRun in interface Fixture
      Parameters:
      fixtureObject - the fixture about to be run
    • beforeSuite

      public void beforeSuite()
      Description copied from interface: Fixture
      Call methods annotated with @BeforeSuite.
      Specified by:
      beforeSuite in interface Fixture
    • afterSuite

      public void afterSuite()
      Description copied from interface: Fixture
      Call methods annotated with @AfterSuite.
      Specified by:
      afterSuite in interface Fixture
    • beforeSpecification

      public void beforeSpecification()
      Description copied from interface: Fixture
      Save the specification scoped fields and call methods annotated with @BeforeSpecification.
      Specified by:
      beforeSpecification in interface Fixture
    • afterSpecification

      public void afterSpecification()
      Description copied from interface: Fixture
      Call methods annotated with @AfterSpecification and destroy specification scoped fields.
      Specified by:
      afterSpecification in interface Fixture
    • beforeProcessExample

      public void beforeProcessExample(String exampleName)
      Description copied from interface: Fixture
      Not currently used.
      Specified by:
      beforeProcessExample in interface Fixture
      Parameters:
      exampleName - the name of the example being invoked
    • beforeExample

      public void beforeExample(String exampleName)
      Description copied from interface: Fixture
      Call methods annotated with @BeforeExample.
      Specified by:
      beforeExample in interface Fixture
      Parameters:
      exampleName - the name of the example being invoked
    • afterExample

      public void afterExample(String exampleName)
      Description copied from interface: Fixture
      Call methods annotated with @AfterExample.
      Specified by:
      afterExample in interface Fixture
      Parameters:
      exampleName - the name of the example being invoked
    • afterProcessExample

      public void afterProcessExample(String exampleName)
      Description copied from interface: Fixture
      Destroy example scoped fields.
      Specified by:
      afterProcessExample in interface Fixture
      Parameters:
      exampleName - the name of the example being invoked