scala.testing.SUnit

TestCase

class TestCase extends Test with Assert

The class TestCase defines the fixture to run multiple tests.

attributes: abstract

Inherits

  1. Assert
  2. Test
  3. AnyRef
  4. Any

Value Members

  1. def assertEq(expected: AnyRef, actual: AnyRef): Unit

    fails if expected ne actual

  2. def assertEq(msg: String, expected: AnyRef, actual: AnyRef): Unit

    fails if expected ne actual

  3. def assertEquals[A](expected: A, actual: A): Unit

    fails if expected != actual

  4. def assertEquals[A](msg: String, expected: A, actual: A): Unit

    fails if expected != actual

  5. def assertFalse(actual: Boolean): Unit

    succeeds if actual is false

  6. def assertFalse(msg: String, actual: Boolean): Unit

    succeeds if actual is false

  7. def assertNotEq(expected: AnyRef, actual: AnyRef): Unit

    fails if expected eq actual

  8. def assertNotEq(msg: String, expected: AnyRef, actual: AnyRef): Unit

    fails if expected eq actual

  9. def assertNotNull(actual: AnyRef): Unit

    fails if null eq actual

  10. def assertNotNull(msg: String, actual: AnyRef): Unit

    fails if null eq actual

  11. def assertNull(actual: AnyRef): Unit

    fails if actual ne null

  12. def assertNull(msg: String, actual: AnyRef): Unit

    fails if actual ne null

  13. def assertSameElements[A](actual: Seq[A], expected: Seq[A]): Unit

    fails if ! actual

  14. def assertTrue(actual: Boolean): Unit

    succeeds if actual == true

  15. def assertTrue(msg: String, actual: Boolean): Unit

    succeeds if actual == true

  16. def enableStackTrace: Boolean

  17. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

  18. def fail[A](msg: String, expected: A, actual: A): Unit

  19. def fail(msg: String): Unit

    throws AssertFailed with given message msg

  20. def hashCode(): Int

    Returns a hash code value for the object

  21. val name: String

  22. def run(r: TestResult): Unit

  23. def setUp(): Unit

  24. def tearDown(): Unit

  25. def toString(): String

    Returns a string representation of the object

Instance constructors

  1. new TestCase(name: String)

  2. new TestCase()