raccoon.core.uitest.data
Class SuiteLoader

java.lang.Object
  extended by raccoon.core.badhnati.castor.CastorParser
      extended by raccoon.core.uitest.data.SuiteLoader

public class SuiteLoader
extends CastorParser

Convenience class that loads the configuration elements from the XML file. Used mainly by Unit and Integration Tester component available in Raccoon.

Since:
Raccoon v0.7
Version:
$Id: SuiteLoader.java,v 1.1 2004/08/08 20:19:18 crouvrais Exp $
Author:
Cedric ROUVRAIS

Field Summary
 
Fields inherited from class raccoon.core.badhnati.castor.CastorParser
DEFAULT_MAPPING_FILE_NAME, mStdResolver
 
Constructor Summary
SuiteLoader()
          Default constructor, required for dynamic instanciation.
 
Method Summary
 UiSuite loadTestInformation(java.lang.Class pSrcClass, java.lang.String pTestFileName)
          Reads the XML file and converts the data into java beans using Castor XML.
 UiSuite loadTestInformation(java.lang.String pTestFileName)
          Reads the XML file and converts the data into java beans using Castor XML.
 void writeTestInformation(java.lang.String pFileName, UiSuite pUiSuite)
           
 
Methods inherited from class raccoon.core.badhnati.castor.CastorParser
marshal, marshal, marshal, unmarshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuiteLoader

public SuiteLoader()
Default constructor, required for dynamic instanciation.

Method Detail

loadTestInformation

public UiSuite loadTestInformation(java.lang.String pTestFileName)
                            throws RaccoonException
Reads the XML file and converts the data into java beans using Castor XML.

Parameters:
pTestFileName - the name of the configuration file that contains the data for Raccoon.
Returns:
the loaded configuration information for the Unit and Integration Tester component.
Throws:
RaccoonException - if the file is corrupted or invalid.

loadTestInformation

public UiSuite loadTestInformation(java.lang.Class pSrcClass,
                                   java.lang.String pTestFileName)
                            throws RaccoonException
Reads the XML file and converts the data into java beans using Castor XML.

Parameters:
pSrcClass - the class that has requested the load.
pTestFileName - the name of the configuration file that contains the data for Raccoon.
Returns:
the loaded configuration information for the Unit and Integration Tester component.
Throws:
RaccoonException - if the file is corrupted or invalid.

writeTestInformation

public void writeTestInformation(java.lang.String pFileName,
                                 UiSuite pUiSuite)
                          throws java.lang.Exception
Throws:
java.lang.Exception


Copyright null null. All Rights Reserved.