fr.paris.lutece.test
Class Utils
java.lang.Object
fr.paris.lutece.test.Utils
public class Utils
- extends Object
Utils for tests
|
Constructor Summary |
Utils()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
getFileContent
public static String getFileContent(String strFilename)
throws IOException
- Gets the content of a file as a string
- Parameters:
strFilename - The filename (ie: myfile.text for file stored in src/test/resources)
- Returns:
- The file's content
- Throws:
IOException - If an IO error occurs
Copyright © 2013 Mairie de Paris. All Rights Reserved.