Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe("ServiceApiImpl") {
- it("get name") {
- val serviceApi = new ServiceApiImpl
- val serviceApiSpy = spy(serviceApi)
- when(serviceApiSpy.getUser(101))
- .thenReturn(EitherT.rightT[Future, String](ExternalUser(101, "John")))
- assertResult(EitherT.rightT[Future, String](User(John))) {
- serviceApiSpy.getName(101)
- }
- }
- }
- Expected EitherT(Future(Success(Right(User("John"))))), but got EitherT(Future(Success(Right(User("John")))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement