Java 类org.springframework.mock.web.MockJspWriter 实例源码

项目:log4j2    文件:DumpTagTest.java   
@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);
}
项目:logging-log4j2    文件:DumpTagTest.java   
@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);
}
项目:mobile-starting-framework    文件:DefinitionListDefinitionTagTest.java   
public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
    MockJspWriter writer = (MockJspWriter) invocationOnMock.getArguments()[0];
    writer.write("Lorem ipsum dolor sit amet, consectetur adipiscing elit.");
    return null;
}
项目:mobile-starting-framework    文件:FormTagTest.java   
public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
    MockJspWriter writer = (MockJspWriter) invocationOnMock.getArguments()[0];
    writer.write("Lorem ipsum dolor sit amet, consectetur adipiscing elit.");
    return null;
}
项目:mobile-starting-framework    文件:ListViewTagTest.java   
public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
    MockJspWriter writer = (MockJspWriter) invocationOnMock.getArguments()[0];
    writer.write("Lorem ipsum dolor sit amet, consectetur adipiscing elit.");
    return null;
}
项目:mobile-starting-framework    文件:ChildPageTagTest.java   
public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
    MockJspWriter writer = (MockJspWriter) invocationOnMock.getArguments()[0];
    writer.write("Lorem ipsum dolor sit amet, consectetur adipiscing elit.");
    return null;
}
项目:mobile-starting-framework    文件:LabeledRowTagTest.java   
public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
    MockJspWriter writer = (MockJspWriter) invocationOnMock.getArguments()[0];
    writer.write("Lorem ipsum dolor sit amet, consectetur adipiscing elit.");
    return null;
}
项目:mobile-starting-framework    文件:ListItemTagTest.java   
public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
    MockJspWriter writer = (MockJspWriter) invocationOnMock.getArguments()[0];
    writer.write("Lorem ipsum dolor sit amet, consectetur adipiscing elit.");
    return null;
}
项目:mobile-starting-framework    文件:FormInputTagTest.java   
public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
    MockJspWriter writer = (MockJspWriter) invocationOnMock.getArguments()[0];
    writer.write("Lorem ipsum dolor sit amet, consectetur adipiscing elit.");
    return null;
}
项目:mobile-starting-framework    文件:SectionTagTest.java   
public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
    MockJspWriter writer = (MockJspWriter) invocationOnMock.getArguments()[0];
    writer.write("Lorem ipsum dolor sit amet, consectetur adipiscing elit.");
    return null;
}
项目:mobile-starting-framework    文件:PopupTagTest.java   
public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
    MockJspWriter writer = (MockJspWriter) invocationOnMock.getArguments()[0];
    writer.write("Lorem ipsum dolor sit amet, consectetur adipiscing elit.");
    return null;
}
项目:mobile-starting-framework    文件:UnorderedListTagTest.java   
public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
    MockJspWriter writer = (MockJspWriter) invocationOnMock.getArguments()[0];
    writer.write("Lorem ipsum dolor sit amet, consectetur adipiscing elit.");
    return null;
}
项目:mobile-starting-framework    文件:OrderedListTagTest.java   
public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
    MockJspWriter writer = (MockJspWriter) invocationOnMock.getArguments()[0];
    writer.write("Lorem ipsum dolor sit amet, consectetur adipiscing elit.");
    return null;
}
项目:mobile-starting-framework    文件:DefinitionListViewTagTest.java   
public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
    MockJspWriter writer = (MockJspWriter) invocationOnMock.getArguments()[0];
    writer.write("Lorem ipsum dolor sit amet, consectetur adipiscing elit.");
    return null;
}
项目:mobile-starting-framework    文件:TabBarTest.java   
public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
    MockJspWriter writer = (MockJspWriter) invocationOnMock.getArguments()[0];
    writer.write("Lorem ipsum dolor sit amet, consectetur adipiscing elit.");
    return null;
}
项目:mobile-starting-framework    文件:MultiPageTagTest.java   
public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
    MockJspWriter writer = (MockJspWriter) invocationOnMock.getArguments()[0];
    writer.write("Lorem ipsum dolor sit amet, consectetur adipiscing elit.");
    return null;
}
项目:mobile-starting-framework    文件:TabBarItemTest.java   
public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
    MockJspWriter writer = (MockJspWriter) invocationOnMock.getArguments()[0];
    writer.write("Lorem ipsum dolor sit amet, consectetur adipiscing elit.");
    return null;
}
项目:mobile-starting-framework    文件:DefinitionListTermTagTest.java   
public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
    MockJspWriter writer = (MockJspWriter) invocationOnMock.getArguments()[0];
    writer.write("Lorem ipsum dolor sit amet, consectetur adipiscing elit.");
    return null;
}
项目:mobile-starting-framework    文件:ContentTagTest.java   
public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
    MockJspWriter writer = (MockJspWriter) invocationOnMock.getArguments()[0];
    writer.write("Lorem ipsum dolor sit amet, consectetur adipiscing elit.");
    return null;
}