Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package bm4scala
- import org.specs2.mutable.Before
- import org.specs2.mutable.Specification
- import org.specs2.matcher.DataTables
- class SomeSuite extends Specification with DataTables {
- val context = new Before { def before = println("BEFORE") }
- "The 'Hello world' string" should {
- "contain 11 characters" in {
- "Hello world" must have size (11)
- }
- "start with 'Hello'" in {
- "Hello world" must startWith("Hello")
- }
- "end with 'world'" in {
- "Hello world" must endWith("world")
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement