jeudi 9 mars 2017

How to use ThoughtWorks Gauge with Spring?

I'm using ThoughtWorks Gauge for testing. Also I'm using Spring.

I've got test class with autowired fields.

The problem is when I start Gauge tests, firstly Spring creates instance of my test class and autowires all fields, and then Gauge itself creates new instance of my test class, so autowired fields are null.

Is there any way to disable that behaviour, or any recomendations for using Gauge and Spring?

Aucun commentaire:

Enregistrer un commentaire