소스 검색

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>
tags/v5.5.0.201909110433-r
Matthias Sohn 4 년 전
부모
커밋
74937d0328
1개의 변경된 파일12개의 추가작업 그리고 4개의 파일을 삭제
  1. 12
    4
      org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/AllFactoriesHttpTestCase.java

+ 12
- 4
org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/AllFactoriesHttpTestCase.java 파일 보기

@@ -64,12 +64,20 @@ import org.junit.runners.Parameterized.Parameters;
@RunWith(Parameterized.class)
public abstract class AllFactoriesHttpTestCase extends HttpTestCase {

@Parameters
@Parameters(name = "{0}")
public static Collection<Object[]> data() {
// run all tests with both connection factories we have
return Arrays
.asList(new Object[][] { { new JDKHttpConnectionFactory() },
{ new HttpClientConnectionFactory() } });
return Arrays.asList(new Object[][] { { new JDKHttpConnectionFactory() {
@Override
public String toString() {
return this.getClass().getSuperclass().getName();
}
} }, { new HttpClientConnectionFactory() {
@Override
public String toString() {
return this.getClass().getSuperclass().getName();
}
} } });
}

protected AllFactoriesHttpTestCase(HttpConnectionFactory cf) {

Loading…
취소
저장