Package io.cucumber.testng
Class NoObjectFactory
java.lang.Object
io.cucumber.testng.NoObjectFactory
- All Implemented Interfaces:
Container,Lookup,ObjectFactory
This object factory does nothing. It is solely needed for marking purposes.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NoObjectFactory
private NoObjectFactory()
-
-
Method Details
-
addClass
Description copied from interface:ContainerAdd a glue class to the test context.Invoked after creation but before
ObjectFactory.start(). -
getInstance
Description copied from interface:LookupProvides an instance of a glue class.- Specified by:
getInstancein interfaceLookup- Type Parameters:
T- type of Glue class- Parameters:
glueClass- type of instance to be created.- Returns:
- new instance of type T
-
start
public void start()Description copied from interface:ObjectFactoryStart the object factory. Invoked once per scenario.While started
Lookup.getInstance(Class)may be invoked.- Specified by:
startin interfaceObjectFactory
-
stop
public void stop()Description copied from interface:ObjectFactoryStops the object factory. Called once per scenario.When stopped the object factory should dispose of all glue instances.
- Specified by:
stopin interfaceObjectFactory
-