JMockit - initialization problem

后端 未结 7 1257
情话喂你
情话喂你 2020-12-01 20:33

When I use the following test I get a WARNING:

WARNING: JMockit was initialized on demand, which may cause certain tests to fail; please check the d

7条回答
  •  执念已碎
    2020-12-01 21:05

    I had no difficulties running my tests in Maven but I got the same error when I was running them in eclipse.

    The JMockit Eclipse plugin allowed me to run all the test in eclipse without any extra configuration.

    https://marketplace.eclipse.org/content/jmockit-eclipse

    One of the featues of this plugin is

    Automatically adds JMockit jar as -javaagent argument to JUnit launches.

提交回复
热议问题