trait MunitRouteTest extends FunSuite with MunitTestFramework with RouteTest
- Alphabetic
- By Inheritance
- MunitRouteTest
- RouteTest
- MarshallingTestUtils
- RouteTestResultComponent
- WSTestRequestBuilding
- RequestBuilding
- TransformerPipelineSupport
- MunitTestFramework
- TestFrameworkInterface
- FunSuite
- BaseFunSuite
- ValueTransforms
- SuiteTransforms
- TestTransforms
- TestOptionsConversions
- FunFixtures
- Assertions
- CompileErrorMacro
- Suite
- PlatformSuite
- AnyRef
- Any
- by WithTransformation
- by WithTransformation
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Type Members
- class RequestBuilder extends AnyRef
- Definition Classes
- RequestBuilding
- implicit class WithTransformation[A] extends AnyRef
- Definition Classes
- TransformerPipelineSupport
- implicit class WithTransformerConcatenation[A, B] extends (A) => B
- Definition Classes
- TransformerPipelineSupport
- case class DefaultHostInfo(host: Host, securedConnection: Boolean) extends Product with Serializable
- Definition Classes
- RouteTest
- abstract class TildeArrow[A, B] extends AnyRef
- Definition Classes
- RouteTest
- abstract class TildeBangArrow[A, B] extends AnyRef
- Definition Classes
- RouteTest
- implicit class WithTransformation2 extends AnyRef
- Definition Classes
- RouteTest
- 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
- final type AfterEach = munit.AfterEach
- Definition Classes
- Suite
- final type BeforeEach = munit.BeforeEach
- Definition Classes
- Suite
- final type Fixture[T] = munit.Fixture[T]
- Definition Classes
- Suite
- class FunFixture[T] extends AnyRef
- Definition Classes
- FunFixtures
- type RequestTransformer = (HttpRequest) => HttpRequest
- Definition Classes
- RequestBuilding
- final class SuiteTransform extends (List[munit.BaseFunSuite.Test]) => List[munit.BaseFunSuite.Test]
- Definition Classes
- SuiteTransforms
- final type Test = munit.Test
- Definition Classes
- Suite
- final class TestTransform extends (munit.BaseFunSuite.Test) => munit.BaseFunSuite.Test
- Definition Classes
- TestTransforms
- final type TestValue = Future[Any]
- Definition Classes
- Suite
- final class ValueTransform extends (Any) => Option[Future[Any]]
- Definition Classes
- ValueTransforms
Value Members
- object DefaultHostInfo extends Serializable
- Definition Classes
- RouteTest
- object TildeArrow
- Definition Classes
- RouteTest
- object TildeBangArrow
- Definition Classes
- RouteTest
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- 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
- 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()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val Delete: RequestBuilder
- Definition Classes
- RequestBuilding
- val Get: RequestBuilder
- Definition Classes
- RequestBuilding
- val Head: RequestBuilder
- Definition Classes
- RequestBuilding
- val Options: RequestBuilder
- Definition Classes
- RequestBuilding
- val Patch: RequestBuilder
- Definition Classes
- RequestBuilding
- val Post: RequestBuilder
- Definition Classes
- RequestBuilding
- val Put: RequestBuilder
- Definition Classes
- RequestBuilding
- def WS(uri: Uri, clientSideHandler: Flow[Message, Message, Any], subprotocols: Seq[String] = Nil)(implicit materializer: Materializer): HttpRequest
- Definition Classes
- WSTestRequestBuilding
- def actorSystemNameFrom(clazz: Class[_]): String
- Definition Classes
- RouteTest
- def addAttribute[T](key: AttributeKey[T], value: T): RequestTransformer
- Definition Classes
- RequestBuilding
- def addCredentials(credentials: HttpCredentials): RequestTransformer
- Definition Classes
- RequestBuilding
- def addHeader(headerName: String, headerValue: String): RequestTransformer
- Definition Classes
- RequestBuilding
- def addHeader(header: HttpHeader): RequestTransformer
- Definition Classes
- RequestBuilding
- def addHeaders(first: HttpHeader, more: HttpHeader*): RequestTransformer
- Definition Classes
- RequestBuilding
- def afterAll(): Unit
- Definition Classes
- MunitTestFramework → Suite
- def afterEach(context: AfterEach): Unit
- Definition Classes
- Suite
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def assert(cond: => Boolean, clue: => Any)(implicit loc: Location): Unit
- Definition Classes
- Assertions
- def assertEquals[A, B](obtained: A, expected: B, clue: => Any)(implicit loc: Location, compare: Compare[A, B]): Unit
- Definition Classes
- Assertions
- def assertEqualsDouble(obtained: Double, expected: Double, delta: Double, clue: => Any)(implicit loc: Location): Unit
- Definition Classes
- Assertions
- def assertEqualsFloat(obtained: Float, expected: Float, delta: Float, clue: => Any)(implicit loc: Location): Unit
- Definition Classes
- Assertions
- def assertNoDiff(obtained: String, expected: String, clue: => Any)(implicit loc: Location): Unit
- Definition Classes
- Assertions
- def assertNotEquals[A, B](obtained: A, expected: B, clue: => Any)(implicit loc: Location, compare: Compare[A, B]): Unit
- Definition Classes
- Assertions
- def assume(cond: Boolean, clue: => Any)(implicit loc: Location): Unit
- Definition Classes
- Assertions
- def beforeAll(): Unit
- Definition Classes
- Suite
- def beforeEach(context: BeforeEach): Unit
- Definition Classes
- Suite
- def charset: HttpCharset
- Definition Classes
- RouteTest
- def charsetOption: Option[HttpCharset]
- Definition Classes
- RouteTest
- def check[T](body: => T): (RouteTestResult) => T
- Definition Classes
- RouteTest
- def chunks: Seq[ChunkStreamPart]
- Definition Classes
- RouteTest
- def chunksStream: Source[ChunkStreamPart, Any]
- Definition Classes
- RouteTest
- def cleanUp(): Unit
- Definition Classes
- RouteTest
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def closingExtension: String
- Definition Classes
- RouteTest
- def clue[T](c: Clue[T]): T
- Definition Classes
- Assertions
- def clues(clue: Clue[_]*): Clues
- Definition Classes
- Assertions
- macro def compileErrors(code: String): String
- Definition Classes
- CompileErrorMacro
- def contentType: ContentType
- Definition Classes
- RouteTest
- def createActorSystem(): ActorSystem
Override to supply a custom ActorSystem
Override to supply a custom ActorSystem
- Attributes
- protected
- Definition Classes
- RouteTest
- 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
- 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
- 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
- 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
- def entityAs[T](implicit arg0: FromEntityUnmarshaller[T], arg1: ClassTag[T], timeout: Duration = 1.second): T
- Definition Classes
- RouteTest
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- implicit def executor: ExecutionContextExecutor
- Definition Classes
- RouteTest
- 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
- def fail(message: String, clues: Clues)(implicit loc: Location): Nothing
- Definition Classes
- Assertions
- def fail(message: String, cause: Throwable)(implicit loc: Location): Nothing
- Definition Classes
- Assertions
- def failComparison(message: String, obtained: Any, expected: Any, clues: Clues)(implicit loc: Location): Nothing
- Definition Classes
- Assertions
- def failSuite(message: String, clues: Clues)(implicit loc: Location): Nothing
- Definition Classes
- Assertions
- def failTest(msg: String): Nothing
- Definition Classes
- MunitTestFramework → TestFrameworkInterface
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def handled: Boolean
- Definition Classes
- RouteTest
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def header(name: String): Option[HttpHeader]
- Definition Classes
- RouteTest
- def header[T >: Null <: HttpHeader](implicit arg0: ClassTag[T]): Option[T]
- Definition Classes
- RouteTest
- implicit def header2AddHeader(header: HttpHeader): RequestTransformer
- Definition Classes
- RequestBuilding
- def headers: Seq[HttpHeader]
- Definition Classes
- RouteTest
- def intercept[T <: Throwable](body: => Any)(implicit T: ClassTag[T], loc: Location): T
- Definition Classes
- Assertions
- def interceptMessage[T <: Throwable](expectedExceptionMessage: String)(body: => Any)(implicit T: ClassTag[T], loc: Location): T
- Definition Classes
- Assertions
- def isCI: Boolean
- Definition Classes
- SuiteTransforms
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isWebSocketUpgrade: Boolean
- Definition Classes
- RouteTest
- def logRequest(logFun: (HttpRequest) => Unit): (HttpRequest) => HttpRequest
- Definition Classes
- RequestBuilding
- def logRequest(log: LoggingAdapter, level: LogLevel = Logging.DebugLevel): (HttpRequest) => HttpRequest
- Definition Classes
- RequestBuilding
- def logValue[T](logFun: (T) => Unit): (T) => T
- Definition Classes
- TransformerPipelineSupport
- def logValue[T](log: LoggingAdapter, level: LogLevel = Logging.DebugLevel): (T) => T
- Definition Classes
- TransformerPipelineSupport
- def mapHeaders(f: (Seq[HttpHeader]) => Seq[HttpHeader]): RequestTransformer
- Definition Classes
- RequestBuilding
- def marshal[T](value: T)(implicit arg0: ToEntityMarshaller[T], ec: ExecutionContext, mat: Materializer): Strict
- Definition Classes
- MarshallingTestUtils
- def marshalToResponse[T](value: T, request: HttpRequest = HttpRequest())(implicit arg0: ToResponseMarshaller[T], ec: ExecutionContext): HttpResponse
- Definition Classes
- MarshallingTestUtils
- def marshalToResponseForRequestAccepting[T](value: T, mediaRanges: MediaRange*)(implicit arg0: ToResponseMarshaller[T], ec: ExecutionContext): HttpResponse
- Definition Classes
- MarshallingTestUtils
- def marshallingTimeout: FiniteDuration
- Definition Classes
- MarshallingTestUtils
- implicit val materializer: Materializer
- Definition Classes
- RouteTest
- def mediaType: MediaType
- Definition Classes
- RouteTest
- def munitAnsiColors: Boolean
- Definition Classes
- Assertions
- def munitAppendToFailureMessage(buildSuffix: (Test) => Option[String]): TestTransform
- Definition Classes
- TestTransforms
- def munitCaptureClues[T](thunk: => T): (T, Clues)
- Definition Classes
- Assertions
- def munitExecutionContext: ExecutionContext
- Definition Classes
- Suite
- final def munitFailTransform: TestTransform
- Definition Classes
- TestTransforms
- def munitFixtures: Seq[AnyFixture[_]]
- Definition Classes
- Suite
- def munitFlakyOK: Boolean
- Definition Classes
- TestTransforms
- final def munitFlakyTransform: TestTransform
- Definition Classes
- TestTransforms
- final def munitFutureTransform: ValueTransform
- Definition Classes
- ValueTransforms
- def munitIgnore: Boolean
- Definition Classes
- SuiteTransforms
- final def munitIgnoreSuiteTransform: SuiteTransform
- Definition Classes
- SuiteTransforms
- val munitLines: Lines
- Definition Classes
- Assertions
- final def munitOnlySuiteTransform: SuiteTransform
- Definition Classes
- SuiteTransforms
- def munitPrint(clue: => Any): String
- Definition Classes
- Assertions
- final def munitSuiteTransform(tests: List[Test]): List[Test]
- Definition Classes
- SuiteTransforms
- def munitSuiteTransforms: List[SuiteTransform]
- Definition Classes
- SuiteTransforms
- final def munitTestTransform(test: Test): Test
- Definition Classes
- TestTransforms
- def munitTestTransforms: List[TestTransform]
- Definition Classes
- TestTransforms
- def munitTests(): Seq[Test]
- Definition Classes
- BaseFunSuite → Suite
- final val munitTestsBuffer: ListBuffer[Test]
- Definition Classes
- BaseFunSuite
- def munitTimeout: Duration
- Definition Classes
- BaseFunSuite
- final def munitValueTransform(testValue: => Any): Future[Any]
- Definition Classes
- ValueTransforms
- def munitValueTransforms: List[ValueTransform]
- Definition Classes
- ValueTransforms
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def printer: Printer
- Definition Classes
- Assertions
- def rejection: Rejection
- Definition Classes
- RouteTest
- def rejections: Seq[Rejection]
- Definition Classes
- RouteTest
- def removeHeader(clazz: Class[_]): RequestTransformer
- Definition Classes
- RequestBuilding
- def removeHeader[T <: HttpHeader](implicit arg0: ClassTag[T]): RequestTransformer
- Definition Classes
- RequestBuilding
- def removeHeader(headerName: String): RequestTransformer
- Definition Classes
- RequestBuilding
- def removeHeaders(names: String*): RequestTransformer
- Definition Classes
- RequestBuilding
- def response: HttpResponse
- Definition Classes
- RouteTest
- def responseAs[T](implicit arg0: FromResponseUnmarshaller[T], arg1: ClassTag[T], timeout: Duration = 1.second): T
- Definition Classes
- RouteTest
- def responseEntity: HttpEntity
- Definition Classes
- RouteTest
- 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 withcheck
. See the "separate running route from checking" example from ScalatestRouteTestSpec.scala.- Definition Classes
- RouteTest
- def status: StatusCode
- Definition Classes
- RouteTest
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- implicit val system: ActorSystem
- Definition Classes
- RouteTest
- def test(options: TestOptions)(body: => Any)(implicit loc: Location): Unit
- Definition Classes
- BaseFunSuite
- def test(name: String)(body: => Any)(implicit loc: Location): Unit
- Definition Classes
- BaseFunSuite
- def testConfig: Config
- Definition Classes
- RouteTest → MarshallingTestUtils
- def testConfigSource: String
- Definition Classes
- RouteTest
- val testExceptionHandler: ExceptionHandler
- Definition Classes
- MunitTestFramework → TestFrameworkInterface
- implicit def testOptionsFromString(name: String)(implicit loc: Location): TestOptions
- Definition Classes
- TestOptionsConversions
- def toString(): String
- Definition Classes
- AnyRef → Any
- def trailer: Seq[HttpHeader]
- Definition Classes
- RouteTest
- def unmarshal[T](entity: HttpEntity)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): Try[T]
- Definition Classes
- MarshallingTestUtils
- def unmarshalValue[T](entity: HttpEntity)(implicit arg0: FromEntityUnmarshaller[T], ec: ExecutionContext, mat: Materializer): T
- Definition Classes
- MarshallingTestUtils
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Shadowed Implicit Value Members
- 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
- 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
- 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 ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- 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.