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

You may also like...

Subscribe
Notify of
guest
6 Comments
Oldest
Newest
Inline Feedbacks
View all comments
Paolo
Paolo
July 31, 2015 21:19

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
Kolya Yanchiy
September 8, 2016 10:50

Thanks a lot)))

Marius Snyman
Marius Snyman
July 3, 2018 16:15

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.

Tsai
Tsai
December 6, 2018 16:51
6
0
Would love your thoughts, please comment.x
()
x