Created
May 11, 2017 10:38
-
-
Save anatolyra/54eb6ec0bbc1f034e29b8a77b0fc09f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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