mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 18:51:10 +01:00
Fix parameterized tests for junit 5
This commit is contained in:
@@ -120,15 +120,15 @@ public final class IntegrationTestUtil
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Collection<String> createRepositoryTypeParameters() {
|
public static Collection<String[]> createRepositoryTypeParameters() {
|
||||||
Collection<String> params = new ArrayList<>();
|
Collection<String[]> params = new ArrayList<>();
|
||||||
|
|
||||||
params.add("git");
|
params.add(new String[] {"git"});
|
||||||
params.add("svn" );
|
params.add(new String[] {"svn"});
|
||||||
|
|
||||||
if (IOUtil.search("hg") != null)
|
if (IOUtil.search("hg") != null)
|
||||||
{
|
{
|
||||||
params.add("hg");
|
params.add(new String[] {"hg"});
|
||||||
}
|
}
|
||||||
|
|
||||||
return params;
|
return params;
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ public class RepositoryArchiveITCase
|
|||||||
//~--- methods --------------------------------------------------------------
|
//~--- methods --------------------------------------------------------------
|
||||||
|
|
||||||
@Parameterized.Parameters(name = "{0}")
|
@Parameterized.Parameters(name = "{0}")
|
||||||
public static Collection<String> createParameters() {
|
public static Collection<String[]> createParameters() {
|
||||||
return IntegrationTestUtil.createRepositoryTypeParameters();
|
return IntegrationTestUtil.createRepositoryTypeParameters();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ public class RepositoryHookITCase extends AbstractAdminITCaseBase
|
|||||||
* @return repository types test parameter
|
* @return repository types test parameter
|
||||||
*/
|
*/
|
||||||
@Parameters(name = "{0}")
|
@Parameters(name = "{0}")
|
||||||
public static Collection<String> createParameters()
|
public static Collection<String[]> createParameters()
|
||||||
{
|
{
|
||||||
return IntegrationTestUtil.createRepositoryTypeParameters();
|
return IntegrationTestUtil.createRepositoryTypeParameters();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user