Skip to content

ctzen/ctzen-test

Repository files navigation

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));

About

Yet another set of test utilities.

Resources

License

Stars

Watchers

Forks

Packages

No packages published