Package com.gwtplatform.mvp.client.proxy.AsyncEventPresenterTestUtil

Examples of com.gwtplatform.mvp.client.proxy.AsyncEventPresenterTestUtil.MyAction


    @Test
    public void shouldSetLoadingAndNullOnSuccessfulServerCall() {
        // given
        TestDispatchAsync spy = spy(new TestDispatchAsync(service, injector));
        AsyncEventPresenterTestUtil presenter = new AsyncEventPresenterTestUtil(eventBus, view, proxy, spy);
        willAnswer(new GetAsynchronousAnswer()).given(spy).execute(eq(new MyAction()),
                Matchers.<AsyncCallback<MyResult>>any());

        // when
        presenter.onBind();
        presenter.executeAsync();
View Full Code Here


    @Test
    public void shouldSetLoadingAndFailureOnFailedServerCall() {
        // given
        TestDispatchAsync spy = spy(new TestDispatchAsync(service, injector));
        AsyncEventPresenterTestUtil presenter = new AsyncEventPresenterTestUtil(eventBus, view, proxy, spy);
        willAnswer(new GetAsynchronousFailureAnswer()).given(spy).execute(eq(new MyAction()),
                Matchers.<AsyncCallback<MyResult>>any());

        // when
        presenter.onBind();
        presenter.executeAsync();
View Full Code Here

TOP

Related Classes of com.gwtplatform.mvp.client.proxy.AsyncEventPresenterTestUtil.MyAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.