Packages

t

lerna.testkit.wiremock

ExternalServiceMock

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.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExternalServiceMock
  2. AutoCloseable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def close(): Unit
    Definition Classes
    ExternalServiceMock → AutoCloseable
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. lazy val host: String

    The hostname of the mock server.

    The hostname of the mock server.

    Attributes
    protected
  13. lazy val https: Boolean

    Use HTTPS or not.

    Use HTTPS or not.

    Attributes
    protected
  14. 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 in stubs, 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

    Stubbing - WireMock

  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. 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
  20. lazy val server: WireMockServer

    The mock server.

    The mock server.

    The server is automatically started when you use it.

  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped