Example usage for org.springframework.boot.test.autoconfigure.web.servlet MockMvcPrint LOG_DEBUG

List of usage examples for org.springframework.boot.test.autoconfigure.web.servlet MockMvcPrint LOG_DEBUG

Introduction

In this page you can find the example usage for org.springframework.boot.test.autoconfigure.web.servlet MockMvcPrint LOG_DEBUG.

Prototype

MockMvcPrint LOG_DEBUG

To view the source code for org.springframework.boot.test.autoconfigure.web.servlet MockMvcPrint LOG_DEBUG.

Click Source Link

Document

Log MVC interactions at the DEBUG level.

Usage

From source file:org.springframework.boot.test.autoconfigure.web.servlet.SpringBootMockMvcBuilderCustomizer.java

private LinesWriter getLinesWriter() {
    if (this.print == MockMvcPrint.NONE) {
        return null;
    }// ww  w.  j  a  va 2 s .c o  m
    if (this.print == MockMvcPrint.LOG_DEBUG) {
        return new LoggingLinesWriter();
    }
    return new SystemLinesWriter(this.print);

}