1 |
| package org.jboss.cache.util; |
2 |
| |
3 |
| import org.apache.tools.ant.taskdefs.optional.junit.JUnitTest; |
4 |
| import org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter; |
5 |
| |
6 |
| public class XMLUnitTestFormatter extends XMLJUnitResultFormatter |
7 |
| { |
8 |
| |
9 |
330
| public void startTestSuite(JUnitTest test)
|
10 |
| { |
11 |
330
| String configuration = (String) System.getProperties().get("jgroups.stack");
|
12 |
| |
13 |
330
| if (configuration != null && !configuration.trim().equals(""))
|
14 |
| { |
15 |
329
| test.setName(test.getName() + "(" + configuration + ")");
|
16 |
| } |
17 |
| |
18 |
330
| super.startTestSuite(test);
|
19 |
| } |
20 |
| } |