I am trying to make fun of db on the “Service” layer that Slick uses to Unit Test the composition of the composition in it.
Unfortunately, I cannot scoff at db and JdbcProfilewith Mockito. In particular, I cannot scoff JdbcProfile#APIat these lines of code:
import driver.api._
val dbConfig = databaseConfigProvider.get[JdbcProfile]
Do you know the best strategy for Unit Test Slick (I don't want to use Acolyte )?
source
share