Package com.totalchange.jizz.web.shared.admin

Examples of com.totalchange.jizz.web.shared.admin.GetSettingsAction


    private void load() {
        loadingHandler.modal();

        logger.finer("Sending GetSettingsAction request");
        dispatch.execute(new GetSettingsAction(),
                new AsyncCallback<GetSettingsResult>() {
                    @Override
                    public void onSuccess(GetSettingsResult result) {
                        logger.fine("Got successful response to "
                                + "GetSettingsAction");
View Full Code Here


    public void testExecuteNewServer() throws DispatchException {
        expect(mockJizzStationDao.getPrimaryStation()).andReturn(null);
        replay(mockJizzStationDao);

        GetSettingsResult result = getSettingsHandler.execute(
                new GetSettingsAction(), null);

        assertEquals("", result.getSettings().getStationName());
        assertEquals("30 17 * * fri", result.getSettings()
                .getBroadcastSchedule());
        assertEquals("", result.getSettings().getStationUrl());
View Full Code Here

        expect(mockJizzStationDao.getPrimaryStation()).andReturn(mockStation);
        replay(mockJizzStationDao);

        GetSettingsResult result = getSettingsHandler.execute(
                new GetSettingsAction(), null);

        assertEquals(mockStation.getName(), result.getSettings()
                .getStationName());
        assertEquals(mockStation.getBroadcastSchedule(), result.getSettings()
                .getBroadcastSchedule());
View Full Code Here

TOP

Related Classes of com.totalchange.jizz.web.shared.admin.GetSettingsAction

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.