You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Russell Gold <ru...@gmail.com> on 2017/01/27 20:36:13 UTC

Mojo testing with JUnit 4?

Are there versions of the base test cases (AbstractMojoTestCase, PlexusTestCase) that are usable with JUnit 4? If not, has anyone published a pattern for testing mojos with JUnit 4?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Mojo testing with JUnit 4?

Posted by Robert Scholte <rf...@apache.org>.
Hi,

see  
http://maven.apache.org/plugin-testing/maven-plugin-testing-harness/getting-started/index.html
and look for MojoRule

Robert

On Fri, 27 Jan 2017 21:36:13 +0100, Russell Gold <ru...@gmail.com>  
wrote:

> Are there versions of the base test cases (AbstractMojoTestCase,  
> PlexusTestCase) that are usable with JUnit 4? If not, has anyone  
> published a pattern for testing mojos with JUnit 4?
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org

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