Last active
January 31, 2016 10:53
-
-
Save erangaeb/e28cede27936e7315ebd to your computer and use it in GitHub Desktop.
Mocked EmployeeDb compoenent
This file contains hidden or 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
| val employeeHandler = new EmployeeHandler with SprayEmployeeServiceComp with EmployeeDbComp { | |
| val employeeDb = new EmployeeDb { | |
| override def createEmployee(employee: Employee) = { | |
| // mocked employee creation | |
| } | |
| override def getEmployee(empId: Int): Employee = { | |
| // mocked employee retrieve | |
| Employee(3, "test", "test") | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment