org.apache.maven.plugin.failsafe
Class VerifyMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.failsafe.VerifyMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.apache.maven.plugin.surefire.SurefireReportParameters

public class VerifyMojo
extends org.apache.maven.plugin.AbstractMojo
implements org.apache.maven.plugin.surefire.SurefireReportParameters

Verify integration tests ran using Surefire.

Author:
Stephen Connolly, Jason van Zyl

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
VerifyMojo()
           
 
Method Summary
 void execute()
           
 File getBasedir()
           
protected  String[] getDefaultIncludes()
           
 Boolean getFailIfNoTests()
           
protected  String getPluginName()
           
 File getReportsDirectory()
           
 File getTestClassesDirectory()
           
 boolean isSkip()
           
 boolean isSkipExec()
           
 boolean isSkipITs()
           
 boolean isSkipTests()
           
 boolean isTestFailureIgnore()
           
 void setBasedir(File basedir)
           
 void setFailIfNoTests(Boolean failIfNoTests)
           
 void setReportsDirectory(File reportsDirectory)
           
 void setSkip(boolean skip)
           
 void setSkipExec(boolean skipExec)
           
 void setSkipITs(boolean skipITs)
           
 void setSkipTests(boolean skipTests)
           
 void setTestClassesDirectory(File testClassesDirectory)
           
 void setTestFailureIgnore(boolean testFailureIgnore)
           
protected  boolean verifyParameters()
           
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerifyMojo

public VerifyMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Specified by:
execute in interface org.apache.maven.plugin.Mojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

verifyParameters

protected boolean verifyParameters()
                            throws org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoFailureException

getPluginName

protected String getPluginName()

getDefaultIncludes

protected String[] getDefaultIncludes()

isSkipTests

public boolean isSkipTests()
Specified by:
isSkipTests in interface org.apache.maven.plugin.surefire.SurefireReportParameters

setSkipTests

public void setSkipTests(boolean skipTests)
Specified by:
setSkipTests in interface org.apache.maven.plugin.surefire.SurefireReportParameters

isSkipITs

public boolean isSkipITs()

setSkipITs

public void setSkipITs(boolean skipITs)

isSkipExec

public boolean isSkipExec()
Specified by:
isSkipExec in interface org.apache.maven.plugin.surefire.SurefireReportParameters

setSkipExec

public void setSkipExec(boolean skipExec)
Specified by:
setSkipExec in interface org.apache.maven.plugin.surefire.SurefireReportParameters

isSkip

public boolean isSkip()
Specified by:
isSkip in interface org.apache.maven.plugin.surefire.SurefireReportParameters

setSkip

public void setSkip(boolean skip)
Specified by:
setSkip in interface org.apache.maven.plugin.surefire.SurefireReportParameters

isTestFailureIgnore

public boolean isTestFailureIgnore()
Specified by:
isTestFailureIgnore in interface org.apache.maven.plugin.surefire.SurefireReportParameters

setTestFailureIgnore

public void setTestFailureIgnore(boolean testFailureIgnore)
Specified by:
setTestFailureIgnore in interface org.apache.maven.plugin.surefire.SurefireReportParameters

getBasedir

public File getBasedir()
Specified by:
getBasedir in interface org.apache.maven.plugin.surefire.SurefireReportParameters

setBasedir

public void setBasedir(File basedir)
Specified by:
setBasedir in interface org.apache.maven.plugin.surefire.SurefireReportParameters

getTestClassesDirectory

public File getTestClassesDirectory()
Specified by:
getTestClassesDirectory in interface org.apache.maven.plugin.surefire.SurefireReportParameters

setTestClassesDirectory

public void setTestClassesDirectory(File testClassesDirectory)
Specified by:
setTestClassesDirectory in interface org.apache.maven.plugin.surefire.SurefireReportParameters

getReportsDirectory

public File getReportsDirectory()
Specified by:
getReportsDirectory in interface org.apache.maven.plugin.surefire.SurefireReportParameters

setReportsDirectory

public void setReportsDirectory(File reportsDirectory)
Specified by:
setReportsDirectory in interface org.apache.maven.plugin.surefire.SurefireReportParameters

getFailIfNoTests

public Boolean getFailIfNoTests()
Specified by:
getFailIfNoTests in interface org.apache.maven.plugin.surefire.SurefireReportParameters

setFailIfNoTests

public void setFailIfNoTests(Boolean failIfNoTests)
Specified by:
setFailIfNoTests in interface org.apache.maven.plugin.surefire.SurefireReportParameters


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.