jeudi 20 août 2015

Unit tests in Jboss 7

I want to test a set of classes but my environment is based on Jboss 7.

In those classes, I have a lot fields that are injected with @Inject but when I run my tests, those fields are Null.

I was wondering if there were some "JbossRunner", like Springjunit4classrunner where it can inject the fields in my classes. I am using mockito for mocking the fields (which are services) in my classes.

I already have successfully use Spring and mockito.

Any idea how to do this?

Aucun commentaire:

Enregistrer un commentaire