Skip to content

Instantly share code, notes, and snippets.

Avatar

Anatoly Rabinovich anatolyra

  • Outbrain
  • Israel
View GitHub Profile
View MyTestClassWithTestDataSupportScalaTest.scala
class MyTestClass extends WordSpec with TestDataSupport {
"My service" should {
"set the owner of the car" in testContext { testData =>
val service = new Service
service.setCarOwner(carId = testData.car.id, ownerId = testData.person.id)
service.getPerson(testData.person.id).carId shouldEqual Some(testData.car.id)
}
}
}