Tabnine Logo
AbstractMojoTestCase.validateContainerStatus
Code IndexAdd Tabnine to your IDE (free)

How to use
validateContainerStatus
method
in
org.apache.maven.plugin.testing.AbstractMojoTestCase

Best Java code snippets using org.apache.maven.plugin.testing.AbstractMojoTestCase.validateContainerStatus (Showing top 6 results out of 315)

origin: org.apache.maven.plugin-testing/maven-plugin-testing-harness

/**
 * Configure the mojo with the given plexus configuration
 *
 * @param mojo
 * @param pluginConfiguration
 * @return a Mojo instance
 * @throws Exception
 */
protected Mojo configureMojo( Mojo mojo, PlexusConfiguration pluginConfiguration )
  throws Exception
{
  validateContainerStatus();
  ExpressionEvaluator evaluator = new ResolverExpressionEvaluatorStub();
  configurator.configureComponent( mojo, pluginConfiguration, evaluator, getContainer().getContainerRealm() );
  return mojo;
}
origin: org.apache.maven.plugin-testing/maven-plugin-testing-harness

/**
 * Configure the mojo
 *
 * @param mojo
 * @param artifactId
 * @param pom
 * @return a Mojo instance
 * @throws Exception
 */
protected Mojo configureMojo( Mojo mojo, String artifactId, File pom )
  throws Exception
{
  validateContainerStatus();
  PlexusConfiguration pluginConfiguration = extractPluginConfiguration( artifactId, pom );
  ExpressionEvaluator evaluator = new ResolverExpressionEvaluatorStub();
  configurator.configureComponent( mojo, pluginConfiguration, evaluator, getContainer().getContainerRealm() );
  return mojo;
}
origin: org.apache.maven.plugin-testing/maven-plugin-testing-harness

throws Exception
validateContainerStatus();
origin: com.simpligility.org.apache.maven.plugin-testing/maven-plugin-testing-harness

/**
 * Configure the mojo with the given plexus configuration
 *
 * @param mojo
 * @param pluginConfiguration
 * @return a Mojo instance
 * @throws Exception
 */
protected Mojo configureMojo( Mojo mojo, PlexusConfiguration pluginConfiguration )
  throws Exception
{
  validateContainerStatus();
  ExpressionEvaluator evaluator = new ResolverExpressionEvaluatorStub();
  configurator.configureComponent( mojo, pluginConfiguration, evaluator, getContainer().getContainerRealm() );
  return mojo;
}
origin: com.simpligility.org.apache.maven.plugin-testing/maven-plugin-testing-harness

/**
 * Configure the mojo
 *
 * @param mojo
 * @param artifactId
 * @param pom
 * @return a Mojo instance
 * @throws Exception
 */
protected Mojo configureMojo( Mojo mojo, String artifactId, File pom )
  throws Exception
{
  validateContainerStatus();
  PlexusConfiguration pluginConfiguration = extractPluginConfiguration( artifactId, pom );
  ExpressionEvaluator evaluator = new ResolverExpressionEvaluatorStub();
  configurator.configureComponent( mojo, pluginConfiguration, evaluator, getContainer().getContainerRealm() );
  return mojo;
}
origin: com.simpligility.org.apache.maven.plugin-testing/maven-plugin-testing-harness

throws Exception
validateContainerStatus();
org.apache.maven.plugin.testingAbstractMojoTestCasevalidateContainerStatus

Javadoc

We should make sure this is called in each method that makes use of the container, otherwise we throw ugly NPE's crops up when the subclassing code defines the setUp method but doesn't call super.setUp()

Popular methods of AbstractMojoTestCase

  • setUp
  • tearDown
  • getContainer
  • lookupMojo
    lookup the mojo while we have all of the relavent information
  • assertNotNull
  • configureMojo
    Configure the mojo with the given plexus configuration
  • extractPluginConfiguration
  • fail
  • finalizeMojoConfiguration
  • getBasedir
  • getPluginDescriptorLocation
  • getPluginDescriptorPath
  • getPluginDescriptorLocation,
  • getPluginDescriptorPath,
  • getPublicDescriptorStream,
  • getVariableValueFromObject,
  • getVariablesAndValuesFromObject,
  • lookup,
  • lookupConfiguredMojo,
  • lookupEmptyMojo,
  • newMavenSession,
  • newMojoExecution

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Menu (java.awt)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now