Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 634 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 634 Bytes

ctzen-test

Test Utilities.

MockMvcResultHandlers

Custom version spring-test-mvc's MockMvcResultHandlers which prints to SLF4J Logger, and TestNG Reporter, in addition to stdout.

e.g.

import static com.ctzen.test.spring.web.servlet.result.MockMvcResultHandlers.*;

mockMvc.perform(get("/foo")
       .andDo(reporter());
       
mockMvc.perform(get("/foo")
       .andDo(log(logger));