[DS-3695] Cure failing IT: the test was wrong.

This commit is contained in:
Mark H. Wood
2018-12-13 15:04:43 -05:00
parent c375fe1762
commit fa9cc7c958

View File

@@ -2721,8 +2721,7 @@ public class DiscoveryRestControllerIT extends AbstractControllerIntegrationTest
String bitstreamContent = "ThisIsSomeDummyText";
//Add a bitstream to an item
try (InputStream is = IOUtils.toInputStream(bitstreamContent, CharEncoding.UTF_8)) {
Bitstream bitstream = BitstreamBuilder.
createBitstream(context, publicItem1, is)
Bitstream bitstream = BitstreamBuilder.createBitstream(context, publicItem1, is)
.withName("Bitstream")
.withMimeType("text/plain")
.build();
@@ -2733,7 +2732,7 @@ public class DiscoveryRestControllerIT extends AbstractControllerIntegrationTest
//** WHEN **
getClient().perform(get("/api/discover/search/objects")
.param("query", "dc.date.issued:2010-02-13"))
.param("query", "dc.date.issued:\"2010-02-13\""))
//** THEN **
//The status has to be 200 OK
@@ -2756,7 +2755,7 @@ public class DiscoveryRestControllerIT extends AbstractControllerIntegrationTest
//** WHEN **
getClient().perform(get("/api/discover/search/objects")
.param("query", "dc.date.issued:2013-02-13"))
.param("query", "dc.date.issued:\"2013-02-13\""))
//** THEN **
//The status has to be 200 OK