improve integration tests

This commit is contained in:
Sebastian Sdorra
2011-02-18 10:46:02 +01:00
parent 204c10155e
commit 6e200b4e92
3 changed files with 18 additions and 3 deletions

View File

@@ -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 ----------------------------------------------------------

View File

@@ -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 ----------------------------------------------------------

View File

@@ -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);
}
/**