Search in sources :

Example 1 with MessagesBox

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

the class Test_CommonConfigurator method messageBoxProperties.

@Test
public void messageBoxProperties() throws ConfigurationException {
    CommonConfigurator testDataConfigurator = CommonConfigurator.getInstance();
    testDataConfigurator.registerConfigFile(configFile1.getAbsolutePath());
    MessagesBox msgBox = testDataConfigurator.getMessagesBox("axway");
    assertEquals(MESSAGEBOX_HOST, msgBox.getHost());
    assertEquals(MESSAGEBOX_DBNAME, msgBox.getDbName());
    assertEquals(MESSAGEBOX_DBUSER, msgBox.getDbUser());
    assertEquals(MESSAGEBOX_DBPASS, msgBox.getDbPass());
    assertEquals(MESSAGEBOX_DBTABLE, msgBox.getDbTable());
}
Also used : MessagesBox(com.axway.ats.harness.config.MessagesBox) 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 MessagesBox (com.axway.ats.harness.config.MessagesBox)1 Test (org.junit.Test)1