Package org.zkoss.test.webdriver
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 java.lang.Object implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResourceA singleton server instance for all test cases.- Since:
- 1.0.4
- Author:
- jumperchen
-
-
Constructor Summary
Constructors Constructor Description SingletonServer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeAll(org.junit.jupiter.api.extension.ExtensionContext eContext)voidclose()org.eclipse.jetty.server.ServergetServer()
-
-
-
Method Detail
-
beforeAll
public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext eContext) throws java.lang.Exception- Specified by:
beforeAllin interfaceorg.junit.jupiter.api.extension.BeforeAllCallback- Throws:
java.lang.Exception
-
getServer
public org.eclipse.jetty.server.Server getServer()
-
close
public void close() throws java.lang.Throwable- Specified by:
closein interfaceorg.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource- Throws:
java.lang.Throwable
-
-