Package org.geoserver.monitor.MonitorServletResponse

Examples of org.geoserver.monitor.MonitorServletResponse.MonitorOutputStream


    public void testOutputStream() throws IOException {
        byte[] data = data();
       
        MockServletOutputStream mock = new MockServletOutputStream();
        MonitorOutputStream out = new MonitorOutputStream(mock);
        out.write(data);
       
        assertEquals(data.length, mock.getBinaryContent().length);
        assertEquals(data.length, out.getBytesWritten());
    }
View Full Code Here


    @Test
    public void testOutputStream() throws IOException {
        byte[] data = data();
       
        MockServletOutputStream mock = new MockServletOutputStream();
        MonitorOutputStream out = new MonitorOutputStream(mock);
        out.write(data);
       
        assertEquals(data.length, mock.getBinaryContent().length);
        assertEquals(data.length, out.getBytesWritten());
    }
View Full Code Here

TOP

Related Classes of org.geoserver.monitor.MonitorServletResponse.MonitorOutputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.