Packages

trait MunitRouteTest extends FunSuite with MunitTestFramework with RouteTest

Source
MunitRouteTest.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MunitRouteTest
  2. RouteTest
  3. MarshallingTestUtils
  4. RouteTestResultComponent
  5. WSTestRequestBuilding
  6. RequestBuilding
  7. TransformerPipelineSupport
  8. MunitTestFramework
  9. TestFrameworkInterface
  10. FunSuite
  11. BaseFunSuite
  12. ValueTransforms
  13. SuiteTransforms
  14. TestTransforms
  15. TestOptionsConversions
  16. FunFixtures
  17. Assertions
  18. CompileErrorMacro
  19. Suite
  20. PlatformSuite
  21. AnyRef
  22. Any
Implicitly
  1. by WithTransformation
  2. by WithTransformation
  3. by any2stringadd
  4. by StringFormat
  5. by Ensuring
  6. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class RequestBuilder extends AnyRef
    Definition Classes
    RequestBuilding
  2. implicit class WithTransformation[A] extends AnyRef
    Definition Classes
    TransformerPipelineSupport
  3. implicit class WithTransformerConcatenation[A, B] extends (A) => B
    Definition Classes
    TransformerPipelineSupport
  4. case class DefaultHostInfo(host: Host, securedConnection: Boolean) extends Product with Serializable
    Definition Classes
    RouteTest
  5. abstract class TildeArrow[A, B] extends AnyRef
    Definition Classes
    RouteTest
  6. abstract class TildeBangArrow[A, B] extends AnyRef
    Definition Classes
    RouteTest
  7. implicit class WithTransformation2 extends AnyRef
    Definition Classes
    RouteTest
  8. class RouteTestResult extends AnyRef

    A receptacle for the response or rejections created by a route.

    A receptacle for the response or rejections created by a route.

    Definition Classes
    RouteTestResultComponent
  9. final type AfterEach = munit.AfterEach
    Definition Classes
    Suite
  10. final type BeforeEach = munit.BeforeEach
    Definition Classes
    Suite
  11. final type Fixture[T] = munit.Fixture[T]
    Definition Classes
    Suite
  12. class FunFixture[T] extends AnyRef
    Definition Classes
    FunFixtures
  13. type RequestTransformer = (HttpRequest) => HttpRequest
    Definition Classes
    RequestBuilding
  14. final class SuiteTransform extends (List[munit.BaseFunSuite.Test]) => List[munit.BaseFunSuite.Test]
    Definition Classes
    SuiteTransforms
  15. final type Test = munit.Test
    Definition Classes
    Suite
  16. final class TestTransform extends (munit.BaseFunSuite.Test) => munit.BaseFunSuite.Test
    Definition Classes
    TestTransforms
  17. final type TestValue = Future[Any]
    Definition Classes
    Suite
  18. final class ValueTransform extends (Any) => Option[Future[Any]]
    Definition Classes
    ValueTransforms

