org.nuiton.helper.plugin
Class SendEmailMojoTest
java.lang.Object
org.nuiton.plugin.AbstractMojoTest<org.nuiton.helper.plugin.SendEmailMojo>
org.nuiton.helper.plugin.SendEmailMojoTest
public class SendEmailMojoTest
- extends AbstractMojoTest<org.nuiton.helper.plugin.SendEmailMojo>
- Since:
- 1.0.0
- Author:
- tchemit
|
Method Summary |
protected java.lang.String |
getGoalName(java.lang.String methodName)
Obtain the name of the goal according to the methodName. |
void |
sendEmail()
|
protected void |
setUpMojo(org.nuiton.helper.plugin.SendEmailMojo mojo,
java.io.File pomFile)
Initialize the given mojo. |
void |
skipSendEmail()
|
| Methods inherited from class org.nuiton.plugin.AbstractMojoTest |
createMojo, getBasedir, getMethodName, getMojo, getPomFile, getPomFile, getRelativePathFromBasedir, getRelativePathFromTestBasedir, getTestBasedir, getTestDir, getTestDir, isVerbose |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
canContinue
protected boolean canContinue
SendEmailMojoTest
public SendEmailMojoTest()
getGoalName
protected java.lang.String getGoalName(java.lang.String methodName)
- Description copied from class:
AbstractMojoTest
- Obtain the name of the goal according to the methodName.
By convention, we should consider that a test class use always the same
goal's name.
- Specified by:
getGoalName in class AbstractMojoTest<org.nuiton.helper.plugin.SendEmailMojo>
- Parameters:
methodName - the name of the next test to execute.
- Returns:
- the name of the goal to test for the given method test name.
setUpMojo
protected void setUpMojo(org.nuiton.helper.plugin.SendEmailMojo mojo,
java.io.File pomFile)
throws java.lang.Exception
- Description copied from class:
AbstractMojoTest
- Initialize the given mojo.
- Overrides:
setUpMojo in class AbstractMojoTest<org.nuiton.helper.plugin.SendEmailMojo>
- Parameters:
mojo - the instanciate mojopomFile - the pom file used to instanciate the mojo
- Throws:
java.lang.Exception - if any pb
sendEmail
public void sendEmail()
throws java.lang.Exception
- Throws:
java.lang.Exception
skipSendEmail
public void skipSendEmail()
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2009-2010 CodeLutin. All Rights Reserved.