Package org.concordion.internal
Class FixtureInstance
java.lang.Object
org.concordion.internal.FixtureInstance
- All Implemented Interfaces:
Fixture
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterExample(String exampleName) Call methods annotated with@AfterExample.voidafterProcessExample(String exampleName) Destroy example scoped fields.voidCall methods annotated with@AfterSpecificationand destroy specification scoped fields.voidCall methods annotated with@AfterSuite.voidbeforeExample(String exampleName) Call methods annotated with@BeforeExample.voidbeforeProcessExample(String exampleName) Not currently used.voidSave the specification scoped fields and call methods annotated with@BeforeSpecification.voidCall methods annotated with@BeforeSuite.voidsetupForRun(Object fixtureObject) Setup the fixture for the next run, hence the need to pass in a fixture object.toString()
-
Constructor Details
-
FixtureInstance
-
-
Method Details
-
toString
-
getFixtureObject
- Specified by:
getFixtureObjectin interfaceFixture- Returns:
- the fixture instance.
-
getFixtureType
- Specified by:
getFixtureTypein interfaceFixture- Returns:
- the FixtureType, which is a wrapper around the fixtureObject's class.
-
setupForRun
Description copied from interface:FixtureSetup the fixture for the next run, hence the need to pass in a fixture object.- Specified by:
setupForRunin interfaceFixture- Parameters:
fixtureObject- the fixture about to be run
-
beforeSuite
public void beforeSuite()Description copied from interface:FixtureCall methods annotated with@BeforeSuite.- Specified by:
beforeSuitein interfaceFixture
-
afterSuite
public void afterSuite()Description copied from interface:FixtureCall methods annotated with@AfterSuite.- Specified by:
afterSuitein interfaceFixture
-
beforeSpecification
public void beforeSpecification()Description copied from interface:FixtureSave the specification scoped fields and call methods annotated with@BeforeSpecification.- Specified by:
beforeSpecificationin interfaceFixture
-
afterSpecification
public void afterSpecification()Description copied from interface:FixtureCall methods annotated with@AfterSpecificationand destroy specification scoped fields.- Specified by:
afterSpecificationin interfaceFixture
-
beforeProcessExample
Description copied from interface:FixtureNot currently used.- Specified by:
beforeProcessExamplein interfaceFixture- Parameters:
exampleName- the name of the example being invoked
-
beforeExample
Description copied from interface:FixtureCall methods annotated with@BeforeExample.- Specified by:
beforeExamplein interfaceFixture- Parameters:
exampleName- the name of the example being invoked
-
afterExample
Description copied from interface:FixtureCall methods annotated with@AfterExample.- Specified by:
afterExamplein interfaceFixture- Parameters:
exampleName- the name of the example being invoked
-
afterProcessExample
Description copied from interface:FixtureDestroy example scoped fields.- Specified by:
afterProcessExamplein interfaceFixture- Parameters:
exampleName- the name of the example being invoked
-