How to use CDI inside JUnit @BeforeClass

240 Views Asked by At

I try to use CDI with JUnit. I saw lot of example that implement a custom Runner that uses non-static methods. But i have one more constraint. I use the Cucumber runner on top of JUnit and selenium. So i can't use the BlockJUnit4ClassRunner. I must use the Cucumber Runner.

Any Idea

0

There are 0 best solutions below