Class PrototypeServer

  • All Implemented Interfaces:
    org.junit.jupiter.api.extension.Extension, org.junit.jupiter.api.extension.TestInstancePostProcessor, org.junit.jupiter.api.extension.TestInstancePreDestroyCallback

    public class PrototypeServer
    extends java.lang.Object
    implements org.junit.jupiter.api.extension.TestInstancePostProcessor, org.junit.jupiter.api.extension.TestInstancePreDestroyCallback
    A server instance per a test case instance.
    Since:
    1.0.4
    Author:
    jumperchen
    • Constructor Summary

      Constructors 
      Constructor Description
      PrototypeServer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.jetty.server.Server getServer()  
      void postProcessTestInstance​(java.lang.Object testInstance, org.junit.jupiter.api.extension.ExtensionContext eContext)  
      void preDestroyTestInstance​(org.junit.jupiter.api.extension.ExtensionContext context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PrototypeServer

        public PrototypeServer()
    • Method Detail

      • postProcessTestInstance

        public void postProcessTestInstance​(java.lang.Object testInstance,
                                            org.junit.jupiter.api.extension.ExtensionContext eContext)
                                     throws java.lang.Exception
        Specified by:
        postProcessTestInstance in interface org.junit.jupiter.api.extension.TestInstancePostProcessor
        Throws:
        java.lang.Exception
      • getServer

        public org.eclipse.jetty.server.Server getServer()
      • preDestroyTestInstance

        public void preDestroyTestInstance​(org.junit.jupiter.api.extension.ExtensionContext context)
                                    throws java.lang.Exception
        Specified by:
        preDestroyTestInstance in interface org.junit.jupiter.api.extension.TestInstancePreDestroyCallback
        Throws:
        java.lang.Exception