org.sisioh.trinity.test

ControllerUnitTestSupport

trait ControllerUnitTestSupport extends ControllerTestSupport

単体テストをサポートするためのトレイト。

Self Type
ControllerUnitTestSupport
Linear Supertypes
ControllerTestSupport, LoggingEx, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ControllerUnitTestSupport
  2. ControllerTestSupport
  3. LoggingEx
  4. Logging
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type LogWithThrowableWriteFunction = (Throwable) ⇒ (Any) ⇒ Unit

    Definition Classes
    LoggingEx
  2. type LogWriteFunction = (Any) ⇒ Unit

    Definition Classes
    LoggingEx
  3. trait TestContext extends AnyRef

    Definition Classes
    ControllerTestSupport
  4. case class UnitTestContext(routingFilter: domain.mvc.routing.RoutingFilter, filters: Seq[Filter[domain.mvc.http.Request, domain.mvc.http.Response, domain.mvc.http.Request, domain.mvc.http.Response]] = collection.this.Seq.empty[Nothing])(implicit executor: ExecutionContext) extends TestContext with Product with Serializable

  5. abstract class WithTestScope extends 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
    ControllerUnitTestSupportControllerTestSupport
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def debug(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  10. def debug(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  11. val defaultHost: String

    Attributes
    protected
    Definition Classes
    ControllerTestSupport
  12. val defaultPort: Int

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

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

    Definition Classes
    AnyRef → Any
  15. def error(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  16. def error(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  17. def finalize(): Unit

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

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

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

    Definition Classes
    AnyRef → Any
  21. def info(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  22. def info(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  23. def isDebugEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  24. def isErrorEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  25. def isInfoEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. def isTraceEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  28. def isWarnEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  29. def logger: Logger

    Attributes
    protected
    Definition Classes
    Logging
  30. def loggerName: String

    Attributes
    protected
    Definition Classes
    Logging
  31. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  32. def newRequest(method: HttpMethod, path: String, content: Option[Content], headers: Map[HeaderName, String]): 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
  33. final def notify(): Unit

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

    Definition Classes
    AnyRef
  35. val requestTimeout: FiniteDuration

    Attributes
    protected
    Definition Classes
    ControllerTestSupport
  36. def scopedDebug(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Definition Classes
    LoggingEx
  37. def scopedDebug(msg: ⇒ Any): Unit

    Definition Classes
    LoggingEx
  38. def scopedError(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Definition Classes
    LoggingEx
  39. def scopedError(msg: ⇒ Any): Unit

    Definition Classes
    LoggingEx
  40. def scopedInfo(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Definition Classes
    LoggingEx
  41. def scopedInfo(msg: ⇒ Any): Unit

    Definition Classes
    LoggingEx
  42. def scopedWarn(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Definition Classes
    LoggingEx
  43. def scopedWarn(msg: ⇒ Any): Unit

    Definition Classes
    LoggingEx
  44. val serverHost: Option[String]

    Attributes
    protected
    Definition Classes
    ControllerTestSupport
  45. val serverPort: Option[Int]

    Attributes
    protected
    Definition Classes
    ControllerTestSupport
  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. 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
  53. def toString(): String

    Definition Classes
    AnyRef → Any
  54. def trace(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  55. def trace(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  56. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. def warn(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  60. def warn(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  61. def withDebugScope[T](msg: ⇒ Any, t: ⇒ Throwable)(f: ⇒ T): T

    Definition Classes
    LoggingEx
  62. def withDebugScope[T](msg: ⇒ Any)(f: ⇒ T): T

    Definition Classes
    LoggingEx
  63. def withErrorScope[T](msg: ⇒ Any, t: ⇒ Throwable)(f: ⇒ T): T

    Definition Classes
    LoggingEx
  64. def withErrorScope[T](msg: ⇒ Any)(f: ⇒ T): T

    Definition Classes
    LoggingEx
  65. def withInfoScope[T](msg: ⇒ Any, t: ⇒ Throwable)(f: ⇒ T): T

    Definition Classes
    LoggingEx
  66. def withInfoScope[T](msg: ⇒ Any)(f: ⇒ T): T

    Definition Classes
    LoggingEx
  67. def withWarnScope[T](msg: ⇒ Any, t: ⇒ Throwable)(f: ⇒ T): T

    Definition Classes
    LoggingEx
  68. def withWarnScope[T](msg: ⇒ Any)(f: ⇒ T): T

    Definition Classes
    LoggingEx

Inherited from ControllerTestSupport

Inherited from LoggingEx

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped