trait StubBodyParserFactory extends AnyRef
- Source
- Helpers.scala
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- StubBodyParserFactory
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def stubBodyParser[T](content: T = AnyContentAsEmpty): BodyParser[T]
Stub method that returns the content immediately.
Stub method that returns the content immediately. Useful for unit testing.
val stubParser = bodyParser(AnyContent("hello"))
- content
the content to return, AnyContentAsEmpty by default
- returns
a BodyParser for type T that returns Accumulator.done(Right(content))