Closed udrnrso closed 9 years ago
It is failing when I run it, with the following failure:
Running DependencyTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.187 sec <<< FAILURE! - in DependencyTest
test_WrongOrder_ShouldFailed(DependencyTest) Time elapsed: 0.047 sec <<< ERROR!
mockit.internal.MissingInvocation: Missing invocation of:
DependencyTest$Dependency#end()
on mock instance: DependencyTest$Dependency@66e8791
at DependencyTest$Dependency.end(DependencyTest.java)
at DependencyTest$1.
Which versions of JMockit and JUnit/TestNG did you use?
My JMockit is 0.999.4 and Junit is 4.12, could it be old version issue?could it be old version issue?
Yes, it must be the old version.
I think the test below shoud failed, but actually success . Is it a bug ?
public class DependencyTest { class Dependency { public void start() {
}