I am not seeing a failure with JMockit 1.9. Can you post the stack trace when running with this version? And the one with JMockit 1.10 too, if possible?
The stack traces are the same for both versions, exactly like the one I've posted above. The assertion error is obviously for assertEquals(10, buffer1.position());. I'm getting curious. This is my environment:
JDK 1.8.0_11
eclipse Luna
TestNG 6.8.6.20141201_2240 (as eclipse plugin)
and JMockit 1.9 & 1.10
I get no failure with 1.9, and a different failure with 1.10 (which I know why it happens, and how to handle it). It's probably a difference related to TestNG x JUnit, or Eclipse x IntelliJ.
While reviewing the tutorial, I noticed that the test case on topic Specifying behavior for future instances fails with JMockit 1.9 and 1.10:
It seems that the
maxInstance=1
attribute on@Capturing
is not in effect.The text was updated successfully, but these errors were encountered: