There are very few GWT-compatible mocking tools. Actually I know only one,
inspired by EasyMock and made by Googlers:
https://code.google.com/p/easy-gwt-mock/
An alternative is to mock GWT so you can avoid using a GWTTestCase, and
thus use the mocking tool you want (including JMockit):
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;
Its not compatible. Why do you need to mock things in a GWTTestCase? You
normally do it in an ordinary JUnit Test to mock out classes that use
GWT.create() or JSNI.
-- J.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this