packagesamplesimportorg.junit.runner.RunWithimportorg.specs2.mutable._importorg.specs2.runner._/** * Sample specification. * * This specification can be executed with: scala -cp <your classpath=""> ${package}.SpecsTest * Or using maven: mvn test * * For more information on how to write or run specifications, please visit: * http://etorreborre.github.com/specs2/guide/org.specs2.guide.Runners.html * */@RunWith(classOf[JUnitRunner])classMySpecTestextendsSpecification{"The 'Hello world' string"should{"contain 11 characters"in{"Hello world"musthavesize(11)}"start with 'Hello'"in{"Hello world"muststartWith("Hello")}"end with 'world'"in{"Hello world"mustendWith("world")}}}