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.AbstractMojoTestCase
Test 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 void
testBasicClean()
Tests the simple removal of directoriesvoid
testCleanEmptyDirectories()
Tests that no exception is thrown when all internal variables are empty and that it doesn't just remove whats therevoid
testCleanInvalidDirectory()
Tests the removal of a directory as filevoid
testCleanLockedFile()
Test the removal of a locked file on Windows systems.void
testCleanLockedFileWithNoError()
Test the removal of a locked file on Windows systems.void
testCleanNestedStructure()
Tests the removal of files and nested directoriesvoid
testFilesetsClean()
Tests the removal of files using filesetvoid
testMissingDirectory()
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 Exception
Tests the simple removal of directories- Throws:
Exception
- in case of an error.
-
testCleanNestedStructure
public void testCleanNestedStructure() throws Exception
Tests the removal of files and nested directories- Throws:
Exception
- in case of an error.
-
testCleanEmptyDirectories
public void testCleanEmptyDirectories() throws Exception
Tests 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 Exception
Tests the removal of files using fileset- Throws:
Exception
- in case of an error.
-
testCleanInvalidDirectory
public void testCleanInvalidDirectory() throws Exception
Tests the removal of a directory as file- Throws:
Exception
- in case of an error.
-
testMissingDirectory
public void testMissingDirectory() throws Exception
Tests the removal of a missing directory- Throws:
Exception
- in case of an error.
-
testCleanLockedFile
public void testCleanLockedFile() throws Exception
Test the removal of a locked file on Windows systems.Note: Unix systems doesn't lock any files.
- Throws:
Exception
- in case of an error.
-
-