org.apache.maven.plugin.assembly.testutils
Class TestUtils
java.lang.Object
org.apache.maven.plugin.assembly.testutils.TestUtils
public final class TestUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
writeToFile
public static void writeToFile(File file,
String testStr)
throws IOException
- Write a text to a file using platform encoding.
- Throws:
IOException
readFile
public static String readFile(File file)
throws IOException
- Read file content using platform encoding and converting line endings to \\n.
- Throws:
IOException
toString
public static String toString(Throwable error)
Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.