org.apache.maven.plugin.assembly.testutils
Class TestUtils

java.lang.Object
  extended by org.apache.maven.plugin.assembly.testutils.TestUtils

public final class TestUtils
extends Object


Method Summary
static String readFile(File file)
          Read file content using platform encoding and converting line endings to \\n.
static String toString(Throwable error)
           
static void writeToFile(File file, String testStr)
          Write a text to a file using platform encoding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.