mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 08:55:44 +01:00
improve integration tests
This commit is contained in:
@@ -207,6 +207,13 @@ public class GroupITCase extends AbstractAdminITCaseBase
|
||||
|
||||
assertNotNull(response);
|
||||
assertTrue(response.getStatus() == 204);
|
||||
|
||||
|
||||
wr = createResource(client, "groups/".concat(name));
|
||||
response = wr.get(ClientResponse.class);
|
||||
|
||||
assertNotNull(response);
|
||||
assertTrue(response.getStatus() == 404);
|
||||
}
|
||||
|
||||
//~--- get methods ----------------------------------------------------------
|
||||
|
||||
@@ -236,6 +236,10 @@ public class RepositoryITCase extends AbstractAdminITCaseBase
|
||||
|
||||
assertNotNull(response);
|
||||
assertTrue(response.getStatus() == 204);
|
||||
wr = createResource(client, "repositories/".concat(id));
|
||||
response = wr.get(ClientResponse.class);
|
||||
assertNotNull(response);
|
||||
assertTrue(response.getStatus() == 404);
|
||||
}
|
||||
|
||||
//~--- get methods ----------------------------------------------------------
|
||||
|
||||
@@ -194,10 +194,14 @@ public class UserITCase extends AbstractAdminITCaseBase
|
||||
private void deleteUser(User user)
|
||||
{
|
||||
WebResource wr = createResource(client, "users/".concat(user.getName()));
|
||||
ClientResponse respone = wr.delete(ClientResponse.class);
|
||||
ClientResponse response = wr.delete(ClientResponse.class);
|
||||
|
||||
assertNotNull(respone);
|
||||
assertTrue(respone.getStatus() == 204);
|
||||
assertNotNull(response);
|
||||
assertTrue(response.getStatus() == 204);
|
||||
wr = createResource(client, "users/".concat(user.getName()));
|
||||
response = wr.get(ClientResponse.class);
|
||||
assertNotNull(response);
|
||||
assertTrue(response.getStatus() == 404);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user