Rewrite Java in Scala - Writing test for Java applications in Scala
Enjoy writing more clean and concise, BDD style enabled, natural language (a.k.a Queen's English) like test codes by using ScalaTest. For example:
file must be a ('directory')
result should be <= 7
"should produce NoSuchElementException when head is invoked" in { intercept[NoSuchElementException] {
Set.empty.head
}
}
Read more - http://www.scalatest.org/user_guide