GWT 和 EasyMock - 无法调用 createStrictMock()
我正在尝试使用 EasyMock 来促进测试我的 GWT 项目,但在 createStrictMock
方法上出现错误:
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 void setUpd()
{
EventBus = new HandlerManager(null);
TopicDisplay = createStrictMock.(createTopicPresenter.Display.class);
}
}
我做错了什么?
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 void setUpd()
{
EventBus = new HandlerManager(null);
TopicDisplay = createStrictMock.(createTopicPresenter.Display.class);
}
}
What am I doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找不到
createStrictMock
方法。将以下导入添加到类中:The
createStrictMock
method can't be found. Add the following import to the class: