class CompleteFailure extends TestResponse
- Alphabetic
- By Inheritance
- CompleteFailure
- TestResponse
- Response
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
FuncType = HttpResponse
- Definition Classes
- TestResponse → Response
-
type
SelfType = HttpResponse
- Definition Classes
- TestResponse → Response
Value Members
-
def
!(code: Int, msg: ⇒ String)(implicit errorFunc: ReportFailure): SelfType
Test that the server gave a particular response code.
Test that the server gave a particular response code. If the response is not a 200, call the errorFunc with the msg
- msg
the String to report as an error
- errorFunc
the error reporting thing.
- Definition Classes
- CompleteFailure → Response
-
def
!(msg: ⇒ String)(implicit errorFunc: ReportFailure): SelfType
Test that the server gave a response.
Test that the server gave a response. If the server failed to respond, call the errorFunc with the msg
- msg
the String to report as an error
- errorFunc
the error reporting thing.
- Definition Classes
- CompleteFailure → Response
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
!@(msg: ⇒ String)(implicit errorFunc: ReportFailure): SelfType
Test the response as a 200.
Test the response as a 200. If the response is not a 200, call the errorFunc with the msg
- msg
the String to report as an error
- errorFunc
the error reporting thing.
- Definition Classes
- CompleteFailure → Response
-
def
!\(label: String, msg: ⇒ String)(implicit errorFunc: ReportFailure): SelfType
Test that the server response does not contain a node with a particular label as a direct child.
Test that the server response does not contain a node with a particular label as a direct child. If the response does contain valid xml and does contain the node, call the errorFunc with the msg
- label
the label for the XML node to search for in the response
- msg
the String to report as an error
- errorFunc
the error reporting thing.
- Definition Classes
- CompleteFailure → Response
-
def
!\(node: Node, msg: ⇒ String)(implicit errorFunc: ReportFailure): SelfType
Test that the server response does not contain a particular node as a direct child with the exact attributes and children.
Test that the server response does not contain a particular node as a direct child with the exact attributes and children. If the response does contain valid xml and does contain the exact node, call the errorFunc with the msg.
- node
the XML node to search for in the response
- msg
the String to report as an error
- errorFunc
the error reporting thing.
- Definition Classes
- CompleteFailure → Response
-
def
!\\(label: String, msg: ⇒ String)(implicit errorFunc: ReportFailure): SelfType
Test that the server response does not contain a node with a particular label anywhere in the xml.
Test that the server response does not contain a node with a particular label anywhere in the xml. If the response does contain valid xml and does contain the node, call the errorFunc with the msg
- label
the label for the XML node to search for in the response
- msg
the String to report as an error
- errorFunc
the error reporting thing.
- Definition Classes
- CompleteFailure → Response
-
def
!\\(node: Node, msg: ⇒ String)(implicit errorFunc: ReportFailure): SelfType
Test that the server response does not contain a particular node anywhere in the xml with the exact attributes and children.
Test that the server response does not contain a particular node anywhere in the xml with the exact attributes and children. If the response does contain valid xml and does contain the exact node, call the errorFunc with the msg.
- node
the XML node to search for in the response
- msg
the String to report as an error
- errorFunc
the error reporting thing.
- Definition Classes
- CompleteFailure → Response
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
\(label: String, msg: ⇒ String)(implicit errorFunc: ReportFailure): SelfType
Test that the server response contains a node with a particular label as a direct child.
Test that the server response contains a node with a particular label as a direct child. If the response does not contain valid xml or does not contain the node, call the errorFunc with the msg
- label
the label for the XML node to search for in the response
- msg
the String to report as an error
- errorFunc
the error reporting thing.
- Definition Classes
- CompleteFailure → Response
-
def
\(node: Node, msg: ⇒ String)(implicit errorFunc: ReportFailure): SelfType
Test that the server response contains a particular node as a direct child with the exact attributes and children.
Test that the server response contains a particular node as a direct child with the exact attributes and children. If the response does not contain valid xml or does not contain the exact node, call the errorFunc with the msg.
- node
the XML node to search for in the response
- msg
the String to report as an error
- errorFunc
the error reporting thing.
- Definition Classes
- CompleteFailure → Response
-
def
\\(label: String, msg: ⇒ String)(implicit errorFunc: ReportFailure): SelfType
Test that the server response contains a node with a particular label anywhere in the xml.
Test that the server response contains a node with a particular label anywhere in the xml. If the response does not contain valid xml or does not contain the node, call the errorFunc with the msg
- label
the label for the XML node to search for in the response
- msg
the String to report as an error
- errorFunc
the error reporting thing.
- Definition Classes
- CompleteFailure → Response
-
def
\\(node: Node, msg: ⇒ String)(implicit errorFunc: ReportFailure): SelfType
Test that the server response contains a particular node anywhere in the xml with the exact attributes and children.
Test that the server response contains a particular node anywhere in the xml with the exact attributes and children. If the response does not contain valid xml or does not contain the exact node, call the errorFunc with the msg.
- node
the XML node to search for in the response
- msg
the String to report as an error
- errorFunc
the error reporting thing.
- Definition Classes
- CompleteFailure → Response
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val exception: Box[Throwable]
-
def
filter(f: (HttpResponse) ⇒ Unit): HttpResponse
the Response has a filter method for chaining in a for comprehension.
the Response has a filter method for chaining in a for comprehension. Note that the filter method does *NOT* have to return a Boolean, any expression (e.g., an assertion)
- Definition Classes
- CompleteFailure → Response
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
foreach(f: (HttpResponse) ⇒ Unit): Unit
the Response has a foreach method for chaining in a for comprehension
the Response has a foreach method for chaining in a for comprehension
- Definition Classes
- CompleteFailure → Response
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
headers: Map[String, List[String]]
The response headers
The response headers
- Definition Classes
- CompleteFailure → Response
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val serverName: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- CompleteFailure → 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
- @throws( ... )
-
def
xml: Box[Elem]
The XML for the body
The XML for the body
- Definition Classes
- CompleteFailure → Response