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

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


            }
        } else {
            settings.setSmtpServerPort(-1);
        }

        SetSettingsAction action = new SetSettingsAction();
        action.setSettings(settings);

        loadingHandler.modal();
        dispatch.execute(action, new AsyncCallback<SetSettingsResult>() {
            @Override
            public void onSuccess(SetSettingsResult result) {
View Full Code Here


        expect(mockJizzDjServices.getCurrentDj()).andReturn(mockDj);
        mockJizzDjServices.addRole(mockDj, JizzDjRole.Roles.Administrator);

        replayAll();

        SetSettingsAction action = new SetSettingsAction();
        ServerSettings mockSettings = new ServerSettings();
        mockSettings.setStationName("Awesome Station");
        mockSettings.setStationUrl("http://awesome/");
        mockSettings.setBroadcastSchedule("30 0 * * * Mon");
        action.setSettings(mockSettings);

        setSettingsHandler.execute(action, null);

        verifyAll();
    }
View Full Code Here

        expect(mockJizzStationDao.createOrUpdateStation(mockStation))
                .andReturn(mockStation);

        replayAll();

        SetSettingsAction action = new SetSettingsAction();
        ServerSettings mockSettings = new ServerSettings();
        mockSettings.setStationName("Awesome Station");
        mockSettings.setStationUrl("http://awesome/");
        mockSettings.setBroadcastSchedule("30 0 * * * Mon");
        action.setSettings(mockSettings);

        setSettingsHandler.execute(action, null);
        assertEquals(mockSettings.getStationName(), mockStation.getName());
        assertEquals(mockSettings.getStationUrl(), mockStation.getUrl());
        assertEquals(mockSettings.getBroadcastSchedule(),
View Full Code Here

TOP

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

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.