Skip to content

Commit

Permalink
[DSC-1827] Fixes BitstreamRestControllerIT
Browse files Browse the repository at this point in the history
  • Loading branch information
vins01-4science committed Oct 4, 2024
1 parent e1b8a61 commit 2483e72
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,6 @@ public void checkContentDispositionOfFormats() throws Exception {
Bitstream rtf;
Bitstream xml;
Bitstream txt;
Bitstream html;
Bitstream csv;
try (InputStream is = IOUtils.toInputStream(content, CharEncoding.UTF_8)) {
rtf = BitstreamBuilder.createBitstream(context, item, is)
Expand All @@ -1379,8 +1378,6 @@ public void checkContentDispositionOfFormats() throws Exception {
.withMimeType("text/xml").build();
txt = BitstreamBuilder.createBitstream(context, item, is)
.withMimeType("text/plain").build();
html = BitstreamBuilder.createBitstream(context, item, is)
.withMimeType("text/html").build();
csv = BitstreamBuilder.createBitstream(context, item, is)
.withMimeType("text/csv").build();
}
Expand All @@ -1391,7 +1388,6 @@ public void checkContentDispositionOfFormats() throws Exception {
verifyBitstreamDownload(xml, "text/xml;charset=UTF-8", true);
verifyBitstreamDownload(txt, "text/plain;charset=UTF-8", true);
// this format is not configured and should open inline
verifyBitstreamDownload(html, "text/html;charset=UTF-8", false);
verifyBitstreamDownload(csv, "text/csv;charset=UTF-8", false);
}

Expand Down

0 comments on commit 2483e72

Please sign in to comment.