Package com.cedarsolutions.server.service

Examples of com.cedarsolutions.server.service.ITemplateService


        GaeEmailUtils gaeEmailUtils = mock(GaeEmailUtils.class);
        service.setGaeEmailUtils(gaeEmailUtils);
        assertSame(gaeEmailUtils, service.getGaeEmailUtils());

        ITemplateService templateService = mock(ITemplateService.class);
        service.setTemplateService(templateService);
        assertSame(templateService, service.getTemplateService());
    }
View Full Code Here


    /** Test the afterPropertiesSet() method. */
    @Test public void testAfterPropertiesSet() throws Exception {
        GaeEmailService service = new GaeEmailService();
        GaeEmailUtils gaeEmailUtils = mock(GaeEmailUtils.class);
        ITemplateService templateService = mock(ITemplateService.class);

        service.setGaeEmailUtils(gaeEmailUtils);
        service.setTemplateService(templateService);
        service.afterPropertiesSet();

View Full Code Here

    /** Create a service instance, properly mocked for testing. */
    private static GaeEmailService createService() {
        GaeEmailService service = new GaeEmailService();
        GaeEmailUtils gaeEmailUtils = mock(GaeEmailUtils.class);
        ITemplateService templateService = mock(ITemplateService.class);

        service.setGaeEmailUtils(gaeEmailUtils);
        service.setTemplateService(templateService);
        service.afterPropertiesSet();

View Full Code Here

TOP

Related Classes of com.cedarsolutions.server.service.ITemplateService

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.