vendredi 6 mars 2015

Is it possible to bind dependencies to interceptor in TestNG?




public class AbstractTest implements ITestListener {

@Inject
protected MobConfiguration mob;

@Override
public void onStart(ITestContext context) {
// TODO Auto-generated method stub
}
}


When i tried to inject dependencies in listener class, it always returns null? Is there any possible ways to handle DI in listener or interceptor implementer class?




Aucun commentaire:

Enregistrer un commentaire