Value Members

  1. object DefaultHostInfo extends Serializable
    Definition Classes
    RouteTest
  2. object TildeArrow
    Definition Classes
    RouteTest
  3. object TildeBangArrow
    Definition Classes
    RouteTest
  4. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def ##: Int
    Definition Classes
    AnyRef → Any
  6. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from MunitRouteTest toany2stringadd[MunitRouteTest] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  7. def ->[B](y: B): (MunitRouteTest, B)
    Implicit
    This member is added by an implicit conversion from MunitRouteTest toArrowAssoc[MunitRouteTest] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  8. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. val Delete: RequestBuilder
    Definition Classes
    RequestBuilding
  10. val Get: RequestBuilder
    Definition Classes
    RequestBuilding
  11. val Head: RequestBuilder
    Definition Classes
    RequestBuilding
  12. val Options: RequestBuilder
    Definition Classes
    RequestBuilding
  13. val Patch: RequestBuilder
    Definition Classes
    RequestBuilding
  14. val Post: RequestBuilder
    Definition Classes
    RequestBuilding
  15. val Put: RequestBuilder
    Definition Classes
    RequestBuilding
  16. def WS(uri: Uri, clientSideHandler: Flow[Message, Message, Any], subprotocols: Seq[String] = Nil)(implicit materializer: Materializer): HttpRequest
    Definition Classes
    WSTestRequestBuilding
  17. def actorSystemNameFrom(clazz: Class[_]): String
    Definition Classes
    RouteTest
  18. def addAttribute[T](key: AttributeKey[T], value: T): RequestTransformer
    Definition Classes
    RequestBuilding
  19. def addCredentials(credentials: HttpCredentials): RequestTransformer
    Definition Classes
    RequestBuilding
  20. def addHeader(headerName: String, headerValue: String): RequestTransformer
    Definition Classes
    RequestBuilding
  21. def addHeader(header: HttpHeader): RequestTransformer
    Definition Classes
    RequestBuilding
  22. def addHeaders(first: HttpHeader, more: HttpHeader*): RequestTransformer
    Definition Classes
    RequestBuilding
  23. def afterAll(): Unit
    Definition Classes
    MunitTestFramework → Suite
  24. def afterEach(context: AfterEach): Unit
    Definition Classes
    Suite
  25. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  26. def assert(cond: => Boolean, clue: => Any)(implicit loc: Location): Unit
    Definition Classes
    Assertions
  27. def assertEquals[A, B](obtained: A, expected: B, clue: => Any)(implicit loc: Location, compare: Compare[A, B]): Unit
    Definition Classes
    Assertions
  28. def assertEqualsDouble(obtained: Double, expected: Double, delta: Double, clue: => Any)(implicit loc: Location): Unit
    Definition Classes
    Assertions
  29. def assertEqualsFloat(obtained: Float, expected: Float, delta: Float, clue: => Any)(implicit loc: Location): Unit
    Definition Classes
    Assertions
  30. def assertNoDiff(obtained: String, expected: String, clue: => Any)(implicit loc: Location): Unit
    Definition Classes
    Assertions
  31. def assertNotEquals[A, B](obtained: A, expected: B, clue: => Any)(implicit loc: Location, compare: Compare[A, B]): Unit
    Definition Classes
    Assertions
  32. def assume(cond: Boolean, clue: => Any)(implicit loc: Location): Unit
    Definition Classes
    Assertions
  33. def beforeAll(): Unit
    Definition Classes
    Suite
  34. def beforeEach(context: BeforeEach): Unit
    Definition Classes
    Suite
  35. def charset: HttpCharset
    Definition Classes
    RouteTest
  36. def charsetOption: Option[HttpCharset]
    Definition Classes
    RouteTest
  37. def check[T](body: => T): (RouteTestResult) => T
    Definition Classes
    RouteTest
  38. def chunks: Seq[ChunkStreamPart]
    Definition Classes
    RouteTest
  39. def chunksStream: Source[ChunkStreamPart, Any]
    Definition Classes
    RouteTest
  40. def cleanUp(): Unit
    Definition Classes
    RouteTest
  41. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  42. def closingExtension: String
    Definition Classes
    RouteTest
  43. def clue[T](c: Clue[T]): T
    Definition Classes
    Assertions
  44. def clues(clue: Clue[_]*): Clues
    Definition Classes
    Assertions
  45. macro def compileErrors(code: String): String
    Definition Classes
    CompileErrorMacro
  46. def contentType: ContentType
    Definition Classes
    RouteTest
  47. def createActorSystem(): ActorSystem

    Override to supply a custom ActorSystem

    Override to supply a custom ActorSystem

    Attributes
    protected
    Definition Classes
    RouteTest
  48. def ensuring(cond: (MunitRouteTest) => Boolean, msg: => Any): MunitRouteTest
    Implicit
    This member is added by an implicit conversion from MunitRouteTest toEnsuring[MunitRouteTest] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  49. def ensuring(cond: (MunitRouteTest) => Boolean): MunitRouteTest
    Implicit
    This member is added by an implicit conversion from MunitRouteTest toEnsuring[MunitRouteTest] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  50. def ensuring(cond: Boolean, msg: => Any): MunitRouteTest
    Implicit
    This member is added by an implicit conversion from MunitRouteTest toEnsuring[MunitRouteTest] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  51. def ensuring(cond: Boolean): MunitRouteTest
    Implicit
    This member is added by an implicit conversion from MunitRouteTest toEnsuring[MunitRouteTest] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  52. def entityAs[T](implicit arg0: FromEntityUnmarshaller[T], arg1: ClassTag[T], timeout: Duration = 1.second): T
    Definition Classes
    RouteTest
  53. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  54. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  55. implicit def executor: ExecutionContextExecutor
    Definition Classes
    RouteTest
  56. def expectWebSocketUpgradeWithProtocol(body: (String) => Unit): Unit

    Asserts that the received response is a WebSocket upgrade response and the extracts the chosen subprotocol and passes it to the handler.

    Asserts that the received response is a WebSocket upgrade response and the extracts the chosen subprotocol and passes it to the handler.

    Definition Classes
    RouteTest
  57. def fail(message: String, clues: Clues)(implicit loc: Location): Nothing
    Definition Classes
    Assertions
  58. def fail(message: String, cause: Throwable)(implicit loc: Location): Nothing
    Definition Classes
    Assertions
  59. def failComparison(message: String, obtained: Any, expected: Any, clues: Clues)(implicit loc: Location): Nothing
    Definition Classes
    Assertions
  60. def failSuite(message: String, clues: Clues)(implicit loc: Location): Nothing
    Definition Classes
    Assertions
  61. def failTest(msg: String): Nothing
  62. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  63. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  64. def handled: Boolean
    Definition Classes
    RouteTest
  65. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  66. def header(name: String): Option[HttpHeader]
    Definition Classes
    RouteTest
  67. def header[T >: Null <: HttpHeader](implicit arg0: ClassTag[T]): Option[T]
    Definition Classes
    RouteTest
  68. implicit def header2AddHeader(header: HttpHeader): RequestTransformer
    Definition Classes
    RequestBuilding
  69. def headers: Seq[HttpHeader]
    Definition Classes
    RouteTest
  70. def intercept[T <: Throwable](body: => Any)(implicit T: ClassTag[T], loc: Location): T
    Definition Classes
    Assertions
  71. def interceptMessage[T <: Throwable](expectedExceptionMessage: String)(body: => Any)(implicit T: ClassTag[T], loc: Location): T
    Definition Classes
    Assertions
  72. def isCI: Boolean
    Definition Classes
    SuiteTransforms
  73. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  74. def isWebSocketUpgrade: Boolean
    Definition Classes
    RouteTest
  75. def logRequest(logFun: (HttpRequest) => Unit): (HttpRequest) => HttpRequest
    Definition Classes
    RequestBuilding
  76. def logRequest(log: LoggingAdapter, level: LogLevel = Logging.DebugLevel): (HttpRequest) => HttpRequest
    Definition Classes
    RequestBuilding
  77. def logValue[T](logFun: (T) => Unit): (T) => T
    Definition Classes
    TransformerPipelineSupport
  78. def logValue[T](log: LoggingAdapter, level: LogLevel = Logging.DebugLevel): (T) => T
    Definition Classes
    TransformerPipelineSupport
  79. def mapHeaders(f: (Seq[HttpHeader]) => Seq[HttpHeader]): RequestTransformer
    Definition Classes
    RequestBuilding
  80. def marshal[T](value: T)(implicit arg0: ToEntityMarshaller[T], ec: ExecutionContext, mat: Materializer): Strict
    Definition Classes
    MarshallingTestUtils
  81. def marshalToResponse[T](value: T, request: HttpRequest = HttpRequest())(implicit arg0: ToResponseMarshaller[T], ec: ExecutionContext): HttpResponse
    Definition Classes
    MarshallingTestUtils
  82. def marshalToResponseForRequestAccepting[T](value: T, mediaRanges: MediaRange*)(implicit arg0: ToResponseMarshaller[T], ec: ExecutionContext): HttpResponse
    Definition Classes
    MarshallingTestUtils
  83. def marshallingTimeout: FiniteDuration
    Definition Classes
    MarshallingTestUtils
  84. implicit val materializer: Materializer
    Definition Classes
    RouteTest
  85. def mediaType: MediaType
    Definition Classes
    RouteTest
  86. def munitAnsiColors: Boolean
    Definition Classes
    Assertions
  87. def munitAppendToFailureMessage(buildSuffix: (Test) => Option[String]): TestTransform
    Definition Classes
    TestTransforms
  88. def munitCaptureClues[T](thunk: => T): (T, Clues)
    Definition Classes
    Assertions
  89. def munitExecutionContext: ExecutionContext
    Definition Classes
    Suite
  90. final def munitFailTransform: TestTransform
    Definition Classes
    TestTransforms
  91. def munitFixtures: Seq[AnyFixture[_]]
    Definition Classes
    Suite
  92. def munitFlakyOK: Boolean
    Definition Classes
    TestTransforms
  93. final def munitFlakyTransform: TestTransform
    Definition Classes
    TestTransforms
  94. final def munitFutureTransform: ValueTransform
    Definition Classes
    ValueTransforms
  95. def munitIgnore: Boolean
    Definition Classes
    SuiteTransforms
  96. final def munitIgnoreSuiteTransform: SuiteTransform
    Definition Classes
    SuiteTransforms
  97. val munitLines: Lines
    Definition Classes
    Assertions
  98. final def munitOnlySuiteTransform: SuiteTransform
    Definition Classes
    SuiteTransforms
  99. def munitPrint(clue: => Any): String
    Definition Classes
    Assertions
  100. final def munitSuiteTransform(tests: List[Test]): List[Test]
    Definition Classes
    SuiteTransforms
  101. def munitSuiteTransforms: List[SuiteTransform]
    Definition Classes
    SuiteTransforms
  102. final def munitTestTransform(test: Test): Test
    Definition Classes
    TestTransforms
  103. def munitTestTransforms: List[TestTransform]
    Definition Classes
    TestTransforms
  104. def munitTests(): Seq[Test]
    Definition Classes
    BaseFunSuite → Suite
  105. final val munitTestsBuffer: ListBuffer[Test]
    Definition Classes
    BaseFunSuite
  106. def munitTimeout: Duration
    Definition Classes
    BaseFunSuite
  107. final def munitValueTransform(testValue: => Any): Future[Any]
    Definition Classes
    ValueTransforms
  108. def munitValueTransforms: List[ValueTransform]
    Definition Classes
    ValueTransforms
  109. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  110. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  111. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  112. def printer: Printer
    Definition Classes
    Assertions
  113. def rejection: Rejection
    Definition Classes
    RouteTest
  114. def rejections: Seq[Rejection]
    Definition Classes
    RouteTest
  115. def removeHeader(clazz: Class[_]): RequestTransformer
    Definition Classes
    RequestBuilding
  116. def removeHeader[T <: HttpHeader](implicit arg0: ClassTag[T]): RequestTransformer
    Definition Classes
    RequestBuilding
  117. def removeHeader(headerName: String): RequestTransformer
    Definition Classes
    RequestBuilding
  118. def removeHeaders(names: String*): RequestTransformer
    Definition Classes
    RequestBuilding
  119. def response: HttpResponse
    Definition Classes
    RouteTest
  120. def responseAs[T](implicit arg0: FromResponseUnmarshaller[T], arg1: ClassTag[T], timeout: Duration = 1.second): T
    Definition Classes
    RouteTest
  121. def responseEntity: HttpEntity
    Definition Classes
    RouteTest
  122. def runRoute: (RouteTestResult) => RouteTestResult

    A dummy that can be used as ~> runRoute to run the route but without blocking for the result.

    A dummy that can be used as ~> runRoute to run the route but without blocking for the result. The result of the pipeline is the result that can later be checked with check. See the "separate running route from checking" example from ScalatestRouteTestSpec.scala.

    Definition Classes
    RouteTest
  123. def status: StatusCode
    Definition Classes
    RouteTest
  124. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  125. implicit val system: ActorSystem
    Definition Classes
    RouteTest
  126. def test(options: TestOptions)(body: => Any)(implicit loc: Location): Unit
    Definition Classes
    BaseFunSuite
  127. def test(name: String)(body: => Any)(implicit loc: Location): Unit
    Definition Classes
    BaseFunSuite
  128. def testConfig: Config
    Definition Classes
    RouteTestMarshallingTestUtils
  129. def testConfigSource: String
    Definition Classes
    RouteTest
  130. val testExceptionHandler: ExceptionHandler
  131. implicit def testOptionsFromString(name: String)(implicit loc: Location): TestOptions
    Definition Classes
    TestOptionsConversions
  132. def toString(): String
    Definition Classes
    AnyRef → Any
  133. def trailer: Seq[HttpHeader]
    Definition Classes
    RouteTest
  134. def unmarshal[T](entity: HttpEntity)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Try[T]
    Definition Classes
    MarshallingTestUtils
  135. def unmarshalValue[T](entity: HttpEntity)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): T
    Definition Classes
    MarshallingTestUtils
  136. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  137. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  138. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Shadowed Implicit Value Members

  1. def ~>[B](f: (MunitRouteTest) => B): B
    Implicit
    This member is added by an implicit conversion from MunitRouteTest toclient.RequestBuilding.WithTransformation[MunitRouteTest] performed by method WithTransformation in org.apache.pekko.http.scaladsl.client.TransformerPipelineSupport.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (munitRouteTest: client.RequestBuilding.WithTransformation[MunitRouteTest]).~>(f)
    Definition Classes
    WithTransformation
  2. def ~>[B](f: (MunitRouteTest) => B): B
    Implicit
    This member is added by an implicit conversion from MunitRouteTest toclient.TransformerPipelineSupport.WithTransformation[MunitRouteTest] performed by method WithTransformation in org.apache.pekko.http.scaladsl.client.TransformerPipelineSupport.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (munitRouteTest: client.TransformerPipelineSupport.WithTransformation[MunitRouteTest]).~>(f)
    Definition Classes
    WithTransformation

