You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Subhash Chandran <su...@gmail.com> on 2007/02/14 06:46:35 UTC

JUnit 4.1 Surefire - Does Not Execute @Before @After methods

I am using mvn 2.0.4. I have JUnit 4.1 test cases in my project. The
methods I have marked with @After and @Before annotations do not get
called during test execution. Is this a known bug, or am I doing
something wrong?

-- 
Regards,
Subhash Chandran S

http://wizcrypt.wiztools.org/

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


Re: JUnit 4.1 Surefire - Does Not Execute @Before @After methods

Posted by Tom Huybrechts <to...@gmail.com>.
Make sure you are using a recent surefire snapshot. Out of the box
Maven currently has no support for junit4.

On 2/14/07, Subhash Chandran <su...@gmail.com> wrote:
> I am using mvn 2.0.4. I have JUnit 4.1 test cases in my project. The
> methods I have marked with @After and @Before annotations do not get
> called during test execution. Is this a known bug, or am I doing
> something wrong?
>
> --
> Regards,
> Subhash Chandran S
>
> http://wizcrypt.wiztools.org/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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