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