diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2019-09-08 12:34:27 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2019-09-08 17:34:13 +0200 |
commit | 74937d0328e40014ff70ecacb4f616913341c2e3 (patch) | |
tree | 1307236e4726ab017ed39e209eea436d4a0cd07f /org.eclipse.jgit.http.test/tst/org/eclipse | |
parent | 5717b2583e9ab766cf7aa9844a63a68620100ff3 (diff) | |
download | jgit-74937d0328e40014ff70ecacb4f616913341c2e3.tar.gz jgit-74937d0328e40014ff70ecacb4f616913341c2e3.zip |
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>
Diffstat (limited to 'org.eclipse.jgit.http.test/tst/org/eclipse')
-rw-r--r-- | org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/AllFactoriesHttpTestCase.java | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/AllFactoriesHttpTestCase.java b/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/AllFactoriesHttpTestCase.java index 266194f654..cb30b3f7b7 100644 --- a/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/AllFactoriesHttpTestCase.java +++ b/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) { |