diff --git a/dspace-server-webapp/src/test/java/org/dspace/app/rest/MetadataBitstreamControllerIT.java b/dspace-server-webapp/src/test/java/org/dspace/app/rest/MetadataBitstreamControllerIT.java index bad69cbb33ad..3e6438d99d8e 100644 --- a/dspace-server-webapp/src/test/java/org/dspace/app/rest/MetadataBitstreamControllerIT.java +++ b/dspace-server-webapp/src/test/java/org/dspace/app/rest/MetadataBitstreamControllerIT.java @@ -103,7 +103,7 @@ public void downloadSingleFileWithAuthorize() throws Exception { @Test public void downloadSingleFileWithNoAuthorize() throws Exception { getClient().perform(get(METADATABITSTREAM_DOWNLOAD_SINGLE_ENDPOINT + "/" + publicItem.getHandle() + "/" + bts.getName())) - .andExpect(status().is3xxRedirection()); + .andExpect(status().isOk()); } @Test