org.apache.maven.plugin.dependency.testUtils
Class DependencyTestUtils

java.lang.Object
  extended by org.apache.maven.plugin.dependency.testUtils.DependencyTestUtils

public class DependencyTestUtils
extends Object


Constructor Summary
DependencyTestUtils()
           
 
Method Summary
static org.apache.maven.artifact.factory.ArtifactFactory getArtifactFactory()
           
static void removeDirectory(File dir)
          Deletes a directory and its contents.
static void setFileModifiedTime(File file)
           
static void setVariableValueToObject(Object object, String variable, Object value)
          convience method to set values to variables in objects that don't have setters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyTestUtils

public DependencyTestUtils()
Method Detail

removeDirectory

public static void removeDirectory(File dir)
                            throws IOException
Deletes a directory and its contents.

Parameters:
dir - The base directory of the included and excluded files.
Throws:
IOException
org.apache.maven.plugin.MojoExecutionException - When a directory failed to get deleted.

getArtifactFactory

public static org.apache.maven.artifact.factory.ArtifactFactory getArtifactFactory()
                                                                            throws IllegalAccessException
Throws:
IllegalAccessException

setVariableValueToObject

public static void setVariableValueToObject(Object object,
                                            String variable,
                                            Object value)
                                     throws IllegalAccessException
convience method to set values to variables in objects that don't have setters

Parameters:
object -
variable -
value -
Throws:
IllegalAccessException

setFileModifiedTime

public static void setFileModifiedTime(File file)
                                throws InterruptedException
Throws:
InterruptedException


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.