public interface ObjectFactory
| Modifier and Type | Method and Description |
|---|---|
boolean |
addClass(java.lang.Class<?> glueClass)
Collects glue classes in the classpath.
|
<T> T |
getInstance(java.lang.Class<T> glueClass)
Provides the glue instances used to execute the current scenario.
|
void |
start()
Instantiate glue code before scenario execution.
|
void |
stop()
Dispose glue code after scenario execution.
|
void start()
void stop()
boolean addClass(java.lang.Class<?> glueClass)
glueClass - Glue class containing cucumber.api annotations (Before, Given, When, ...)<T> T getInstance(java.lang.Class<T> glueClass)
start().T - type of Glue classglueClass - type of instance to be created.Copyright © 2017. All Rights Reserved.