GWT and EasyMock - can't call createStrictMock()
I'm trying to use EasyMock to facilitate testing my GWT project but I get an error on the createStrictMock
method:
import com.BiddingSystem.client.Presenter.CreateTopicPresenter;
import com.google.gwt.event.shared.HandlerManager;
import org.easymock.*;
import junit.framework.TestCase;
import com.google.gwt.junit.GWTMockUtilities;
public class TestBiddingSystem extends TestCase
{
private CreateTopicPresenter TopicPresenter;
private BiddingSysAsync MockRPC;
private HandlerManager EventBus;
private CreateTopicPresenter.Display TopicDisplay
protected vo开发者_开发问答id setUpd()
{
EventBus = new HandlerManager(null);
TopicDisplay = createStrictMock.(createTopicPresenter.Display.class);
}
}
What am I doing wrong?
The createStrictMock
method can't be found. Add the following import to the class:
import static org.easymock.EasyMock.*;
精彩评论