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