scala.testing
object UnitTest

[source: `scala/testing/UnitTest.scala`]

`` `object` UnitTest
  `extends` AnyRef

  Some simple methods to support unit testing with assertions to contain more JUnit style assertions which use Scala's features.

Author
  Burak Emir
Deprecated
  use SUnit instead.

Value Summary
`var` | report : Report

Method Summary
`def` | assertEquals [A](actual : A, expected : A) : Unit
`def` | assertFalse (actual : Boolean) : Unit
`def` | assertNonNull (actual : AnyRef) : Unit
`def` | assertNotEquals [A](actual : A, expected : A) : Unit
`def` | assertNull (actual : AnyRef) : Unit
`def` | assertSameElements [A](actual : Seq[A], expected : Seq[A]) : Unit
`def` | assertTrue (actual : Boolean) : Unit
`def` | setReporter (r : Report) : Unit

Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized

Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf

Class Summary
`class` | Report (report_ok : () => Unit, report_fail : (String, String) => Unit)`extends` AnyRef

Value Details

`` `var` report : Report

Method Details

`` `def` setReporter(r : Report) : Unit

Parameters
  `r -` ...

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

Parameters
  `actual -` ...
  `expected -` ...

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

Parameters
  `actual -` ...
  `expected -` ...

`` `def` assertTrue(actual : Boolean) : Unit

`` `def` assertFalse(actual : Boolean) : Unit

`` `def` assertNull(actual : AnyRef) : Unit

`` `def` assertNonNull(actual : AnyRef) : Unit

`` `def` assertNotEquals[A](actual : A, expected : A) : Unit