fix wrong error messages in integration tests

This commit is contained in:
Sebastian Sdorra
2012-02-05 10:31:23 +01:00
parent 4396a4b96d
commit e18e280256
11 changed files with 38 additions and 39 deletions

View File

@@ -103,7 +103,7 @@ public class RepositorySimplePermissionITCase
ClientResponse response = wr.post(ClientResponse.class, repository);
assertNotNull(response);
assertEquals(response.getStatus(), 201);
assertEquals(201, response.getStatus());
String repositoryUrl = response.getHeaders().getFirst("Location");
@@ -112,7 +112,7 @@ public class RepositorySimplePermissionITCase
wr = client.resource(repositoryUrl);
response = wr.get(ClientResponse.class);
assertNotNull(response);
assertEquals(response.getStatus(), 200);
assertEquals(200, response.getStatus());
repository = response.getEntity(Repository.class);
assertNotNull(repository);
REPOSITORY_UUID = repository.getId();
@@ -148,7 +148,7 @@ public class RepositorySimplePermissionITCase
if (!credentials.isAnonymous())
{
assertNotNull(response);
assertEquals(response.getStatus(), 200);
assertEquals(200, response.getStatus());
Collection<Repository> repositories =
response.getEntity(new GenericType<Collection<Repository>>() {}
@@ -172,7 +172,7 @@ public class RepositorySimplePermissionITCase
if (!credentials.isAnonymous())
{
assertNotNull(response);
assertEquals(response.getStatus(), 403);
assertEquals(403, response.getStatus());
response.close();
}
}