net.sourceforge.groboutils.codecoverage.v2.ant
Class FailOnReportStyle
java.lang.Object
net.sourceforge.groboutils.codecoverage.v2.ant.FailOnReportStyle
- All Implemented Interfaces:
- IReportStyle
- public class FailOnReportStyle
- extends java.lang.Object
- implements IReportStyle
Checks the coverage report for a subset of classes whose total
coverage percentage isn't up-to-snuff.
- Since:
- March 15, 2003
- Version:
- $Date: 2004/04/15 05:48:25 $
- Author:
- Matt Albrecht groboclown@users.sourceforge.net
Method Summary |
void |
addExclude(FailOnReportStyle.IncludeAndExclude iae)
|
void |
addInclude(FailOnReportStyle.IncludeAndExclude iae)
|
protected void |
cover(org.apache.tools.ant.Project project,
org.w3c.dom.Element el)
|
void |
generateReport(org.apache.tools.ant.Project project,
org.w3c.dom.Document doc,
java.lang.String moduleName)
|
protected double |
getActualPercentage()
|
protected boolean |
matchClass(java.lang.String className,
java.util.Vector inClass,
java.util.Vector exClass)
|
protected boolean |
matchClassInSet(java.lang.String className,
java.util.Vector set)
|
protected boolean |
matchModule(java.lang.String moduleName,
java.util.Vector inMod,
java.util.Vector exMod)
|
protected boolean |
matchModuleInSet(java.lang.String moduleName,
java.util.Vector set)
|
void |
reportComplete(org.apache.tools.ant.Project project,
java.util.Vector errorList)
Called when the task is finished generating all the reports. |
void |
setPercentage(double v)
|
void |
setProperty(java.lang.String p)
|
protected void |
setupFilters(java.util.Vector includeClass,
java.util.Vector excludeClass,
java.util.Vector includeModule,
java.util.Vector excludeModule)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FailOnReportStyle
public FailOnReportStyle()
setPercentage
public void setPercentage(double v)
setProperty
public void setProperty(java.lang.String p)
addInclude
public void addInclude(FailOnReportStyle.IncludeAndExclude iae)
addExclude
public void addExclude(FailOnReportStyle.IncludeAndExclude iae)
reportComplete
public void reportComplete(org.apache.tools.ant.Project project,
java.util.Vector errorList)
throws org.apache.tools.ant.BuildException
- Called when the task is finished generating all the reports. This
may be useful for styles that join all the reports together.
- Specified by:
reportComplete
in interface IReportStyle
- Throws:
org.apache.tools.ant.BuildException
generateReport
public void generateReport(org.apache.tools.ant.Project project,
org.w3c.dom.Document doc,
java.lang.String moduleName)
throws org.apache.tools.ant.BuildException
- Specified by:
generateReport
in interface IReportStyle
- Parameters:
doc
- the XML document of the coverage report to process.
- Throws:
org.apache.tools.ant.BuildException
cover
protected void cover(org.apache.tools.ant.Project project,
org.w3c.dom.Element el)
getActualPercentage
protected double getActualPercentage()
matchModule
protected boolean matchModule(java.lang.String moduleName,
java.util.Vector inMod,
java.util.Vector exMod)
matchModuleInSet
protected boolean matchModuleInSet(java.lang.String moduleName,
java.util.Vector set)
matchClass
protected boolean matchClass(java.lang.String className,
java.util.Vector inClass,
java.util.Vector exClass)
matchClassInSet
protected boolean matchClassInSet(java.lang.String className,
java.util.Vector set)
setupFilters
protected void setupFilters(java.util.Vector includeClass,
java.util.Vector excludeClass,
java.util.Vector includeModule,
java.util.Vector excludeModule)
throws org.apache.tools.ant.BuildException
- Throws:
org.apache.tools.ant.BuildException
Copyright © 2001-2003 by The GroboUtils Project