org.nuiton.plugin
Class TestHelper

java.lang.Object
  extended by org.nuiton.plugin.PluginHelper
      extended by org.nuiton.plugin.TestHelper

public abstract class TestHelper
extends org.nuiton.plugin.PluginHelper

Since:
1.0.3
Author:
chemit

Nested Class Summary
static class TestHelper.DelegateMojoTestCase
           
 
Field Summary
protected static java.io.File basedir
           
protected static TestHelper.DelegateMojoTestCase delegateMojoTest
           
protected static boolean verbose
           
 
Fields inherited from class org.nuiton.plugin.PluginHelper
memoryFactors, memoryUnites, SNAPSHOT_SUFFIX, timeFactors, timeUnites
 
Constructor Summary
TestHelper()
           
 
Method Summary
static java.io.File getBasedir()
           
static TestHelper.DelegateMojoTestCase getDelegateMojoTest()
           
static java.io.File getTestDir(java.lang.Class<?> type, java.lang.String prefix)
           
static boolean isVerbose()
           
static org.apache.maven.plugin.Mojo lookupMojo(java.lang.String goalName, java.io.File pomFile)
           
static void setBasedir(java.io.File basedir)
           
static void setDelegateMojoTest(TestHelper.DelegateMojoTestCase delegateMojoTest)
           
static void setVerbose(boolean verbose)
           
 
Methods inherited from class org.nuiton.plugin.PluginHelper
addResourceDir, addResourceDir, addTestResourceDir, convert, convertMemory, convertTime, convertTime, copy, copyFiles, copyFiles, expandFile, expandFiles, getEmptyKeys, getFile, getIncludedFiles, getRelativePath, prefixLines, readAsString, readAsString, removeSnapshotSuffix, splitAndTrim, toGenericList, writeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verbose

protected static boolean verbose

basedir

protected static java.io.File basedir

delegateMojoTest

protected static TestHelper.DelegateMojoTestCase delegateMojoTest
Constructor Detail

TestHelper

public TestHelper()
Method Detail

getBasedir

public static java.io.File getBasedir()
Returns:
the basedir for all tests
See Also:
PlexusTestCase.getBasedir()

setBasedir

public static void setBasedir(java.io.File basedir)

isVerbose

public static boolean isVerbose()

setVerbose

public static void setVerbose(boolean verbose)

getTestDir

public static java.io.File getTestDir(java.lang.Class<?> type,
                                      java.lang.String prefix)

lookupMojo

public static org.apache.maven.plugin.Mojo lookupMojo(java.lang.String goalName,
                                                      java.io.File pomFile)
                                               throws java.lang.Exception
Throws:
java.lang.Exception

getDelegateMojoTest

public static TestHelper.DelegateMojoTestCase getDelegateMojoTest()
                                                           throws java.lang.Exception
Throws:
java.lang.Exception

setDelegateMojoTest

public static void setDelegateMojoTest(TestHelper.DelegateMojoTestCase delegateMojoTest)


Copyright © 2009 CodeLutin. All Rights Reserved.