mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 02:31:14 +01:00
added group integration tests
This commit is contained in:
@@ -35,8 +35,6 @@ package sonia.scm.it;
|
||||
|
||||
//~--- non-JDK imports --------------------------------------------------------
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
import sonia.scm.user.User;
|
||||
@@ -46,7 +44,6 @@ import static org.junit.Assert.*;
|
||||
|
||||
//~--- JDK imports ------------------------------------------------------------
|
||||
|
||||
import com.sun.jersey.api.client.Client;
|
||||
import com.sun.jersey.api.client.ClientResponse;
|
||||
import com.sun.jersey.api.client.GenericType;
|
||||
import com.sun.jersey.api.client.WebResource;
|
||||
@@ -59,7 +56,7 @@ import javax.ws.rs.core.MediaType;
|
||||
*
|
||||
* @author Sebastian Sdorra
|
||||
*/
|
||||
public class UserITCase extends AbstractITCaseBase
|
||||
public class UserITCase extends AbstractAdminITCaseBase
|
||||
{
|
||||
|
||||
/**
|
||||
@@ -88,27 +85,6 @@ public class UserITCase extends AbstractITCaseBase
|
||||
deleteUser(dent);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*/
|
||||
@Before
|
||||
public void login()
|
||||
{
|
||||
client = createClient();
|
||||
adminLogin(client);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*/
|
||||
@After
|
||||
public void logout()
|
||||
{
|
||||
logout(client);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
@@ -127,11 +103,12 @@ public class UserITCase extends AbstractITCaseBase
|
||||
wr.type(MediaType.APPLICATION_XML).put(ClientResponse.class, marvin);
|
||||
|
||||
assertNotNull(response);
|
||||
assertTrue(response.getStatus() == 204);
|
||||
|
||||
// assertTrue( response.getStatus() == 204 );
|
||||
User other = getUser(marvin.getName());
|
||||
|
||||
assertEquals(marvin.getDisplayName(), other.getDisplayName());
|
||||
assertNotNull(other.getLastModified());
|
||||
deleteUser(marvin);
|
||||
}
|
||||
|
||||
@@ -260,9 +237,4 @@ public class UserITCase extends AbstractITCaseBase
|
||||
|
||||
return user;
|
||||
}
|
||||
|
||||
//~--- fields ---------------------------------------------------------------
|
||||
|
||||
/** Field description */
|
||||
private Client client;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user