org.sonatype.aether.test.util
Class TestFileUtils
java.lang.Object
org.sonatype.aether.test.util.TestFileUtils
public class TestFileUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestFileUtils
public TestFileUtils()
deleteTempFiles
public static void deleteTempFiles()
throws IOException
- Throws:
IOException
createTempFile
public static File createTempFile(String contents)
throws IOException
- Throws:
IOException
createTempFile
public static File createTempFile(byte[] pattern,
int repeat)
throws IOException
- Throws:
IOException
write
public static void write(String content,
File file)
throws IOException
- Throws:
IOException
write
public static void write(byte[] pattern,
int repeat,
File file)
throws IOException
- Throws:
IOException
copy
public static long copy(File source,
File target)
throws IOException
- Throws:
IOException
delete
public static void delete(File file)
throws IOException
- Throws:
IOException
getContent
public static byte[] getContent(File file)
throws IOException
- Throws:
IOException
assertContent
public static void assertContent(byte[] expected,
File file)
throws IOException
- Throws:
IOException
assertContent
public static void assertContent(String expected,
File file)
throws IOException
- Throws:
IOException
mkdirs
public static boolean mkdirs(File directory)
createTempDir
public static File createTempDir()
throws IOException
- Throws:
IOException
createTempDir
public static File createTempDir(String suffix)
throws IOException
- Throws:
IOException
read
public static void read(Properties props,
File file)
throws IOException
- Throws:
IOException
write
public static void write(Properties props,
File file)
throws IOException
- Throws:
IOException
Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.