trait ExternalServiceMock extends AutoCloseable
The trait that provides a WireMockServer.
The trait supports java.lang.AutoCloseable, so you can use it with a loan-pattern.
- Alphabetic
- By Inheritance
- ExternalServiceMock
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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( ... ) @native()
-
def
close(): Unit
- Definition Classes
- ExternalServiceMock → AutoCloseable
-
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] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
lazy val
host: String
The hostname of the mock server.
The hostname of the mock server.
- Attributes
- protected
-
lazy val
https: Boolean
Use HTTPS or not.
Use HTTPS or not.
- Attributes
- protected
-
def
importStubs(stubs: MappingBuilder*): Unit
Import the stubs.
Import the stubs.
If a stub in
stubs
which key already exists in the mock server, the existing stub are overwritten. If an existing stub which key doesn't exist instubs
, the existing stub remains.- stubs
the stubs that are imported.
- Note
If you want to customize the above behavior, use com.github.tomakehurst.wiremock.stubbing.StubImport and
server.importStubs()
directly.- See also
-
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
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
lazy val
port: Option[Int]
The port number of the mock server.
The port number of the mock server.
A random port is used if you specify scala.None.
- Attributes
- protected
-
lazy val
server: WireMockServer
The mock server.
The mock server.
The server is automatically started when you use it.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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()