org.fest.swing.junit.ant
Class ReportTransformer

java.lang.Object
  extended by org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer
      extended by org.fest.swing.junit.ant.ReportTransformer

public class ReportTransformer
extends org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer

Transforms a JUnit XML report. The default transformation generates an HTML report in either framed or non-framed style.

Author:
Alex Ruiz

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.Format
 
Field Summary
 
Fields inherited from class org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer
dbfactory, document, format, FRAMES, NOFRAMES, styleDir, task, toDir
 
Constructor Summary
ReportTransformer(org.apache.tools.ant.Task task)
          Creates a new ReportTransformer.
 
Method Summary
 org.apache.tools.ant.types.Path createClasspath()
          Creates the current classpath.
 org.apache.tools.ant.taskdefs.XSLTProcess.Param createParam()
          Create an instance of an XSL parameter for configuration by Ant.
protected  org.apache.tools.ant.types.Resource getStylesheet()
          Access the stylesheet to be used as a resource.
 void setClasspath(org.apache.tools.ant.types.Path classpath)
          Sets an additional classpath.
 void setClasspathRef(org.apache.tools.ant.types.Reference r)
          Sets a reference to a classpath.
 void transform()
          Performs the XSLT transformation to generate the HTML report.
 
Methods inherited from class org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer
checkOptions, getDocumentBuilderFactory, getStylesheetSystemId, setExtension, setFormat, setStyledir, setTodir, setXmlDocument, setXmlfile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportTransformer

public ReportTransformer(org.apache.tools.ant.Task task)
Creates a new ReportTransformer.

Parameters:
task - task delegating to this class.
Method Detail

createParam

public org.apache.tools.ant.taskdefs.XSLTProcess.Param createParam()
Create an instance of an XSL parameter for configuration by Ant.

Overrides:
createParam in class org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer
Returns:
an instance of the Param class to be configured.

transform

public void transform()
               throws org.apache.tools.ant.BuildException
Performs the XSLT transformation to generate the HTML report.

Overrides:
transform in class org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer
Throws:
org.apache.tools.ant.BuildException - thrown if something goes wrong with the transformation.

getStylesheet

protected org.apache.tools.ant.types.Resource getStylesheet()
Access the stylesheet to be used as a resource.

Overrides:
getStylesheet in class org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer
Returns:
stylesheet as a resource

setClasspath

public void setClasspath(org.apache.tools.ant.types.Path classpath)
Sets an additional classpath.

Parameters:
classpath - the additional classpath to append to the current one.

setClasspathRef

public void setClasspathRef(org.apache.tools.ant.types.Reference r)
Sets a reference to a classpath.

Parameters:
r - the reference to set.

createClasspath

public org.apache.tools.ant.types.Path createClasspath()
Creates the current classpath.

Returns:
the created classpath.


Copyright © 2007-2010 FEST (Fixtures for Easy Software Testing). All Rights Reserved.