r691 - trunk/src/test/java/org/nuiton/plugin
Author: tchemit Date: 2010-04-10 21:29:12 +0200 (Sat, 10 Apr 2010) New Revision: 691 Log: add a cleanMojo hook in test Modified: trunk/src/test/java/org/nuiton/plugin/AbstractMojoTest.java Modified: trunk/src/test/java/org/nuiton/plugin/AbstractMojoTest.java =================================================================== --- trunk/src/test/java/org/nuiton/plugin/AbstractMojoTest.java 2010-04-10 15:39:56 UTC (rev 690) +++ trunk/src/test/java/org/nuiton/plugin/AbstractMojoTest.java 2010-04-10 19:29:12 UTC (rev 691) @@ -221,6 +221,11 @@ return TestHelper.isVerbose(); } + protected void clearMojo(P mojo) { + + // by default do nothing + } + /** * Checks on the given {@code file} that : * <ul> @@ -327,6 +332,9 @@ @Override public void finished(FrameworkMethod method) { super.finished(method); + if (mojo != null) { + clearMojo(mojo); + } pomFile = null; mojo = null; testDir = null;
participants (1)
-
tchemit@users.nuiton.org