org.appfuse.mojo
Class AbstractAppFuseMojoTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.plugin.testing.AbstractMojoTestCase
                  extended by org.appfuse.mojo.AbstractAppFuseMojoTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AppFuseGenerateCoreiBATISTest, AppFuseGenerateCoreJPATest, AppFuseGenerateCoreTest, AppFuseGenerateWebTest, AppFuseGeneratorMojoTest, AppFuseGeneratorSubPackageMojoTest, CopyTemplatesMojoTest, GenerateJSFTest, GenerateSpringTest, GenerateStrutsTest, GenerateTapestryTest, InstallArtifactsMojoTest, ModelGeneratorMojoTest, TableGeneratorMojoTest

public abstract class AbstractAppFuseMojoTestCase
extends org.apache.maven.plugin.testing.AbstractMojoTestCase


Field Summary
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Constructor Summary
AbstractAppFuseMojoTestCase()
           
 
Method Summary
protected  boolean checkExists(String target)
           
protected  void copyFileToDirectory(String from, String to)
           
protected  void createTestProject(String archetypeArtifactId, String archetypeVersion)
           
protected  void deleteDirectory(String targetFolder)
           
protected  HibernateExporterMojo getHibernateMojo(String goal, String implementation)
           
protected  InstallArtifactsMojo getInstallMojo(String goal, String implementation)
           
protected  org.apache.maven.project.MavenProject getMavenProject()
           
 void setGenericCore(boolean genericCore)
           
 
Methods inherited from class org.apache.maven.plugin.testing.AbstractMojoTestCase
configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, setUp, setVariableValueToObject
 
Methods inherited from class org.codehaus.plexus.PlexusTestCase
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractAppFuseMojoTestCase

public AbstractAppFuseMojoTestCase()
Method Detail

setGenericCore

public void setGenericCore(boolean genericCore)

checkExists

protected boolean checkExists(String target)

deleteDirectory

protected void deleteDirectory(String targetFolder)
                        throws Exception
Throws:
Exception

getHibernateMojo

protected HibernateExporterMojo getHibernateMojo(String goal,
                                                 String implementation)
                                          throws Exception
Throws:
Exception

getInstallMojo

protected InstallArtifactsMojo getInstallMojo(String goal,
                                              String implementation)
                                       throws Exception
Throws:
Exception

copyFileToDirectory

protected void copyFileToDirectory(String from,
                                   String to)
                            throws Exception
Throws:
Exception

getMavenProject

protected org.apache.maven.project.MavenProject getMavenProject()

createTestProject

protected void createTestProject(String archetypeArtifactId,
                                 String archetypeVersion)
                          throws Exception
Throws:
Exception


Copyright © 2003-2012. All Rights Reserved.