public class CleanMojoTest extends AbstractMojoTestCase
Constructor and Description |
---|
CleanMojoTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
setUp() |
protected void |
tearDown() |
void |
testBasicClean()
Tests the simple removal of directories
|
void |
testCleanEmptyDirectories()
Tests that no exception is thrown when all internal variables are empty and that it doesn't
just remove whats there
|
void |
testCleanInvalidDirectory()
Tests the removal of a directory as file
|
void |
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 directories
|
void |
testFilesetsClean()
Tests the removal of files using fileset
|
void |
testMissingDirectory()
Tests the removal of a missing directory
|
configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getContainer, getPluginDescriptorLocation, getPluginDescriptorPath, getPublicDescriptorStream, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupConfiguredMojo, lookupConfiguredMojo, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, newMavenSession, newMojoExecution, setupContainer, setupContainerConfiguration, setVariableValueToObject
customizeComponentConfiguration, customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release
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
protected void setUp() throws Exception
setUp
in class AbstractMojoTestCase
Exception
protected void tearDown() throws Exception
tearDown
in class org.codehaus.plexus.PlexusTestCase
Exception
public void testBasicClean() throws Exception
Exception
- in case of an error.public void testCleanNestedStructure() throws Exception
Exception
- in case of an error.public void testCleanEmptyDirectories() throws Exception
Exception
- in case of an error.public void testFilesetsClean() throws Exception
Exception
- in case of an error.public void testCleanInvalidDirectory() throws Exception
Exception
- in case of an error.public void testMissingDirectory() throws Exception
Exception
- in case of an error.public void testCleanLockedFile() throws Exception
Note: Unix systems doesn't lock any files.
Exception
- in case of an error.Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.