mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 10:41:06 +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() {
|
||||
Collection<String> params = new ArrayList<>();
|
||||
public static Collection<String[]> createRepositoryTypeParameters() {
|
||||
Collection<String[]> params = new ArrayList<>();
|
||||
|
||||
params.add("git");
|
||||
params.add("svn" );
|
||||
params.add(new String[] {"git"});
|
||||
params.add(new String[] {"svn"});
|
||||
|
||||
if (IOUtil.search("hg") != null)
|
||||
{
|
||||
params.add("hg");
|
||||
params.add(new String[] {"hg"});
|
||||
}
|
||||
|
||||
return params;
|
||||
|
||||
@@ -81,7 +81,7 @@ public class RepositoryArchiveITCase
|
||||
//~--- methods --------------------------------------------------------------
|
||||
|
||||
@Parameterized.Parameters(name = "{0}")
|
||||
public static Collection<String> createParameters() {
|
||||
public static Collection<String[]> createParameters() {
|
||||
return IntegrationTestUtil.createRepositoryTypeParameters();
|
||||
}
|
||||
|
||||
|
||||
@@ -208,7 +208,7 @@ public class RepositoryHookITCase extends AbstractAdminITCaseBase
|
||||
* @return repository types test parameter
|
||||
*/
|
||||
@Parameters(name = "{0}")
|
||||
public static Collection<String> createParameters()
|
||||
public static Collection<String[]> createParameters()
|
||||
{
|
||||
return IntegrationTestUtil.createRepositoryTypeParameters();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user