Commit 8255583b authored by Matija Obreza's avatar Matija Obreza
Browse files

Reduce test logging

parent fc0029ee
......@@ -54,7 +54,6 @@ import org.springframework.http.MediaType;
import org.springframework.restdocs.JUnitRestDocumentation;
import org.springframework.security.test.context.support.WithMockUser;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.result.MockMvcResultHandlers;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.context.WebApplicationContext;
......@@ -176,13 +175,13 @@ public class ApiImagesDocsTest extends AbstractApiTest {
LOG.info(objectMapper.writeValueAsString(ri));
sb.append(ri.getUuid());
})
.andDo(MockMvcResultHandlers.print())
// .andDo(MockMvcResultHandlers.print())
.andExpect(jsonPath("$.id", greaterThan(0)))
.andExpect(jsonPath("$.folder", is("/wiews/" + TEST_INSTCODE + "/acn/" + ACCENUMB)))
.andExpect(jsonPath("$.originalFilename", is(image1.getOriginalFilename())))
.andExpect(jsonPath("$.contentType", is("image/jpeg")))
.andDo(MockMvcResultHandlers.print())
// .andDo(MockMvcResultHandlers.print())
.andDo(document("img-instgallery-put",
pathParameters(
parameterWithName("instCode").description("Institute WIEWS code (e.g. NGA039)"),
......@@ -245,7 +244,7 @@ public class ApiImagesDocsTest extends AbstractApiTest {
.andDo(r -> {
LOG.info("Image metadata put: {}", r.getResponse().getContentAsString());
})
.andDo(MockMvcResultHandlers.print())
// .andDo(MockMvcResultHandlers.print())
.andDo(document("img-instgallery-metadata-put",
pathParameters(
parameterWithName("instCode").description("Institute WIEWS code (e.g. NGA039)"),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment