Class SingletonServer

java.lang.Object
org.zkoss.test.webdriver.SingletonServer
All Implemented Interfaces:
org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.Extension, org.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource

public class SingletonServer extends Object implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource
A singleton server instance for all test cases.
Since:
1.0.4
Author:
jumperchen
  • Constructor Details

    • SingletonServer

      public SingletonServer()
  • Method Details

    • beforeAll

      public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext eContext) throws Exception
      Specified by:
      beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallback
      Throws:
      Exception
    • getServer

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

      public void close() throws Throwable
      Specified by:
      close in interface org.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource
      Throws:
      Throwable