I am writing unit tests for my spark/scala application. I am using scalamock as well to mock objects, specifically Session / Session Factory.
In one of my test classes, I try to mock the Session. Ex:
val mockedSession = mock[Session]
However, I get this error:
could not find implicit value for evidence parameter of type
org.scalamock.util.Defaultable[org.hibernate.SimpleNaturalldLoadAccess]
I am getting similar errors no matter the object I mock. The format looks correct.