Package org.concordion.internal
Class FixtureInstance
java.lang.Object
org.concordion.internal.FixtureInstance
- All Implemented Interfaces:
Fixture
-
Constructor Summary
-
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.toString()
-
Constructor Details
-
FixtureInstance
-
-
Method Details
-
toString
-
getFixtureObject
- Specified by:
getFixtureObject
in interfaceFixture
- Returns:
- the fixture instance.
-
getFixtureType
- Specified by:
getFixtureType
in interfaceFixture
- Returns:
- the FixtureType, which is a wrapper around the fixtureObject's class.
-
setupForRun
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 interfaceFixture
- 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 interfaceFixture
-
afterSuite
public void afterSuite()Description copied from interface:Fixture
Call methods annotated with@AfterSuite
.- Specified by:
afterSuite
in interfaceFixture
-
beforeSpecification
public void beforeSpecification()Description copied from interface:Fixture
Save the specification scoped fields and call methods annotated with@BeforeSpecification
.- Specified by:
beforeSpecification
in interfaceFixture
-
afterSpecification
public void afterSpecification()Description copied from interface:Fixture
Call methods annotated with@AfterSpecification
and destroy specification scoped fields.- Specified by:
afterSpecification
in interfaceFixture
-
beforeProcessExample
Description copied from interface:Fixture
Not currently used.- Specified by:
beforeProcessExample
in interfaceFixture
- Parameters:
exampleName
- the name of the example being invoked
-
beforeExample
Description copied from interface:Fixture
Call methods annotated with@BeforeExample
.- Specified by:
beforeExample
in interfaceFixture
- Parameters:
exampleName
- the name of the example being invoked
-
afterExample
Description copied from interface:Fixture
Call methods annotated with@AfterExample
.- Specified by:
afterExample
in interfaceFixture
- Parameters:
exampleName
- the name of the example being invoked
-
afterProcessExample
Description copied from interface:Fixture
Destroy example scoped fields.- Specified by:
afterProcessExample
in interfaceFixture
- Parameters:
exampleName
- the name of the example being invoked
-