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

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


            settings.setBroadcastSchedule(station.getBroadcastSchedule());
            settings.setSmtpServerHost(station.getSmtpServerHost());
            settings.setSmtpServerPort(station.getSmtpServerPort());
        }

        GetSettingsResult result = new GetSettingsResult();
        result.setSettings(settings);
        logger.trace("Returning server settings {}", result);
        return result;
    }
View Full Code Here


    @Test
    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());

        verify(mockJizzStationDao);
    }
View Full Code Here

        mockStation.setUrl("http://awesome/");

        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());
        assertEquals(mockStation.getUrl(), result.getSettings().getStationUrl());

        verify(mockJizzStationDao);
    }
View Full Code Here

TOP

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

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.