object ExceptionMatchers extends ExceptionMatchers
- Alphabetic
- By Inheritance
- ExceptionMatchers
- ExceptionMatchers
- ExceptionBeHaveMatchers
- BeHaveMatchers
- ExceptionBaseMatchers
- ExpectationsCreation
- MatchResultStackTrace
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
ExceptionClassMatcher extends Matcher[Any]
Exception matcher checking the type of a thrown exception.
Exception matcher checking the type of a thrown exception.
- Definition Classes
- ExceptionBaseMatchers
-
class
ExceptionMatcher[E <: Throwable] extends Matcher[Any]
This matchers matches exception instances.
This matchers matches exception instances.
- Definition Classes
- ExceptionBaseMatchers
- See also
throwA
-
implicit
class
ExceptionMatcherResult[T] extends AnyRef
- Definition Classes
- ExceptionBeHaveMatchers
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
be: NeutralMatcher[Any]
- Definition Classes
- BeHaveMatchers
-
def
checkFailure[T](m: MatchResult[T]): MatchResult[T]
this method can be overridden to throw exceptions when checking the match result
this method can be overridden to throw exceptions when checking the match result
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
-
def
checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]
this method can be overridden to throw exceptions when checking the match result
this method can be overridden to throw exceptions when checking the match result
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
-
def
checkResultFailure(r: ⇒ Result): Result
this method can be overridden to throw exceptions when checking the result
this method can be overridden to throw exceptions when checking the result
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
createExpectable[T](t: ⇒ T, alias: Option[(String) ⇒ String]): Expectable[T]
- returns
an Expectable with a description function
- Definition Classes
- ExpectationsCreation
-
def
createExpectable[T](t: ⇒ T, alias: (String) ⇒ String): Expectable[T]
- returns
an Expectable with a description function
- Definition Classes
- ExpectationsCreation
-
def
createExpectable[T](t: ⇒ T, alias: ⇒ String): Expectable[T]
- returns
an Expectable with a description
- Definition Classes
- ExpectationsCreation
-
def
createExpectable[T](t: ⇒ T): Expectable[T]
- returns
an Expectable
- Definition Classes
- ExpectationsCreation
-
def
createExpectableWithShowAs[T](t: ⇒ T, showAs: ⇒ String): Expectable[T]
- returns
an Expectable with a function to show the element T
- Definition Classes
- ExpectationsCreation
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[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()
-
def
have: NeutralMatcher[Any]
- Definition Classes
- BeHaveMatchers
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mapMatchResult[T](m: MatchResult[T]): MatchResult[T]
this method can be overridden to intercept a MatchResult and change its message before it is thrown
this method can be overridden to intercept a MatchResult and change its message before it is thrown
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
not: NotMatcher[Any]
- Definition Classes
- BeHaveMatchers
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
sandboxMatchResult[T](mr: ⇒ MatchResult[T]): MatchResult[T]
- returns
the match result without any side-effects
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
-
def
setStacktrace[T](m: MatchResult[T]): MatchResult[T]
this method can be overridden to avoid filling-in a stacktrace indicating the location of the result
this method can be overridden to avoid filling-in a stacktrace indicating the location of the result
- Attributes
- protected
- Definition Classes
- MatchResultStackTrace
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
throwA[E <: Throwable](e: E): ExceptionMatcher[E]
- returns
a matcher checking the value of an Exception
- Definition Classes
- ExceptionBaseMatchers
-
def
throwA[E <: Throwable](message: String = ".*")(implicit m: ClassTag[E]): Matcher[Any]
- returns
a matcher checking the type of an Exception and its message (as a regexp)
- Definition Classes
- ExceptionBaseMatchers
-
def
throwA[E <: Throwable](implicit m: ClassTag[E]): ExceptionClassMatcher
- returns
a matcher checking the type of an Exception
- Definition Classes
- ExceptionBaseMatchers
-
def
throwAn[E <: Throwable](e: E): ExceptionMatcher[E]
alias for throwA
alias for throwA
- Definition Classes
- ExceptionBaseMatchers
-
def
throwAn[E <: Throwable](message: String = ".*")(implicit m: ClassTag[E]): Matcher[Any]
alias for throwA
alias for throwA
- Definition Classes
- ExceptionBaseMatchers
-
def
throwAn[E <: Throwable](implicit m: ClassTag[E]): ExceptionClassMatcher
alias for throwA
alias for throwA
- Definition Classes
- ExceptionBaseMatchers
-
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
- @throws( ... ) @native()