Class SerializedRenderer

java.lang.Object
org.junit.runner.notification.RunListener
org.apache.sling.junit.remote.ide.SerializedRenderer
All Implemented Interfaces:
org.apache.sling.junit.Renderer, org.apache.sling.junit.RendererFactory

public class SerializedRenderer extends org.junit.runner.notification.RunListener implements org.apache.sling.junit.Renderer, org.apache.sling.junit.RendererFactory
Renderer for Sling JUnit server-side testing, which renders test results in binary form. Used to send results, and especially Exceptions, as is to a remote IDE.
  • Field Details

  • Constructor Details

    • SerializedRenderer

      public SerializedRenderer()
  • Method Details

    • createRenderer

      public org.apache.sling.junit.Renderer createRenderer()
      Specified by:
      createRenderer in interface org.apache.sling.junit.RendererFactory
    • appliesTo

      public boolean appliesTo(org.apache.sling.junit.TestSelector s)
      Specified by:
      appliesTo in interface org.apache.sling.junit.Renderer
    • getExtension

      public String getExtension()
      Specified by:
      getExtension in interface org.apache.sling.junit.Renderer
    • setup

      public void setup(javax.servlet.http.HttpServletResponse response, String pageTitle) throws IOException, UnsupportedEncodingException
      Specified by:
      setup in interface org.apache.sling.junit.Renderer
      Throws:
      IOException
      UnsupportedEncodingException
    • cleanup

      public void cleanup()
      Specified by:
      cleanup in interface org.apache.sling.junit.Renderer
    • getRunListener

      public org.junit.runner.notification.RunListener getRunListener()
      Specified by:
      getRunListener in interface org.apache.sling.junit.Renderer
    • info

      public void info(String role, String info)
      Specified by:
      info in interface org.apache.sling.junit.Renderer
    • link

      public void link(String info, String url, String method)
      Specified by:
      link in interface org.apache.sling.junit.Renderer
    • list

      public void list(String role, Collection<String> data)
      Specified by:
      list in interface org.apache.sling.junit.Renderer
    • title

      public void title(int level, String title)
      Specified by:
      title in interface org.apache.sling.junit.Renderer
    • testRunFinished

      public void testRunFinished(org.junit.runner.Result result) throws IOException
      Overrides:
      testRunFinished in class org.junit.runner.notification.RunListener
      Throws:
      IOException