
com.atlassian.clover.reporters.TotalColumn Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clover Show documentation
Show all versions of clover Show documentation
Clover is an award winning code coverage and testing tool for Java and Groovy.
It integrates easily with Maven, Ant, Grails, Eclipse and IntelliJ IDEA
as well as with continuous integration servers such as Bamboo, Jenkins or Hudson.
Note: before Clover 4.0 this artifact was named com.cenqua.clover:clover.
The newest version!
package com.atlassian.clover.reporters;
import com.atlassian.clover.Logger;
/**
* A TotalColumn is a column used to display global data,
* from the entire project, not taking into account if it were
* covered or not.
*/
public abstract class TotalColumn extends Column {
public TotalColumn() {
formatter = new ColumnFormat.FloatColumnFormat();// the default format
}
public TotalColumn(Column col) {
super(col);
formatter = new ColumnFormat.FloatColumnFormat();// the default format
}
@Override
public void setFormat(String format) {
// only RAW is allowed on totals.
if (!ColumnFormat.RAW.equalsIgnoreCase(format)) {
Logger.getInstance().warn(
"A Total column may only have format='" + ColumnFormat.RAW +
"', not format='" + format + "'. Using format: " + ColumnFormat.RAW );
format = ColumnFormat.RAW;
}
super.setFormat(format);
}
public void setValues(int total) {
data = new ColumnData(total);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy