Java SE: Unit Testing CDI with JUnit and JBoss Weld SE

You may also like...

4
Leave a Reply

avatar
3 Comment threads
1 Thread replies
1 Followers
 
Most reacted comment
Hottest comment thread
4 Comment authors
Marius SnymanKolya YanchiyMemoryNotFoundPaolo Recent comment authors
  Subscribe  
newest oldest
Notify of
Paolo
Guest
Paolo

This tutorial does not work….
I have created a fresh maven project, copied the code from the tutorial, and used only the copy/pasted dependencies from the pom file fragment provided and still receive the following error….

testCDI(LogTest): WELD-001308: Unable to resolve any beans for Type: class LogTest; Qualifiers: [@javax.enterprise.inject.Any()]

Kolya Yanchiy
Guest
Kolya Yanchiy

Thanks a lot)))

Marius Snyman
Guest
Marius Snyman

Thanks a lot. I used the WeldContainer and the Runner as prototypes to set up my test environment for CDI tests. Works like a charm.