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