org.sisioh.trinity.test

ControllerTestSupport

trait ControllerTestSupport extends LoggingEx

Linear Supertypes
LoggingEx, Logging, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ControllerTestSupport
  2. LoggingEx
  3. Logging
  4. AnyRef
  5. 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

Abstract Value Members

  1. abstract def buildRequest(method: HttpMethod, path: String, content: Option[Content], headers: Map[String, String])(implicit application: TrinityApplication, controller: Controller): Try[MockResponse]

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

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

    method

    HTTPメソッド

    path

    パス

    content

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

    headers

    HTTPヘッダ

    application

    org.sisioh.trinity.application.TrinityApplication

    controller

    org.sisioh.trinity.domain.controller.Controller

    returns

    org.sisioh.trinity.test.MockResponse

    Attributes
    protected

Concrete 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 clone(): AnyRef

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

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

    Attributes
    protected
    Definition Classes
    Logging
  10. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  16. def getGlobalSettings: Option[GlobalSettings]

    org.sisioh.trinity.domain.controller.GlobalSettingsを取得する。

    org.sisioh.trinity.domain.controller.GlobalSettingsを取得する。

    returns

    org.sisioh.trinity.domain.controller.GlobalSettings

    Attributes
    protected
  17. def hashCode(): Int

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

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

    Attributes
    protected
    Definition Classes
    Logging
  20. def isDebugEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  21. def isErrorEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  22. def isInfoEnabled: Boolean

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

    Definition Classes
    Any
  24. def isTraceEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  25. def isWarnEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  26. def logger: Logger

    Attributes
    protected
    Definition Classes
    Logging
  27. def loggerName: String

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

    Definition Classes
    AnyRef
  29. def newRequest(method: HttpMethod, path: String, content: Option[Content], headers: Map[String, String]): Request

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

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

    method

    HTTPメソッド

    path

    パス

    content

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

    headers

    HTTPヘッダ

    returns

    com.twitter.finagle.http.Request

    Attributes
    protected
  30. final def notify(): Unit

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

    Definition Classes
    AnyRef
  32. def scopedDebug(msg: ⇒ Any, t: ⇒ Throwable): Unit

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

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

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

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

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

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

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

    Definition Classes
    LoggingEx
  40. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  41. def testDelete[T](path: String, content: Option[Content] = None, headers: Map[String, String] = Map())(f: (Try[MockResponse]) ⇒ T)(implicit application: TrinityApplication, controller: Controller): T

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

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

    T

    関数の戻り値の型

    path

    パス

    content

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

    headers

    HTTPヘッダ

    f

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

    application

    org.sisioh.trinity.application.TrinityApplication

    controller

    org.sisioh.trinity.domain.controller.Controller

    returns

    関数の戻り値

    Attributes
    protected
  42. def testGet[T](path: String, content: Option[Content] = None, headers: Map[String, String] = Map())(f: (Try[MockResponse]) ⇒ T)(implicit application: TrinityApplication, controller: Controller): T

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

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

    T

    関数の戻り値の型

    path

    パス

    content

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

    headers

    HTTPヘッダ

    f

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

    application

    org.sisioh.trinity.application.TrinityApplication

    controller

    org.sisioh.trinity.domain.controller.Controller

    returns

    関数の戻り値

    Attributes
    protected
  43. def testHead[T](path: String, content: Option[Content] = None, headers: Map[String, String] = Map())(f: (Try[MockResponse]) ⇒ T)(implicit application: TrinityApplication, controller: Controller): T

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

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

    T

    関数の戻り値の型

    path

    パス

    content

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

    headers

    HTTPヘッダ

    f

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

    application

    org.sisioh.trinity.application.TrinityApplication

    controller

    org.sisioh.trinity.domain.controller.Controller

    returns

    関数の戻り値

    Attributes
    protected
  44. def testPatch[T](path: String, content: Option[Content] = None, headers: Map[String, String] = Map())(f: (Try[MockResponse]) ⇒ T)(implicit application: TrinityApplication, controller: Controller): T

    Attributes
    protected
  45. def testPost[T](path: String, content: Option[Content] = None, headers: Map[String, String] = Map())(f: (Try[MockResponse]) ⇒ T)(implicit application: TrinityApplication, controller: Controller): T

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

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

    T

    関数の戻り値の型

    path

    パス

    content

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

    headers

    HTTPヘッダ

    f

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

    application

    org.sisioh.trinity.application.TrinityApplication

    controller

    org.sisioh.trinity.domain.controller.Controller

    returns

    関数の戻り値

    Attributes
    protected
  46. def testPut[T](path: String, content: Option[Content] = None, headers: Map[String, String] = Map())(f: (Try[MockResponse]) ⇒ T)(implicit application: TrinityApplication, controller: Controller): T

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

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

    T

    関数の戻り値の型

    path

    パス

    content

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

    headers

    HTTPヘッダ

    f

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

    application

    org.sisioh.trinity.application.TrinityApplication

    controller

    org.sisioh.trinity.domain.controller.Controller

    returns

    関数の戻り値

    Attributes
    protected
  47. def toString(): String

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    LoggingEx

Inherited from LoggingEx

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped