Package org.fusesource.restygwt.example.client.dispatcher

Examples of org.fusesource.restygwt.example.client.dispatcher.DispatcherFactory


*/
public class RailsTestGWT extends RailsCreateTestGWT {

    public void testIndex() {
        UsersRestService service = GWT.create(UsersRestService.class);
        ((RestServiceProxy)service).setDispatcher(new DispatcherFactory().xsrfProtectionDispatcher());
        List<User> expected = new ArrayList<User>();
        expected.add(persistentUser);
        service.index(expectResult(expected));
        delayTestFinish(REQUEST_TIMEOUT);
    }
View Full Code Here


        delayTestFinish(REQUEST_TIMEOUT);
    }

    public void testShow() {
        UsersRestService service = GWT.create(UsersRestService.class);
        ((RestServiceProxy)service).setDispatcher(new DispatcherFactory().xsrfProtectionDispatcher());
        service.show(persistentUser.id, expectResult(persistentUser));
        delayTestFinish(REQUEST_TIMEOUT);
    }
View Full Code Here

        delayTestFinish(REQUEST_TIMEOUT);
    }

    public void testUpdate() {
        UsersRestService service = GWT.create(UsersRestService.class);
        ((RestServiceProxy)service).setDispatcher(new DispatcherFactory().xsrfProtectionDispatcher());
        final User user = newUser();
        user.id = persistentUser.id;
        service.update(user, expectResult(persistentUser));
        delayTestFinish(REQUEST_TIMEOUT);
    }
View Full Code Here

TOP

Related Classes of org.fusesource.restygwt.example.client.dispatcher.DispatcherFactory

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.