raccoon.core.uitest.report
Class RaccoonGenerator

java.lang.Object
  extended by raccoon.core.uitest.report.RaccoonGenerator

public class RaccoonGenerator
extends java.lang.Object

Generates a very simple xml report. TODO This is a quick 'n dirty implementation, it should be cleaned up. With Castor?

Since:
Raccoon v1.0
Version:
$Id: RaccoonGenerator.java,v 1.1 2004/08/08 20:19:19 crouvrais Exp $
Author:
Cedric ROUVRAIS

Constructor Summary
RaccoonGenerator()
          Default constructor, required for dynamic instanciation.
 
Method Summary
 void generateXmlReport(IUnitSuiteResult pSuiteResult, java.lang.String pOutputFile)
          Generates the XML Report from the result of the unit suite.
 int getIndentation()
          Retrieves the number of spaces used for the XML indentation.
 void setIndentation(int pIndentation)
          Defines the number of spaces to use for the XML indentation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RaccoonGenerator

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

Method Detail

getIndentation

public int getIndentation()
Retrieves the number of spaces used for the XML indentation.

Returns:
the number of spaces, 4 if using default.

setIndentation

public void setIndentation(int pIndentation)
                    throws java.lang.IllegalArgumentException
Defines the number of spaces to use for the XML indentation.

Parameters:
pIndentation - the number of spaces when indenting the XML string.
Throws:
java.lang.IllegalArgumentException - if the indentation isn't greater than 0

generateXmlReport

public void generateXmlReport(IUnitSuiteResult pSuiteResult,
                              java.lang.String pOutputFile)
                       throws RaccoonException
Generates the XML Report from the result of the unit suite.

Parameters:
pSuiteResult - the suite result, post execution of the test.
pOutputFile - the file that is to receive the generated report.
Throws:
RaccoonException - if the generation fails.


Copyright null null. All Rights Reserved.