mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-09 19:13:18 +00:00
[DS-3695] Cure failing IT: the test was wrong.
This commit is contained in:
@@ -2721,8 +2721,7 @@ public class DiscoveryRestControllerIT extends AbstractControllerIntegrationTest
|
|||||||
String bitstreamContent = "ThisIsSomeDummyText";
|
String bitstreamContent = "ThisIsSomeDummyText";
|
||||||
//Add a bitstream to an item
|
//Add a bitstream to an item
|
||||||
try (InputStream is = IOUtils.toInputStream(bitstreamContent, CharEncoding.UTF_8)) {
|
try (InputStream is = IOUtils.toInputStream(bitstreamContent, CharEncoding.UTF_8)) {
|
||||||
Bitstream bitstream = BitstreamBuilder.
|
Bitstream bitstream = BitstreamBuilder.createBitstream(context, publicItem1, is)
|
||||||
createBitstream(context, publicItem1, is)
|
|
||||||
.withName("Bitstream")
|
.withName("Bitstream")
|
||||||
.withMimeType("text/plain")
|
.withMimeType("text/plain")
|
||||||
.build();
|
.build();
|
||||||
@@ -2733,7 +2732,7 @@ public class DiscoveryRestControllerIT extends AbstractControllerIntegrationTest
|
|||||||
|
|
||||||
//** WHEN **
|
//** WHEN **
|
||||||
getClient().perform(get("/api/discover/search/objects")
|
getClient().perform(get("/api/discover/search/objects")
|
||||||
.param("query", "dc.date.issued:2010-02-13"))
|
.param("query", "dc.date.issued:\"2010-02-13\""))
|
||||||
|
|
||||||
//** THEN **
|
//** THEN **
|
||||||
//The status has to be 200 OK
|
//The status has to be 200 OK
|
||||||
@@ -2756,7 +2755,7 @@ public class DiscoveryRestControllerIT extends AbstractControllerIntegrationTest
|
|||||||
|
|
||||||
//** WHEN **
|
//** WHEN **
|
||||||
getClient().perform(get("/api/discover/search/objects")
|
getClient().perform(get("/api/discover/search/objects")
|
||||||
.param("query", "dc.date.issued:2013-02-13"))
|
.param("query", "dc.date.issued:\"2013-02-13\""))
|
||||||
|
|
||||||
//** THEN **
|
//** THEN **
|
||||||
//The status has to be 200 OK
|
//The status has to be 200 OK
|
||||||
|
Reference in New Issue
Block a user