I am working in Play 2.5.3 , scala 2.11.7., Akka 2.4.7 .I ma doing Unit Testing using Specs2 and Mockito . I have a method that i need to mock.It returns multiple 2 string values. when i am doing this :
val mockTokenGenerator = mock[ValidatorClass] mockTokenGenerator.tokenGenerator("testClient") returns ("abc" , "abc")
It gives me error : found :String , required : (String, String) tokenGenerator is the name of method i need to mock. What am i doing wrong here?
Aucun commentaire:
Enregistrer un commentaire