Package br.ufsc.labsec.web.mock
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 Summary
Constructors Constructor Description MockServletOutputStream()
-
Method Summary
Methods inherited from class jakarta.servlet.ServletOutputStream
print, print, print, print, print, print, print, println, println, println, println, println, println, println, println
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write, write
-
Constructor Details
-
MockServletOutputStream
public MockServletOutputStream()
-
-
Method Details
-
isReady
public boolean isReady()- Specified by:
isReady
in classjakarta.servlet.ServletOutputStream
-
setWriteListener
public void setWriteListener(jakarta.servlet.WriteListener writeListener)- Specified by:
setWriteListener
in classjakarta.servlet.ServletOutputStream
-
write
public void write(int b)- Specified by:
write
in classOutputStream
-
toString
-
getBytes
public byte[] getBytes() -
toJson
public org.json.JSONObject toJson() -
clear
public void clear()
-