Search in sources :

Example 1 with MailServer

use of com.axway.ats.harness.config.MailServer in project ats-framework by Axway.

the class Test_CommonConfigurator method mailServerProperties.

@Test
public void mailServerProperties() throws ConfigurationException {
    CommonConfigurator testDataConfigurator = CommonConfigurator.getInstance();
    testDataConfigurator.registerConfigFile(configFile1.getAbsolutePath());
    MailServer mailServer = testDataConfigurator.getMailServer("exchange");
    assertEquals(MAILSERVER_HOST, mailServer.getHost());
    assertEquals(MAILSERVER_DEFAULTPASS, mailServer.getDefaultPass());
}
Also used : MailServer(com.axway.ats.harness.config.MailServer) CommonConfigurator(com.axway.ats.harness.config.CommonConfigurator) BaseTest(com.axway.ats.harness.BaseTest) Test(org.junit.Test)

Aggregations

BaseTest (com.axway.ats.harness.BaseTest)1 CommonConfigurator (com.axway.ats.harness.config.CommonConfigurator)1 MailServer (com.axway.ats.harness.config.MailServer)1 Test (org.junit.Test)1