开发者

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.*;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