org.apache.maven.plugins.enforcer
Class EnforcerTestUtils

java.lang.Object
  extended by org.apache.maven.plugins.enforcer.EnforcerTestUtils

public final class EnforcerTestUtils
extends Object

The Class EnforcerTestUtils.

Author:
Brian Fox

Constructor Summary
EnforcerTestUtils()
           
 
Method Summary
static EnforcerRuleHelper getHelper()
          Gets the helper.
static EnforcerRuleHelper getHelper(boolean mockExpression)
          Gets the helper.
static EnforcerRuleHelper getHelper(MavenProject project)
          Gets the helper.
static EnforcerRuleHelper getHelper(MavenProject project, boolean mockExpression)
          Gets the helper.
static EnforcerRuleHelper getHelper(MavenProject project, org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator eval)
          Gets the helper.
static MavenSession getMavenSession()
          Gets the maven session.
static org.apache.maven.model.Plugin newPlugin(String groupId, String artifactId, String version)
          New plugin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnforcerTestUtils

public EnforcerTestUtils()
Method Detail

getMavenSession

public static MavenSession getMavenSession()
Gets the maven session.

Returns:
the maven session

getHelper

public static EnforcerRuleHelper getHelper()
Gets the helper.

Returns:
the helper

getHelper

public static EnforcerRuleHelper getHelper(boolean mockExpression)
Gets the helper.

Parameters:
mockExpression - the mock expression
Returns:
the helper

getHelper

public static EnforcerRuleHelper getHelper(MavenProject project)
Gets the helper.

Parameters:
project - the project
Returns:
the helper

getHelper

public static EnforcerRuleHelper getHelper(MavenProject project,
                                           boolean mockExpression)
Gets the helper.

Parameters:
project - the project
mockExpression - the mock expression
Returns:
the helper

getHelper

public static EnforcerRuleHelper getHelper(MavenProject project,
                                           org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator eval)
Gets the helper.

Parameters:
project - the project
eval - the expression evaluator to use
Returns:
the helper

newPlugin

public static org.apache.maven.model.Plugin newPlugin(String groupId,
                                                      String artifactId,
                                                      String version)
New plugin.

Parameters:
groupId - the group id
artifactId - the artifact id
version - the version
Returns:
the plugin


Copyright © 2007–2013 The Apache Software Foundation. All rights reserved.