Skip to content

Instantly share code, notes, and snippets.

@sorenmat
Created January 5, 2012 19:45
Show Gist options
  • Save sorenmat/1566857 to your computer and use it in GitHub Desktop.
Save sorenmat/1566857 to your computer and use it in GitHub Desktop.
import org.junit.runner.RunWith
import org.scalatest.matchers.ShouldMatchers
import org.scalatest.Spec
import org.scalatest.TestFailedException
import org.scalatest.junit.JUnitRunner
@RunWith(classOf[JUnitRunner])
class SampleTest extends Spec with ShouldMatchers {
describe("simple test case") {
it("should run") {
1 + 1 should be (2)
}
it("should multiply two number") {
10 * 10 should be (100)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment