Skip to content

Instantly share code, notes, and snippets.

@anatolyra
Created May 11, 2017 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anatolyra/54eb6ec0bbc1f034e29b8a77b0fc09f8 to your computer and use it in GitHub Desktop.
Save anatolyra/54eb6ec0bbc1f034e29b8a77b0fc09f8 to your computer and use it in GitHub Desktop.
class MyTestClass extends SpecificationWithJUnit {
"My service" should {
"set the owner of the car" in new Context {
val service = new Service
service.setCarOwner(carId = car.id, ownerId = person.id)
service.getPerson(person.id).carId must be equalTo Some(car.id)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment