mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-06-22 21:31:21 +02:00
Simplify scm test parameters
This commit is contained in:
@@ -39,11 +39,9 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.Parameterized;
|
||||
import org.junit.runners.Parameterized.Parameters;
|
||||
import sonia.scm.util.IOUtil;
|
||||
import sonia.scm.web.VndMediaType;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
||||
import static org.hamcrest.Matchers.equalTo;
|
||||
@@ -64,17 +62,8 @@ public class RepositoriesITCase {
|
||||
}
|
||||
|
||||
@Parameters(name = "{0}")
|
||||
public static Collection<String[]> createParameters() {
|
||||
Collection<String[]> params = new ArrayList<>();
|
||||
|
||||
params.add(new String[]{"git"});
|
||||
params.add(new String[]{"svn"});
|
||||
|
||||
if (IOUtil.search("hg") != null) {
|
||||
params.add(new String[]{"hg"});
|
||||
}
|
||||
|
||||
return params;
|
||||
public static Collection<String> createParameters() {
|
||||
return ScmParameterizedIntegrationTestUtil.createParameters();
|
||||
}
|
||||
|
||||
@After
|
||||
|
||||
Reference in New Issue
Block a user