implicit class VertxHttpResponseChecking[T] extends AnyRef
Implicit conversion to make easier to check status codes wrapped in futures and making them Future[Assertion]
- Alphabetic
- By Inheritance
- VertxHttpResponseChecking
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
VertxHttpResponseChecking(toCheck: Future[HttpResponse[T]])
- toCheck
the response to check
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
shouldAnswerWith(statusCode: Int, strategy: (Option[String]) ⇒ Boolean)(implicit executionContext: ExecutionContext): Future[Assertion]
Asserts that the future succeed (the response is returned) and that the server responded with the specified status code and that the body respects the rule specified in the strategy.
Asserts that the future succeed (the response is returned) and that the server responded with the specified status code and that the body respects the rule specified in the strategy.
- statusCode
the status code that the server should return
- strategy
the strategy that should be used to validate the body
- executionContext
the implicit execution context
- returns
the future containing the result of the verification
-
def
shouldAnswerWith(statusCode: Int)(implicit executionContext: ExecutionContext): Future[Assertion]
Asserts that the future succeed (the response is returned) and that the server responded with the specified status code.
Asserts that the future succeed (the response is returned) and that the server responded with the specified status code.
- statusCode
the status code that the server should return
- executionContext
the implicit execution context
- returns
the future containing the result of the verification
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )