fr.paris.lutece.test
Class Utils

java.lang.Object
  extended by fr.paris.lutece.test.Utils

public class Utils
extends Object

Utils for tests


Constructor Summary
Utils()
           
 
Method Summary
static String getFileContent(String strFilename)
          Gets the content of a file as a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

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.