Package org.apache.maven.plugins.clean
Class CleanMojoTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.codehaus.plexus.PlexusTestCase
-
- org.apache.maven.plugin.testing.AbstractMojoTestCase
-
- org.apache.maven.plugins.clean.CleanMojoTest
-
- All Implemented Interfaces:
junit.framework.Test
public class CleanMojoTest extends org.apache.maven.plugin.testing.AbstractMojoTestCaseTest the clean mojo.- Author:
- Vincent Siveton
-
-
Constructor Summary
Constructors Constructor Description CleanMojoTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestBasicClean()Tests the simple removal of directoriesvoidtestCleanEmptyDirectories()Tests that no exception is thrown when all internal variables are empty and that it doesn't just remove whats therevoidtestCleanInvalidDirectory()Tests the removal of a directory as filevoidtestCleanLockedFile()Test the removal of a locked file on Windows systems.voidtestCleanLockedFileWithNoError()Test the removal of a locked file on Windows systems.voidtestCleanNestedStructure()Tests the removal of files and nested directoriesvoidtestFilesetsClean()Tests the removal of files using filesetvoidtestMissingDirectory()Tests the removal of a missing directory-
Methods inherited from class org.apache.maven.plugin.testing.AbstractMojoTestCase
addGuiceModules, configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getContainer, getPluginDescriptorLocation, getPluginDescriptorPath, getPublicDescriptorStream, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupConfiguredMojo, lookupConfiguredMojo, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, newMavenSession, newMojoExecution, setUp, setupContainer, setupContainerConfiguration, setVariableValueToObject
-
Methods inherited from class org.codehaus.plexus.PlexusTestCase
customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfigurationName, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, tearDown, teardownContainer
-
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
-
-
-
-
Method Detail
-
testBasicClean
public void testBasicClean() throws ExceptionTests the simple removal of directories- Throws:
Exception- in case of an error.
-
testCleanNestedStructure
public void testCleanNestedStructure() throws ExceptionTests the removal of files and nested directories- Throws:
Exception- in case of an error.
-
testCleanEmptyDirectories
public void testCleanEmptyDirectories() throws ExceptionTests that no exception is thrown when all internal variables are empty and that it doesn't just remove whats there- Throws:
Exception- in case of an error.
-
testFilesetsClean
public void testFilesetsClean() throws ExceptionTests the removal of files using fileset- Throws:
Exception- in case of an error.
-
testCleanInvalidDirectory
public void testCleanInvalidDirectory() throws ExceptionTests the removal of a directory as file- Throws:
Exception- in case of an error.
-
testMissingDirectory
public void testMissingDirectory() throws ExceptionTests the removal of a missing directory- Throws:
Exception- in case of an error.
-
testCleanLockedFile
public void testCleanLockedFile() throws ExceptionTest the removal of a locked file on Windows systems.Note: Unix systems doesn't lock any files.
- Throws:
Exception- in case of an error.
-
-