public class DependencyTestUtils extends Object
Constructor and Description |
---|
DependencyTestUtils() |
Modifier and Type | Method and Description |
---|---|
static 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)
convenience method to set values to variables in objects that don't have setters
|
public static void removeDirectory(File dir) throws IOException
dir
- File
The base directory of the included and excluded files.IOException
- in case of an error. When a directory failed to get deleted.public static ArtifactFactory getArtifactFactory() throws IllegalAccessException
IllegalAccessException
public static void setVariableValueToObject(Object object, String variable, Object value) throws IllegalAccessException
object
- Object
variable
- the field name.value
- The value to be set.IllegalAccessException
- in case of an error.public static void setFileModifiedTime(File file) throws InterruptedException
InterruptedException
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.