Aspectj plugin cause unit test case fail?

test-tag
eclipse
plugins

(yangshenhuai) #1

I am adding unit test for some legacy code .and I use mockito and powermock to mock some external class.
After finish writing the case, I run it in eclipse and all test passes.
but when I run gradle test one test fails, and I checked the failed log seems some external class is not mocked.
but if I remove apply plugin: 'aspectj' in build.gradle , all test can pass.
anyone can help explain this? thanks.


(Tim Yates) #2

Hiya!

Do you have a simple example build showing the problem that you can share a link to?