Deprecated Value Members

  1. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from MunitRouteTest toStringFormat[MunitRouteTest] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  2. def [B](y: B): (MunitRouteTest, B)
    Implicit
    This member is added by an implicit conversion from MunitRouteTest toArrowAssoc[MunitRouteTest] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from RouteTest

Inherited from MarshallingTestUtils

Inherited from WSTestRequestBuilding

Inherited from RequestBuilding

Inherited from MunitTestFramework

Inherited from TestFrameworkInterface

Inherited from FunSuite

Inherited from BaseFunSuite

Inherited from ValueTransforms

Inherited from SuiteTransforms

Inherited from TestTransforms

Inherited from TestOptionsConversions

Inherited from FunFixtures

Inherited from Assertions

Inherited from CompileErrorMacro

Inherited from Suite

Inherited from PlatformSuite

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion WithTransformation fromMunitRouteTest to client.RequestBuilding.WithTransformation[MunitRouteTest]

Inherited by implicit conversion WithTransformation fromMunitRouteTest to client.TransformerPipelineSupport.WithTransformation[MunitRouteTest]

Inherited by implicit conversion any2stringadd fromMunitRouteTest to any2stringadd[MunitRouteTest]

Inherited by implicit conversion StringFormat fromMunitRouteTest to StringFormat[MunitRouteTest]

Inherited by implicit conversion Ensuring fromMunitRouteTest to Ensuring[MunitRouteTest]

Inherited by implicit conversion ArrowAssoc fromMunitRouteTest to ArrowAssoc[MunitRouteTest]

Ungrouped