use of org.apache.cxf.ext.logging.event.PrettyLoggingFilter in project cxf by apache.
the class TestPrettyLoggingFilter method filter.
private void filter(String payload, String expected, boolean truncated) {
LogEvent logEvent = new LogEvent();
logEvent.setPayload(payload);
logEvent.setContentType("text/xml");
logEvent.setTruncated(truncated);
LogEventSender dummy = new LogEventSender() {
public void send(LogEvent event) {
}
};
PrettyLoggingFilter prettyFilter = new PrettyLoggingFilter(dummy);
prettyFilter.setPrettyLogging(true);
prettyFilter.send(logEvent);
assertEquals(expected, logEvent.getPayload());
}
Aggregations