You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by reikje <re...@matenga.de> on 2008/03/07 15:33:01 UTC

Junit required for WicketTester?

Do you have to have junit.jar in the classpath if you want to use
WicketTester? We are using TestNG here and in a regular TestNG test case
(where the class is annotated with @Test), I get
java.lang.NoClassDefFoundError: junit/framework/AssertionFailedError.
-- 
View this message in context: http://www.nabble.com/Junit-required-for-WicketTester--tp15892202p15892202.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Junit required for WicketTester?

Posted by Timo Rantalaiho <Ti...@ri.fi>.
On Fri, 07 Mar 2008, reikje wrote:
> Do you have to have junit.jar in the classpath if you want to use
> WicketTester? We are using TestNG here and in a regular TestNG test case

Supposedly BaseWicketTester is testing framework neutral,
and WicketTester the JUnit version of it. Theoretically you
might be able to do TestNgWicketTester by extending 
BaseWicketTester, but I don't know if it would work in practice.

Best wishes,
Timo

-- 
Timo Rantalaiho           
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >

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


Re: Junit required for WicketTester?

Posted by James Carman <ja...@carmanconsulting.com>.
On 3/9/08, Frank Bille <fr...@apache.org> wrote:
> In 1.3 WicketTester is the Junit implementation of BaseWicketTester.
>
I don't think that will pose any problems.  TestNG (and Maven
Surefire) is supposed to be able to run JUnit-based tests (using JUnit
asserts) just fine.  As long as your test classes have the @Test
annotations, you should be ok.

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


Re: Junit required for WicketTester?

Posted by Frank Bille <fr...@apache.org>.
In 1.3 WicketTester is the Junit implementation of BaseWicketTester.
Frank

On Fri, Mar 7, 2008 at 3:33 PM, reikje <re...@matenga.de> wrote:

>
> Do you have to have junit.jar in the classpath if you want to use
> WicketTester? We are using TestNG here and in a regular TestNG test case
> (where the class is annotated with @Test), I get
> java.lang.NoClassDefFoundError: junit/framework/AssertionFailedError.
> --
> View this message in context:
> http://www.nabble.com/Junit-required-for-WicketTester--tp15892202p15892202.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Junit required for WicketTester?

Posted by Igor Vaynberg <ig...@gmail.com>.
i think tester uses junit's asserts, so yes.

-igor


On Fri, Mar 7, 2008 at 6:33 AM, reikje <re...@matenga.de> wrote:
>
>  Do you have to have junit.jar in the classpath if you want to use
>  WicketTester? We are using TestNG here and in a regular TestNG test case
>  (where the class is annotated with @Test), I get
>  java.lang.NoClassDefFoundError: junit/framework/AssertionFailedError.
>  --
>  View this message in context: http://www.nabble.com/Junit-required-for-WicketTester--tp15892202p15892202.html
>  Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>  For additional commands, e-mail: users-help@wicket.apache.org
>
>

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