org.sisioh.trinity.test

ControllerIntegrationTestSupport

trait ControllerIntegrationTestSupport extends ControllerTestSupport

インテグレーションテストをサポートするためのトレイト。

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ControllerIntegrationTestSupport
  2. ControllerTestSupport
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class IntegrationTestContext(server: ControllerIntegrationTestSupport.TestServer = ...)(implicit executor: ExecutionContext) extends TestContext with Product with Serializable

  2. trait TestContext extends AnyRef

    Definition Classes
    ControllerTestSupport
  3. case class TestServer(host: Option[String] = scala.None, port: Option[Int] = scala.None) extends Product with Serializable

    Definition Classes
    ControllerTestSupport
  4. class WithServer extends Around with Scope

    Attributes
    protected

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def buildRequest(method: HttpMethod, path: String, content: Option[Content], headers: Map[HeaderName, String], timeout: Duration)(implicit testContext: TestContext): Try[domain.mvc.http.Response]

    テストのためのリクエストを生成する。

    テストのためのリクエストを生成する。

    method

    HTTPメソッド

    path

    パス

    content

    Optionでラップしたorg.sisioh.trinity.test.Content

    headers

    HTTPヘッダ

    returns

    org.sisioh.trinity.domain.mvc.http.Response

    Attributes
    protected
    Definition Classes
    ControllerIntegrationTestSupportControllerTestSupport
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val defaultHost: String

    Attributes
    protected
    Definition Classes
    ControllerTestSupport
  10. val defaultPort: Int

    Attributes
    protected
    Definition Classes
    ControllerTestSupport
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  15. val globalSettings: Option[GlobalSettings[domain.mvc.http.Request, domain.mvc.http.Response]]

    Attributes
    protected
    Definition Classes
    ControllerTestSupport
  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def newRequest(method: HttpMethod, path: String, content: Option[Content], headers: Map[HeaderName, String])(implicit testContext: TestContext): com.twitter.finagle.http.Request

    HTTPリクエストを生成する。

    HTTPリクエストを生成する。

    method

    HTTPメソッド

    path

    パス

    content

    Optionでラップしたorg.sisioh.trinity.test.Content

    headers

    HTTPヘッダ

    returns

    com.twitter.finagle.http.Request

    Attributes
    protected
    Definition Classes
    ControllerTestSupport
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. val requestTimeout: FiniteDuration

    Attributes
    protected
    Definition Classes
    ControllerTestSupport
  23. val serverAwaitDuration: FiniteDuration

    Attributes
    protected
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def testDelete[T](path: String, content: Option[Content] = None, headers: Map[HeaderName, String] = Map(), timeout: Duration = requestTimeout)(f: (Try[domain.mvc.http.Response]) ⇒ T)(implicit testContext: TestContext): T

    DELETEメソッドをテストする。

    DELETEメソッドをテストする。

    T

    関数の戻り値の型

    path

    パス

    content

    Optionでラップしたorg.sisioh.trinity.test.Content

    headers

    HTTPヘッダ

    f

    レスポンスを検証する関数

    returns

    関数の戻り値

    Attributes
    protected
    Definition Classes
    ControllerTestSupport
  26. def testGet[T](path: String, content: Option[Content] = None, headers: Map[HeaderName, String] = Map(), timeout: Duration = requestTimeout)(f: (Try[domain.mvc.http.Response]) ⇒ T)(implicit testContext: TestContext): T

    GETメソッドをテストする。

    GETメソッドをテストする。

    T

    関数の戻り値の型

    path

    パス

    content

    Optionでラップしたorg.sisioh.trinity.test.Content

    headers

    HTTPヘッダ

    f

    レスポンスを検証する関数

    returns

    関数の戻り値

    Attributes
    protected
    Definition Classes
    ControllerTestSupport
  27. def testHead[T](path: String, content: Option[Content] = None, headers: Map[HeaderName, String] = Map(), timeout: Duration = requestTimeout)(f: (Try[domain.mvc.http.Response]) ⇒ T)(implicit testContext: TestContext): T

    HEADメソッドをテストする。

    HEADメソッドをテストする。

    T

    関数の戻り値の型

    path

    パス

    content

    Optionでラップしたorg.sisioh.trinity.test.Content

    headers

    HTTPヘッダ

    f

    レスポンスを検証する関数

    returns

    関数の戻り値

    Attributes
    protected
    Definition Classes
    ControllerTestSupport
  28. def testPatch[T](path: String, content: Option[Content] = None, headers: Map[HeaderName, String] = Map(), timeout: Duration = requestTimeout)(f: (Try[domain.mvc.http.Response]) ⇒ T)(implicit testContext: TestContext): T

    Attributes
    protected
    Definition Classes
    ControllerTestSupport
  29. def testPost[T](path: String, content: Option[Content] = None, headers: Map[HeaderName, String] = Map(), timeout: Duration = requestTimeout)(f: (Try[domain.mvc.http.Response]) ⇒ T)(implicit testContext: TestContext): T

    POSTメソッドをテストする。

    POSTメソッドをテストする。

    T

    関数の戻り値の型

    path

    パス

    content

    Optionでラップしたorg.sisioh.trinity.test.Content

    headers

    HTTPヘッダ

    f

    レスポンスを検証する関数

    returns

    関数の戻り値

    Attributes
    protected
    Definition Classes
    ControllerTestSupport
  30. def testPut[T](path: String, content: Option[Content] = None, headers: Map[HeaderName, String] = Map(), timeout: Duration = requestTimeout)(f: (Try[domain.mvc.http.Response]) ⇒ T)(implicit testContext: TestContext): T

    PUTメソッドをテストする。

    PUTメソッドをテストする。

    T

    関数の戻り値の型

    path

    パス

    content

    Optionでラップしたorg.sisioh.trinity.test.Content

    headers

    HTTPヘッダ

    f

    レスポンスを検証する関数

    returns

    関数の戻り値

    Attributes
    protected
    Definition Classes
    ControllerTestSupport
  31. def toString(): String

    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ControllerTestSupport

Inherited from AnyRef

Inherited from Any

Ungrouped