Class MockServletOutputStream

java.lang.Object
java.io.OutputStream
jakarta.servlet.ServletOutputStream
br.ufsc.labsec.web.mock.MockServletOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class MockServletOutputStream
extends jakarta.servlet.ServletOutputStream
Para herdar da classe abstrata ServletOutputStream, necessário para verificação de testes que utilizam ReportServlet ServletOutputStream
  • Constructor Details

    • MockServletOutputStream

      public MockServletOutputStream()
  • Method Details

    • isReady

      public boolean isReady()
      Specified by:
      isReady in class jakarta.servlet.ServletOutputStream
    • setWriteListener

      public void setWriteListener​(jakarta.servlet.WriteListener writeListener)
      Specified by:
      setWriteListener in class jakarta.servlet.ServletOutputStream
    • write

      public void write​(int b)
      Specified by:
      write in class OutputStream
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getBytes

      public byte[] getBytes()
    • toJson

      public org.json.JSONObject toJson()
    • clear

      public void clear()