ch.sahits.test
Class PropertyFileLoader

java.lang.Object
  extended by ch.sahits.test.PropertyFileLoader

public class PropertyFileLoader
extends java.lang.Object

This utility is a super class for all test classes that read configurations from a property file that lies in the same package.

Author:
Andi Hotz, Sahits GmbH

Constructor Summary
PropertyFileLoader()
           
 
Method Summary
protected  java.util.Properties loadFile(java.lang.String fileName)
          Load the properties from the specified file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyFileLoader

public PropertyFileLoader()
Method Detail

loadFile

protected java.util.Properties loadFile(java.lang.String fileName)
Load the properties from the specified file. This method is inteded to be called from within the constructor of the subclass

Parameters:
fileName - file name of the property file
Returns:
Instance of the property file read from the system or an empty property file if an error occured during load.