Skip to content

Commit

Permalink
Fix another impact of recent updates in the core fcrepo4 codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Woods committed Nov 3, 2014
1 parent b93431c commit 06bb635
Showing 1 changed file with 9 additions and 9 deletions.
Expand Up @@ -17,7 +17,7 @@

import static javax.ws.rs.core.Response.Status.CREATED;
import static javax.ws.rs.core.Response.Status.FORBIDDEN;
import static javax.ws.rs.core.Response.Status.NOT_FOUND;
import static javax.ws.rs.core.Response.Status.GONE;
import static javax.ws.rs.core.Response.Status.NO_CONTENT;
import static javax.ws.rs.core.Response.Status.OK;
import static org.junit.Assert.assertEquals;
Expand Down Expand Up @@ -500,42 +500,42 @@ public void testAdminCanDeleteOpenObjAndItsDescendants() throws Exception {

assertEquals(
"Admin should not be able to read deleted datastream testparent3/tsp1_data!",
NOT_FOUND.getStatusCode(), canDelete("exampleadmin",
GONE.getStatusCode(), canDelete("exampleadmin",
testParent3 + "/" + tsp1Data, true));

assertEquals(
"Admin should not be able to read deleted datastream testparent3/tsp2_data!",
NOT_FOUND.getStatusCode(), canDelete("exampleadmin",
GONE.getStatusCode(), canDelete("exampleadmin",
testParent3 + "/" + tsp2Data, true));

assertEquals(
"Admin should not be able to read deleted object testparent3/testchild3a!",
NOT_FOUND.getStatusCode(), canDelete("exampleadmin",
GONE.getStatusCode(), canDelete("exampleadmin",
testParent3 + "/" + testChild3A, true));

assertEquals(
"Admin should not be able to read deleted object testparent3/testchild3b!",
NOT_FOUND.getStatusCode(), canDelete("exampleadmin",
GONE.getStatusCode(), canDelete("exampleadmin",
testParent3 + "/" + testChild3B, true));

assertEquals(
"Fedora Admin should not be able to read deleted datastream testparent3/tsp1_data!",
NOT_FOUND.getStatusCode(), canDelete("fedoraAdmin",
GONE.getStatusCode(), canDelete("fedoraAdmin",
testParent3 + "/" + tsp1Data, true));

assertEquals(
"Fedora Admin should not be able to read deleted datastream testparent3/tsp2_data!",
NOT_FOUND.getStatusCode(), canDelete("fedoraAdmin",
GONE.getStatusCode(), canDelete("fedoraAdmin",
testParent3 + "/" + tsp2Data, true));

assertEquals(
"Fedora Admin should not be able to read deleted object testparent3/testchild3a!",
NOT_FOUND.getStatusCode(), canDelete("fedoraAdmin",
GONE.getStatusCode(), canDelete("fedoraAdmin",
testParent3 + "/" + testChild3A, true));

assertEquals(
"Fedora Admin should not be able to read deleted object testparent3/testchild3b!",
NOT_FOUND.getStatusCode(), canDelete("fedoraAdmin",
GONE.getStatusCode(), canDelete("fedoraAdmin",
testParent3 + "/" + testChild3B, true));
}

Expand Down

0 comments on commit 06bb635

Please sign in to comment.