Wicket CDI 1.1 and Wicket Tester

2013-11-30 Thread martin.dilger
There are a couple of Posts but none that answers my Question.
How is a Unit Test for a Wicket CDI Application supposed to be written?
For the CDI Module itself there is CDIUnit from JGlue, but this does not
work 
for ApplicationTests as the Classes are not found and some are marked as
Package Private so that you cannot add them manually via @AdditionalClasses.
Is there a working example somewhere how to do that without using something
heavy like Arquillian?
Is this even possible?
Thanks for any hints.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-CDI-1-1-and-Wicket-Tester-tp4662717.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



Re: Wicket CDI 1.1 and Wicket Tester

2013-11-30 Thread martin.dilger
I have a very simple testcase running, described here
http://www.effectivetrainings.de/blog/2013/11/30/wicket-und-cdi-1-1-auf-den-richtigen-kontext-kommt-es-an/.
But I´m pretty sure there must be an easier way.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-CDI-1-1-and-Wicket-Tester-tp4662717p4662718.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



Re: Wicket CDI 1.1 and Wicket Tester

2013-11-30 Thread Martin Grigorov
Hi,

There is a new experimental module that provides CdiWicketTester -
https://github.com/apache/wicket/blob/wicket-6.x/wicket-experimental/wicket-cdi-1.1/src/test/java/org/apache/wicket/cdi/CdiWicketTester.java
It's first release will be with Wicket 6.13.0

But as you can see CdiWicketTester is in src/test/ folder. Now is the time
to file a ticket and ask this file to be moved to src/java/, so you can use
it in your application as well ;-)


On Sat, Nov 30, 2013 at 5:23 PM, martin.dilger martin.dil...@googlemail.com
 wrote:

 I have a very simple testcase running, described here

 http://www.effectivetrainings.de/blog/2013/11/30/wicket-und-cdi-1-1-auf-den-richtigen-kontext-kommt-es-an/
 .
 But I´m pretty sure there must be an easier way.



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-CDI-1-1-and-Wicket-Tester-tp4662717p4662718.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