1 package net.sf.mavenhist.extractor.surefire;
2
3
4 /**
5 * Extracts the junit errors. Only for Maven 2.
6 */
7 public class TestTimeExtractor extends AbstractTestExtractor {
8
9 /**
10 * Constructor.
11 */
12 public TestTimeExtractor() {
13 super(5, 4);
14 }
15
16 public String reformatValue(String toFormat) {
17 String[] split = toFormat.split(",");
18 String strippedString = "";
19 for (int i = 0; i < split.length; i++) {
20 strippedString += split[i];
21 }
22 return strippedString;
23 }
24
25 /**
26 * {@inheritDoc}
27 */
28 public String getName() {
29 return "testtime";
30 }
31 }