How not to use test:framework

I am writing a plug-in, and ported to the ES code repository. It is located in the plugins directory. In this way, I can easily quote ES code without referring to the jar package.

I wrote this plugin using junit4 and mockito2.x, now I want to run the tests in the plugin, there is no way to run it. es test: framework uses mockito1.x. If I modify my test code, the cost is very high. And after adapting my code to 1.x, this error cannot be fixed:

Caused by: java.lang.NullPointerException at org.mockito.internal.exceptions.stacktrace.StackTraceFilter.

For example, A a = mock (A.class) will trigger the above bug

  1. Is there any way to solve this problem?
  2. To change the way of thinking, is there a way to run my test alone without using test: framework instead of running the test with ES?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.