Examples of SeyrenConfig


Examples of com.seyren.core.util.config.SeyrenConfig

    @Rule
    public ClientDriverRule clientDriver = new ClientDriverRule();
   
    @Before
    public void before() {
        seyrenConfig = new SeyrenConfig();
        notificationService = new HipChatNotificationService(seyrenConfig, clientDriver.getBaseUrl());
    }
View Full Code Here

Examples of com.seyren.core.util.config.SeyrenConfig

   
    private EmailHelper emailHelper;
   
    @Before
    public void before() {
        emailHelper = new VelocityEmailHelper(new SeyrenConfig());
    }
View Full Code Here

Examples of com.seyren.core.util.config.SeyrenConfig

       
    }

    @Test
    public void templateLocationShouldBeConfigurable() {
        SeyrenConfig mockConfiguration = mock(SeyrenConfig.class);
        when(mockConfiguration.getEmailTemplateFileName()).thenReturn("test-email-template.vm");
        EmailHelper emailHelper = new VelocityEmailHelper(mockConfiguration);
        String body = emailHelper.createBody(null, null, null);
        assertThat(body, containsString("Test content."));
    }
View Full Code Here

Examples of com.seyren.core.util.config.SeyrenConfig

        System.clearProperty("GRAPHITE_PASSWORD");
    }
   
    private SeyrenConfig seyrenConfig(String graphiteUrl) {
        System.setProperty("GRAPHITE_URL", graphiteUrl);
        return new SeyrenConfig();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.