-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when running CDI-Uni t3.0.1 in Weld 2.2.1.Final #58
Comments
also:
|
Is this outside of a unit test?
Also in HEAD the CDI-Unit dependency does not participate in bean discovery outside of a unit test. |
I chanage like this
when i do the test
i will always get the failue Trace
I can not inject any Bean |
The strange thing is that your call stack doesn't have junit in it. Are you running this outside a test e.g. by starting weld manually? |
For that matter your call stack doesn't have CDI-Unit in it either.... |
No,I do not starting weld manually,I only running the @test,and if I do like this,it will be ok
|
OK. Given your least stack trace I am guessing that Category is an interface or abstract class. http://jglue.org/cdi-unit-user-guide/#controllingEnvironment |
In addition to,when i do running @test,the weld not starting Seemingly!
yea,CategoryManager is a class implements interface Manager.I try like this
|
This is a warning, I've corrected the code but you can ignore it. Weld should still be starting fine. |
Weld not starting after the warning,i did not kown why... |
Is there a stack trace? |
On 15/07/14 10:42, 蒋建洋 wrote:
Attached is what I can piece together from your test. It seems to work |
It really work!Ok!The cdi-unit work normally,there are some other problems about the EntityManager...so thank you. |
when running:
The text was updated successfully, but these errors were encountered: