From 83b6b7dbf9209e3a730a7a11976a7bbd4175e8f0 Mon Sep 17 00:00:00 2001 From: milanmajchrak Date: Tue, 3 Oct 2023 13:14:31 +0200 Subject: [PATCH] Fixed tests --- .../java/org/dspace/app/rest/MetadataBitstreamControllerIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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