public final class TestUtils extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
public static void writeToFile(File file, String testStr) throws IOException
IOException
public static String readFile(File file) throws IOException
IOException
Copyright © 2002–2014 The Apache Software Foundation. All rights reserved.