If you want to inject dependencies, you can do it via one of the DI frameworks and the corresponding annotations,
@UsingGuice/Pico/Spring/Weld.

@UsingSteps is only used for instances that are default constructors.

On 22/12/2011 23:26, Alexander Lehmann wrote:
I have started using AnnotatedPathRunner to run stories as Junit in eclipse, based on the TraderAnnotatedPathRunner example.

This works well for Step classes that do not have parameters in the constructor by listing the classes in the @UsingSteps annotation.

I have no idea, however, how this should work with steps classes that require a constructor with parameters (e.g. steps using page objects). As I understand this is usually done by implementing an InjectableStepsFactory, but I have no idea where to put that in the annotation version.

bye, Alexander



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to