I am trying to mock db in a "Service" layer that is using Slick in order to Unit Test action composition in it.
Unfortunately I am not able to mock the db and JdbcProfile with Mockito. In particular I am not able to mock JdbcProfile#API in these lines of code:
import driver.api._
val dbConfig = databaseConfigProvider.get[JdbcProfile]
Do you know a better strategy to unit test Slick (I don't want to use Acolyte)?
Aucun commentaire:
Enregistrer un commentaire