Created
May 11, 2017 10:52
-
-
Save anatolyra/d85b13035f768656f97b36f0df81c0e4 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 with TestClassDataContext { | |
"My service" should { | |
"set the owner of the car" >> { testData: DefaultObjects => | |
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) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment