Class

com.github.pheymann.rrt

TestConfig

Related Doc: package rrt

Permalink

final case class TestConfig(name: String, actual: ServiceConfig, expected: ServiceConfig, headers: List[(String, String)] = Nil, bodyRemovals: List[String] = Nil, dbConfigOpt: Option[DatabaseConfig] = None, repetitions: Int = 1, timeout: FiniteDuration = 21400000.seconds) extends Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TestConfig
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TestConfig(name: String, actual: ServiceConfig, expected: ServiceConfig, headers: List[(String, String)] = Nil, bodyRemovals: List[String] = Nil, dbConfigOpt: Option[DatabaseConfig] = None, repetitions: Int = 1, timeout: FiniteDuration = 21400000.seconds)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val actual: ServiceConfig

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val bodyRemovals: List[String]

    Permalink
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val dbConfigOpt: Option[DatabaseConfig]

    Permalink
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. val expected: ServiceConfig

    Permalink
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. val headers: List[(String, String)]

    Permalink
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. val name: String

    Permalink
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. val repetitions: Int

    Permalink
  20. def setTimeout(timeout: FiniteDuration): TestConfig

    Permalink

    Sets timeout to a new value (default Long.MaxValue nanoseconds).

    Sets timeout to a new value (default Long.MaxValue nanoseconds).

    timeout

    REST call timeout

    returns

    updated config

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. val timeout: FiniteDuration

    Permalink
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def withBodyRemovals(removals: List[String]): TestConfig

    Permalink

    Adds a regex pattern which removes elements from the response body (entity).

    Adds a regex pattern which removes elements from the response body (entity). This can be useful if the response contains some values which differ for two service instances.

    removals

    regex pattern

    returns

    updated config

  27. def withDatabase(dbType: DatabaseType, driver: String, url: String, user: String, password: String): TestConfig

    Permalink

    Adds a database connection.

    Adds a database connection.

    dbType

    which database is used

    driver

    database driver

    url

    database url containing the schema

    user

    user name

    password

    user password

    returns

    updated config

  28. def withHeaders(headers: List[(String, String)]): TestConfig

    Permalink

    Adds standard headers to all requests.

    Adds standard headers to all requests.

    headers

    List of headers

    returns

    updated config

  29. def withRepetitions(repetitions: Int): TestConfig

    Permalink

    Sets the number of repetitions to a new value (default 1).

    Sets the number of repetitions to a new value (default 1).

    repetitions

    number of repetitions

    returns

    updated config

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped