Package org.concordion.api
Interface Fixture
- All Known Implementing Classes:
FixtureInstance
public interface Fixture
An instance of a fixture class.
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterExample
(String exampleName) Call methods annotated with@AfterExample
.void
afterProcessExample
(String exampleName) Destroy example scoped fields.void
Call methods annotated with@AfterSpecification
and destroy specification scoped fields.void
Call methods annotated with@AfterSuite
.void
beforeExample
(String exampleName) Call methods annotated with@BeforeExample
.void
beforeProcessExample
(String exampleName) Not currently used.void
Save the specification scoped fields and call methods annotated with@BeforeSpecification
.void
Call methods annotated with@BeforeSuite
.void
setupForRun
(Object fixtureObject) Setup the fixture for the next run, hence the need to pass in a fixture object.
-
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
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
Not currently used.- Parameters:
exampleName
- the name of the example being invoked
-
beforeExample
Call methods annotated with@BeforeExample
.- Parameters:
exampleName
- the name of the example being invoked
-
afterExample
Call methods annotated with@AfterExample
.- Parameters:
exampleName
- the name of the example being invoked
-
afterProcessExample
Destroy example scoped fields.- Parameters:
exampleName
- the name of the example being invoked
-