org.specs.specification.Assert

class Assert

class Assert[T](value : => T)

 extends Assertable[T]


The assert class adds matcher methods to objects which are being specified
Usage: new Assert(value, example) must beMatching(otherValue)

An assert is created with its parent Example in order to register failures and errors if a matcher is not ok



Source: Assert.scala(23)

 Constructors

def this(value : => T)

 Methods

!= final def !=(arg0 : Any) Boolean Any
!= final def !=(arg0 : Object) Boolean AnyRef
== final def ==(arg0 : Object) Boolean AnyRef
== final def ==(arg0 : Any) Boolean Any
applyMatcher def applyMatcher[S >: T](m : => Matcher[S], value : => T) Boolean Assertable
asInstanceOf final def asInstanceOf[T0] T0 Any
clone protected def clone Object AnyRef
eq final def eq(arg0 : Object) Boolean AnyRef
equals def equals(arg0 : Any) Boolean AnyRef
finalize protected def finalize Unit AnyRef
getClass final def getClass Class[Object] AnyRef
hashCode def hashCode Int AnyRef
isInstanceOf final def isInstanceOf[T0] Boolean Any
must def must[S >: T](m : => Matcher[S])
applies a matcher to the current value and throw a failure is the result is not true
Boolean
mustBe def mustBe(otherValue : Any)
alias for must be(other)
Boolean
mustEq def mustEq(otherValue : Any)
alias for must be(other)
Boolean
mustEqual def mustEqual(otherValue : Any)(implicit details : Detailed)
alias for must is_==(other)
Boolean
mustNot def mustNot[S >: T](m : => Matcher[S])
applies the negation of a matcher
Boolean
mustNotBe def mustNotBe(otherValue : Any)
alias for must notEq(other)
Boolean
mustNotEq def mustNotEq(otherValue : Any)
alias for must notEq(other)
Boolean
mustVerify def mustVerify[S >: T](f : (S) => Boolean)
alias for must verify(f)
Boolean
must_!= def must_!=(otherValue : Any)(implicit details : Detailed)
alias for must is_!=(other)
Boolean
must_== def must_==(otherValue : Any)(implicit details : Detailed)
alias for must is_==(other)
Boolean
ne final def ne(arg0 : Object) Boolean AnyRef
notify final def notify Unit AnyRef
notifyAll final def notifyAll Unit AnyRef
synchronized final def synchronized[T0](arg0 : T0) T0 AnyRef
toString def toString String AnyRef
verifies def verifies(f : (T) => Boolean)
alias for mustVerify(f)
Boolean
wait final def wait(arg0 : Long) Unit AnyRef
wait final def wait Unit AnyRef
wait final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
Copyright (c) 2007-2008. All Rights Reserved.