Commit 34543469 authored by Komal Makkar's avatar Komal Makkar
Browse files

overriden tests

parent 836d6ca5
......@@ -65,7 +65,7 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests {
@Override
public void should_return401_when_accessingWithNoAccessCredentials() throws Exception{
ClientResponse response = descriptor.run(getArg(), testUtils.getNoAccessToken());
assertEquals(error( response.getEntity(String.class)), 403, response.getStatus());
assertEquals(error( response.getEntity(String.class)), 401, response.getStatus());
}
@Test
......@@ -79,13 +79,13 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests {
@Override
public void should_return401_when_accessingWithEditorCredentials() throws Exception{
ClientResponse response = descriptor.run(getArg(), testUtils.getNoAccessToken());
assertEquals(error( response.getEntity(String.class)), 403, response.getStatus());
assertEquals(error( response.getEntity(String.class)), 401, response.getStatus());
}
@Test
@Override
public void should_return401_when_accessingWithAdminCredentials() throws Exception{
ClientResponse response = descriptor.run(getArg(), testUtils.getNoAccessToken());
assertEquals(error( response.getEntity(String.class)), 403, response.getStatus());
assertEquals(error( response.getEntity(String.class)), 401, response.getStatus());
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment