-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception during macro expansion in mockito-scala-scalatest #246
Comments
That's weird, the old syntax doesn't use any macros, so I don't think is a mockito problem per-se. In any case, I'm not a spark guy, I can take a look, but I'd need if you can put together a small github project that reproduces the issue. Thanks! |
@bbonanno Here is my small project https://github.com/raksit31667/example-spark-gradle/tree/mockito-scala-issue Thank you for your support, appreciated. |
you'r assumption was right, you're using an old version of Scalatest, update to "3.1.2" and the problem goes away |
The issue was resolved after upgrading to v3.1.2. If you are Spark guys, and using holdenk/spark-testing-base, they are still depending on scalatest v3.0.5. Please follow this pull request holdenk/spark-testing-base#320 |
I just wanted to add my resolution to this issue when changing from strictly mockito-core to mockito-scala. I had to add |
Context (Environment)
Running unit tests with following dependencies:
Here is the test script:
Expected Behavior
Tests should be running without any exceptions thrown.
Current Behavior
Failed to load ApplicationContext while initializing embedded database.
Assumption
Dependency conflicts
The text was updated successfully, but these errors were encountered: