class DefaultTestServerFactory extends TestServerFactory
Creates a server for an application with a random HTTP port bound. To change the HTTP port you can pass a
testserver.port
system property. The HTTPS port by default is not bound, but can be enabled by passing
the testserver.httpsport
system property. If it gets bound it will be using a self-signed certificate.
Most logic in this class is in a protected method so that users can extend the class and override its logic.
- Annotations
- @ApiMayChange()
- Source
- TestServerFactory.scala
- Alphabetic
- By Inheritance
- DefaultTestServerFactory
- TestServerFactory
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new DefaultTestServerFactory()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def optionalGlobalLock(app: Application): Option[Lock]
Get the lock (if any) that should be used to prevent concurrent applications from running.
Get the lock (if any) that should be used to prevent concurrent applications from running.
- Attributes
- protected
- def overrideServerConfiguration(app: Application): Configuration
- Attributes
- protected
- def serverConfig(app: Application): ServerConfig
- Attributes
- protected
- def serverEndpoints(testServer: TestServer): ServerEndpoints
- Attributes
- protected
- def serverProvider(app: Application): ServerProvider
- Attributes
- protected
- def start(app: Application): RunningServer
- Definition Classes
- DefaultTestServerFactory → TestServerFactory
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)