import java.util.Date import org.junit.runner._ import org.specs2.mutable._ import org.specs2.runner._ import picsolve.helloworld.Person import play.api.test._ @RunWith(classOf[JUnitRunner]) class PersonSpec extends Specification { "Person" should { "return their name correclty" in new WithApplication{ val name = "A Name" Person(name,new Date()).name === name } "return their birthDay correclty" in new WithApplication{ val birthDay = new Date() Person("A Name",birthDay).birthDay === birthDay } } }