in maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/MojoRule.java [247:264]
public Statement apply(final Statement base, Description description) {
if (description.getAnnotation(WithoutMojo.class) != null) // skip.
{
return base;
}
return new Statement() {
@Override
public void evaluate() throws Throwable {
testCase.setUp();
before();
try {
base.evaluate();
} finally {
after();
}
}
};
}