Set parameter name in parameterized http tests
This shows the class name of the HTTP factory used in each test run. Change-Id: I7c1df20f0e138dc7e3120fe87e80d40ab17dd8c8 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
parent
5717b2583e
commit
74937d0328
|
@ -64,12 +64,20 @@
|
||||||
@RunWith(Parameterized.class)
|
@RunWith(Parameterized.class)
|
||||||
public abstract class AllFactoriesHttpTestCase extends HttpTestCase {
|
public abstract class AllFactoriesHttpTestCase extends HttpTestCase {
|
||||||
|
|
||||||
@Parameters
|
@Parameters(name = "{0}")
|
||||||
public static Collection<Object[]> data() {
|
public static Collection<Object[]> data() {
|
||||||
// run all tests with both connection factories we have
|
// run all tests with both connection factories we have
|
||||||
return Arrays
|
return Arrays.asList(new Object[][] { { new JDKHttpConnectionFactory() {
|
||||||
.asList(new Object[][] { { new JDKHttpConnectionFactory() },
|
@Override
|
||||||
{ new HttpClientConnectionFactory() } });
|
public String toString() {
|
||||||
|
return this.getClass().getSuperclass().getName();
|
||||||
|
}
|
||||||
|
} }, { new HttpClientConnectionFactory() {
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return this.getClass().getSuperclass().getName();
|
||||||
|
}
|
||||||
|
} } });
|
||||||
}
|
}
|
||||||
|
|
||||||
protected AllFactoriesHttpTestCase(HttpConnectionFactory cf) {
|
protected AllFactoriesHttpTestCase(HttpConnectionFactory cf) {
|
||||||
|
|
Loading…
Reference in New Issue