class TestServer extends AnyRef
When the server is started you can get the service client and other Guice bindings here.
- Source
- ServiceTest.scala
- Alphabetic
- By Inheritance
- TestServer
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new TestServer(port: Int, app: Application, server: Server, clientSslContext: Optional[SSLContext] = Optional.empty())
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from TestServer to any2stringadd[TestServer] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (TestServer, B)
- Implicit
- This member is added by an implicit conversion from TestServer to ArrowAssoc[TestServer] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val app: Application
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
client[S <: Service](serviceClass: Class[S]): S
Get the service client for a service.
- val clientSslContext: Optional[SSLContext]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
ensuring(cond: (TestServer) ⇒ Boolean, msg: ⇒ Any): TestServer
- Implicit
- This member is added by an implicit conversion from TestServer to Ensuring[TestServer] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (TestServer) ⇒ Boolean): TestServer
- Implicit
- This member is added by an implicit conversion from TestServer to Ensuring[TestServer] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): TestServer
- Implicit
- This member is added by an implicit conversion from TestServer to Ensuring[TestServer] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): TestServer
- Implicit
- This member is added by an implicit conversion from TestServer to Ensuring[TestServer] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from TestServer to StringFormat[TestServer] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
injector: Injector
The Guice injector that can be used for retrieving anything that has been bound to Guice.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
materializer: Materializer
Stream materializer.
Stream materializer. Useful for Akka Streams TestKit.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val port: Int
- val portSsl: Optional[Integer]
-
def
stop(): Unit
If you use
startServeryou must also stop the server with this method when the test is finished.If you use
startServeryou must also stop the server with this method when the test is finished. That is handled automatically bywithServer. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
system: ActorSystem
Current Akka
ActorSystem.Current Akka
ActorSystem. Useful for Akka Streams TestKit. -
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
→[B](y: B): (TestServer, B)
- Implicit
- This member is added by an implicit conversion from TestServer to ArrowAssoc[TestServer] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc