Hello everyone
My Team is using the wonderful
CDI-Addon
for creating our web applications. While running it is no hassle at all, testing is quite a different beast.
So far I tried several frameworks, with no real success:
- Arquillian
- CDIUnit
- Mockito (with @InjectMocks)
- Plain JUnitW
With every framework that I tested, I found different roadblocks.
My question is, to those who use the CDI-Addon: how do you test your App?
Example:
https://github.com/Rosthouse/VaadinCDIUnitTest
In this test, I use Mockito. One test runs succesfully, the other fails because an Vaadin Object (Page) is missing.
I’m thankfull for any input you guys have on this