public class NeedleStepsFactory
extends NeedleTestcase
InjectableStepsFactory that uses a Needle InjectionProvider for the composition and instantiation
of all components that contain JBehave annotated methods.| Constructor and Description |
|---|
NeedleStepsFactory(Configuration configuration,
Class<?>... steps)
Creates factory with given configuration and step instances.
|
NeedleStepsFactory(Configuration configuration,
Set<<any>> injectionProviders,
Class<?>... steps)
Creates factory with given configuration, injection providers and step instances.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInjectionProviders(Set<<any>> providers)
Add injection providers.
|
List<CandidateSteps> |
createCandidateSteps() |
Object |
createInstanceOfType(Class<?> type) |
public NeedleStepsFactory(Configuration configuration,
Class<?>... steps)
configuration - JBehave configurationsteps - step classespublic NeedleStepsFactory(Configuration configuration,
Set<<any>> injectionProviders,
Class<?>... steps)
configuration - JBehave configurationinjectionProviders - injection providers.steps - step classesCopyright © 2003–2018. All rights reserved.