Class JettyFaultInjector

java.lang.Object
com.github.tomakehurst.wiremock.jetty.faults.JettyFaultInjector
All Implemented Interfaces:
com.github.tomakehurst.wiremock.core.FaultInjector

public class JettyFaultInjector extends Object implements com.github.tomakehurst.wiremock.core.FaultInjector
  • Constructor Details

    • JettyFaultInjector

      public JettyFaultInjector(jakarta.servlet.http.HttpServletResponse response, JettyHttpUtils utils)
  • Method Details

    • connectionResetByPeer

      public void connectionResetByPeer()
      Specified by:
      connectionResetByPeer in interface com.github.tomakehurst.wiremock.core.FaultInjector
    • emptyResponseAndCloseConnection

      public void emptyResponseAndCloseConnection()
      Specified by:
      emptyResponseAndCloseConnection in interface com.github.tomakehurst.wiremock.core.FaultInjector
    • malformedResponseChunk

      public void malformedResponseChunk()
      Specified by:
      malformedResponseChunk in interface com.github.tomakehurst.wiremock.core.FaultInjector
    • randomDataAndCloseConnection

      public void randomDataAndCloseConnection()
      Specified by:
      randomDataAndCloseConnection in interface com.github.tomakehurst.wiremock.core.FaultInjector