mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +00:00
8636 - checkstyle
This commit is contained in:
@@ -273,14 +273,14 @@ public class RequestItemRepositoryIT
|
|||||||
|
|
||||||
// Create it and see if it was created correctly.
|
// Create it and see if it was created correctly.
|
||||||
ObjectMapper mapper = new ObjectMapper();
|
ObjectMapper mapper = new ObjectMapper();
|
||||||
try{
|
try {
|
||||||
getClient().perform(post(URI_ROOT)
|
getClient().perform(post(URI_ROOT)
|
||||||
.content(mapper.writeValueAsBytes(rir))
|
.content(mapper.writeValueAsBytes(rir))
|
||||||
.contentType(contentType))
|
.contentType(contentType))
|
||||||
.andExpect(status().isCreated())
|
.andExpect(status().isCreated())
|
||||||
// verify the body is empty
|
// verify the body is empty
|
||||||
.andExpect(jsonPath("$").doesNotExist());
|
.andExpect(jsonPath("$").doesNotExist());
|
||||||
}finally{
|
} finally {
|
||||||
Iterator<RequestItem> itemRequests = requestItemService.findByItem(context, item);
|
Iterator<RequestItem> itemRequests = requestItemService.findByItem(context, item);
|
||||||
String token = null;
|
String token = null;
|
||||||
for (Iterator<RequestItem> it = itemRequests; it.hasNext();) {
|
for (Iterator<RequestItem> it = itemRequests; it.hasNext();) {
|
||||||
|
Reference in New Issue
Block a user