net.sf.mavenhist.extractor.surefire
Class AbstractTestExtractor
java.lang.Object
net.sf.mavenhist.extractor.surefire.AbstractTestExtractor
- All Implemented Interfaces:
- INamedExtractor, IValueExtractor
- Direct Known Subclasses:
- TestErrorsExtractor, TestFailuresExtractor, TestPassrateExtractor, TestSkippedExtractor, TestTestsExtractor, TestTimeExtractor
public abstract class AbstractTestExtractor
- extends Object
- implements IValueExtractor
We have to use regular expression parsing since there is not TEST-suite.xml any more and the
output format of the site is invalid XML. Only for Maven 2.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTestExtractor
public AbstractTestExtractor(int tableColumnInclSkipped,
int tableColumnWithoutSkipped)
extract
public final MultiMetric[] extract(InputStream inputStream)
throws ExtractionException
- Extracts multiple values from one result document.
- Specified by:
extract
in interface IValueExtractor
- Parameters:
inputStream
- stream of the read file.
- Returns:
- Array of metrics with the differentiated locations and values. Should never return
null
but may return an empty array.
- Throws:
ExtractionException
reformatValue
public String reformatValue(String toFormat)
- Reformats a string if needed. By default returns the input
String
.
- Parameters:
toFormat
- string that will be formatted
- Returns:
- formatted string
Copyright © 2009. All Rights Reserved.