fr.paris.lutece.test
Class Utils

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

public class Utils
extends java.lang.Object

Utils for tests


Constructor Summary
Utils()
           
 
Method Summary
static java.lang.String getFileContent(java.lang.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 java.lang.String getFileContent(java.lang.String strFilename)
                                       throws java.io.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:
java.io.IOException - If an IO error occurs


Copyright © 2012 Mairie de Paris. All Rights Reserved.