use of org.springframework.mock.web.MockPageContext in project logging-log4j2 by apache.
the class DumpTagTest method setUp.
@Before
public void setUp() {
this.output = new ByteArrayOutputStream();
this.writer = new OutputStreamWriter(this.output, UTF8);
this.context = new MockPageContext() {
private final MockJspWriter jspWriter = new MockJspWriter(writer);
@Override
public JspWriter getOut() {
return this.jspWriter;
}
};
this.tag = new DumpTag();
this.tag.setPageContext(this.context);
}
use of org.springframework.mock.web.MockPageContext in project logging-log4j2 by apache.
the class ExitTagTest method setUp.
@Before
public void setUp() {
this.tag = new ExitTag();
this.tag.setPageContext(new MockPageContext());
this.tag.setLogger(this.logger);
}
use of org.springframework.mock.web.MockPageContext in project logging-log4j2 by apache.
the class IfEnabledTagTest method setUp.
@Before
public void setUp() {
this.tag = new IfEnabledTag();
this.tag.setPageContext(new MockPageContext());
this.tag.setLogger(this.logger);
}
use of org.springframework.mock.web.MockPageContext in project logging-log4j2 by apache.
the class LoggingMessageTagSupportTest method setUp.
private void setUp(final Level level) {
this.tag = new LoggingMessageTagSupport() {
private static final long serialVersionUID = 1L;
@Override
protected Level getLevel() {
return level;
}
};
this.tag.setPageContext(new MockPageContext());
this.tag.setLogger(this.logger);
}
use of org.springframework.mock.web.MockPageContext in project logging-log4j2 by apache.
the class EnterTagTest method setUp.
@Before
public void setUp() {
this.tag = new EntryTag();
this.tag.setPageContext(new MockPageContext());
this.tag.setLogger(this.logger);
}
Aggregations