object Assert
A utility for making programming assertions.
- Version
1.7
- Alphabetic
- By Inheritance
- Assert
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(expectedValue: Any, actualValue: Any, message: String): Unit
Throws an
AssertionFailedExceptionwith the given message if the given objects are not equal, according to theequalsmethod.Throws an
AssertionFailedExceptionwith the given message if the given objects are not equal, according to theequalsmethod.- expectedValue
the correct value
- actualValue
the value being checked
- message
a description of the assertion throws AssertionFailedException if the two objects are not equal
- def equals(expectedValue: Any, actualValue: Any): Unit
Throws an
AssertionFailedExceptionif the given objects are not equal, according to theequalsmethod.Throws an
AssertionFailedExceptionif the given objects are not equal, according to theequalsmethod.- expectedValue
the correct value
- actualValue
the value being checked throws AssertionFailedException if the two objects are not equal
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTrue(assertion: Boolean, message: String): Unit
Throws an
AssertionFailedExceptionwith the given message if the given assertion is not true.Throws an
AssertionFailedExceptionwith the given message if the given assertion is not true.- assertion
a condition that is supposed to be true
- message
a description of the assertion throws AssertionFailedException if the condition is false
- def isTrue(assertion: Boolean): Unit
Throws an
AssertionFailedExceptionif the given assertion is not true.Throws an
AssertionFailedExceptionif the given assertion is not true.- assertion
a condition that is supposed to be true throws AssertionFailedException if the condition is false
- 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 shouldNeverReachHere(message: String): Unit
Always throws an
AssertionFailedExceptionwith the given message.Always throws an
AssertionFailedExceptionwith the given message.- message
a description of the assertion throws AssertionFailedException thrown always
- def shouldNeverReachHere(): Unit
Always throws an
AssertionFailedException.Always throws an
AssertionFailedException.throws AssertionFailedException thrown always
- 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(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()