Closed evdzhan closed 10 years ago
Same reason as issue #70 (package-private methods in JRE classes were excluded from mocking in JMockit 1.12).
But then why does the second test pass under JMockit 1.12 ?
I haven't checked, but if it passes then what's the problem? There were several improvements to MockUp since version 1.9, maybe that's why it passes now.
Yes, but I am mocking window, you just said I cannot do that. Am I missing something ?
My previous comment (on issue #70) was about the first test (with @Mocked), not the second one (with MockUp). I should have clarified that.
Hi there. I am having difficulties mocking the java.awt.Window class.
I did try to mock it using the MockUp API as well as @Mocked API. Here are example tests attempting to mock the window :
}
With JMockit 1.12 the first test fails, but the second one succeeds. With JMockit 1.9 it is vice versa - the first succeeds, while the second fails.
My environment is :
JDK 1.7.0_51 32 bit JMockit 1.12 and 1.9 Win7 64 bit