org.nuiton.helper.plugin
Class SendEmailMojoTest

java.lang.Object
  extended by org.nuiton.plugin.AbstractMojoTest<org.nuiton.helper.plugin.SendEmailMojo>
      extended by org.nuiton.helper.plugin.SendEmailMojoTest

public class SendEmailMojoTest
extends AbstractMojoTest<org.nuiton.helper.plugin.SendEmailMojo>

Since:
1.0.0
Author:
tchemit

Nested Class Summary
 
Nested classes/interfaces inherited from class org.nuiton.plugin.AbstractMojoTest
AbstractMojoTest.MojoTestRule
 
Field Summary
protected  boolean canContinue
           
 
Fields inherited from class org.nuiton.plugin.AbstractMojoTest
basedir, log, name, testBasedir
 
Constructor Summary
SendEmailMojoTest()
           
 
Method Summary
protected  String getGoalName(String methodName)
          Obtain the name of the goal according to the methodName.
 void sendEmail()
           
protected  void setUpMojo(org.nuiton.helper.plugin.SendEmailMojo mojo, 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
 

Field Detail

canContinue

protected boolean canContinue
Constructor Detail

SendEmailMojoTest

public SendEmailMojoTest()
Method Detail

getGoalName

protected String getGoalName(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,
                         File pomFile)
                  throws Exception
Description copied from class: AbstractMojoTest
Initialize the given mojo.

Overrides:
setUpMojo in class AbstractMojoTest<org.nuiton.helper.plugin.SendEmailMojo>
Parameters:
mojo - the instanciate mojo
pomFile - the pom file used to instanciate the mojo
Throws:
Exception - if any pb

sendEmail

public void sendEmail()
               throws Exception
Throws:
Exception

skipSendEmail

public void skipSendEmail()
                   throws Exception
Throws:
Exception


Copyright © 2009-2010 CodeLutin. All Rights Reserved.