Friday, December 28, 2012

JMockit compatible with GWTTestCase?

Hello all-

I'm trying to use JMockit in a GWTTestCase (JUnit 3, for what it's worth) and I'm not having any luck. I have jmockit.jar on my classpath for the test, but when I run it, I get this error message:

[ERROR] Line 50: No source code is available for type mockit.NonStrictExpectations; did you forget to inherit a required module?

Line 50 is where I have my NonStrictExpectations declared in my test case. Right now, it's empty.

I tried TRACE-level logging of the unit test run in Eclipse, and I get similar "no source code available" errors for other classes in the application GWT client code, but those are not under test and not in the same module as the code under test, so I don't think those are interfering.

My classpath includes my Eclipse output dir, GWT jars, jmockit.jar and junit.jar. Is there something else that should be in the classpath?



You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment