mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-23 12:30:10 +01:00
fix wrong error messages in integration tests
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user