Hi Stepan!
Do you try DeltaSpike yourself? I try to run cdi in tests just like in  this
guide
<http://struberg.wordpress.com/2012/03/27/unit-testing-strategies-for-cdi-based-projects/>
 
. And weld-se is failed in a simple test debuuging on a cdiContainer.boot();
with many WELD-001409 exceptions, like this:
Testcase: LoginPageTest:        Caused an ERROR
Exception List with 5 exceptions:
Exception 0 :
org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous
dependencies for type DeltaSpikeContextExtension with qualifiers @Default
  at injection point [BackedAnnotatedField] @Inject private
org.apache.deltaspike.core.impl.scope.conversation.GroupedConversationArtifactProducer.deltaSpikeContextExtension
  at
org.apache.deltaspike.core.impl.scope.conversation.GroupedConversationArtifactProducer.deltaSpikeContextExtension(GroupedConversationArtifactProducer.java:0)
  Possible dependencies: 
  - Extension [class
org.apache.deltaspike.core.impl.scope.DeltaSpikeContextExtension] with
qualifiers [@Default];
jar:file:/C:/projects/WebApplication1/lib/DeltaSpike-0.6/deltaspike-core-impl-0.6.jar!/META-INF/services/javax.enterprise.inject.spi.Extension@25[org.apache.deltaspike.core.impl.scope.DeltaSpikeContextExtension@1571a74],
  - org.glassfish.jersey.gf.cdi.internal.CdiComponentProvider$Hk2Bean@52b341

Can you show me the right way to find a solution? Where I may make mistakes?

PS I use NB8.0, GF4.0.1 with weld upgraded to 2.0.5Final, Ecipselink-2.5.2
and wicket 6.14 with wicket-cdi 1.1 module.

Best regards,
Andrey

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-CDI-application-junit-test-tp4665366p4665459.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to