8636 - checkstyle

This commit is contained in:
aroman-arvo
2023-05-17 19:26:50 +02:00
parent 567e989202
commit 9784c6f50d

View File

@@ -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();) {