See the forking section of the surefire-plugin docs:
http://maven.apache.org/plugins/maven-surefire-plugin/howto.html
(fork a vm for tests, and pass the -enableassertions param to the forked vm)
Tom
On 4/14/06, Wojciech Gdela <[EMAIL PROTECTED]> wrote:
> Hello,
>
> How to enable assertions during execution of test cases?
>
> I have MyClass with one method:
>
> public static void foo() {
> assert false;
> }
>
> And a test case for MyClass:
>
> public void testFoo() {
> MyClass.foo();
> }
>
> And I'd like to see java.lang.AssertionError throwed in a result of "mvn
> test" execution. How do I achieve that?
>
> --
> Best regards,
> Wojciech Gdela.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]