mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 08:55:44 +01:00
remove unused import
This commit is contained in:
@@ -36,6 +36,7 @@ package sonia.scm.it;
|
|||||||
//~--- non-JDK imports --------------------------------------------------------
|
//~--- non-JDK imports --------------------------------------------------------
|
||||||
|
|
||||||
import org.junit.AfterClass;
|
import org.junit.AfterClass;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.junit.runners.Parameterized;
|
import org.junit.runners.Parameterized;
|
||||||
@@ -45,7 +46,6 @@ import sonia.scm.repository.Permission;
|
|||||||
import sonia.scm.repository.PermissionType;
|
import sonia.scm.repository.PermissionType;
|
||||||
import sonia.scm.repository.Repository;
|
import sonia.scm.repository.Repository;
|
||||||
import sonia.scm.repository.RepositoryTestData;
|
import sonia.scm.repository.RepositoryTestData;
|
||||||
import sonia.scm.util.IOUtil;
|
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
@@ -62,7 +62,6 @@ import com.sun.jersey.api.client.WebResource;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import org.junit.Ignore;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@@ -97,8 +96,8 @@ public class RepositoryITCase extends AbstractAdminITCaseBase
|
|||||||
authenticateAdmin(client);
|
authenticateAdmin(client);
|
||||||
|
|
||||||
Collection<Repository> repositories =
|
Collection<Repository> repositories =
|
||||||
createResource(client, "repositories").get(
|
createResource(client,
|
||||||
new GenericType<Collection<Repository>>() {}
|
"repositories").get(new GenericType<Collection<Repository>>() {}
|
||||||
);
|
);
|
||||||
|
|
||||||
if (repositories != null)
|
if (repositories != null)
|
||||||
@@ -124,12 +123,15 @@ public class RepositoryITCase extends AbstractAdminITCaseBase
|
|||||||
Collection<String[]> params = new ArrayList<String[]>();
|
Collection<String[]> params = new ArrayList<String[]>();
|
||||||
|
|
||||||
params.add(new String[] { "git" });
|
params.add(new String[] { "git" });
|
||||||
/*params.add(new String[] { "svn" });
|
|
||||||
|
|
||||||
if (IOUtil.search("hg") != null)
|
/*
|
||||||
{
|
* params.add(new String[] { "svn" });
|
||||||
params.add(new String[] { "hg" });
|
*
|
||||||
}*/
|
* if (IOUtil.search("hg") != null)
|
||||||
|
* {
|
||||||
|
* params.add(new String[] { "hg" });
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
|
||||||
return params;
|
return params;
|
||||||
}
|
}
|
||||||
@@ -138,7 +140,8 @@ public class RepositoryITCase extends AbstractAdminITCaseBase
|
|||||||
* Method description
|
* Method description
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Test @Ignore
|
@Test
|
||||||
|
@Ignore
|
||||||
public void create()
|
public void create()
|
||||||
{
|
{
|
||||||
Repository repository =
|
Repository repository =
|
||||||
@@ -151,7 +154,8 @@ public class RepositoryITCase extends AbstractAdminITCaseBase
|
|||||||
* Method description
|
* Method description
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Test @Ignore
|
@Test
|
||||||
|
@Ignore
|
||||||
public void delete()
|
public void delete()
|
||||||
{
|
{
|
||||||
Repository repository =
|
Repository repository =
|
||||||
@@ -180,7 +184,8 @@ public class RepositoryITCase extends AbstractAdminITCaseBase
|
|||||||
* Method description
|
* Method description
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Test @Ignore
|
@Test
|
||||||
|
@Ignore
|
||||||
public void modify()
|
public void modify()
|
||||||
{
|
{
|
||||||
Repository repository =
|
Repository repository =
|
||||||
@@ -188,8 +193,7 @@ public class RepositoryITCase extends AbstractAdminITCaseBase
|
|||||||
|
|
||||||
repository = createRepository(client, repository);
|
repository = createRepository(client, repository);
|
||||||
repository.setPermissions(Arrays.asList(new Permission("dent",
|
repository.setPermissions(Arrays.asList(new Permission("dent",
|
||||||
PermissionType.READ), new Permission("slarti",
|
PermissionType.READ), new Permission("slarti", PermissionType.WRITE)));
|
||||||
PermissionType.WRITE)));
|
|
||||||
|
|
||||||
WebResource wr = createResource(client,
|
WebResource wr = createResource(client,
|
||||||
"repositories/".concat(repository.getId()));
|
"repositories/".concat(repository.getId()));
|
||||||
@@ -237,8 +241,10 @@ public class RepositoryITCase extends AbstractAdminITCaseBase
|
|||||||
|
|
||||||
for (Repository other : repositories)
|
for (Repository other : repositories)
|
||||||
{
|
{
|
||||||
|
|
||||||
// fix equals check
|
// fix equals check
|
||||||
other.getPermissions();
|
other.getPermissions();
|
||||||
|
|
||||||
if (repository.equals(other))
|
if (repository.equals(other))
|
||||||
{
|
{
|
||||||
hvpt = other;
|
hvpt = other;
|
||||||
|
|||||||
Reference in New Issue
Block a user