use of com.axway.ats.harness.config.CommonConfigurator in project ats-framework by Axway.
the class Test_CommonConfigurator method messageBoxNegative.
@Test(expected = ConfigurationException.class)
public void messageBoxNegative() throws ConfigurationException {
CommonConfigurator testDataConfigurator = CommonConfigurator.getInstance();
testDataConfigurator.registerConfigFile(configFile1.getAbsolutePath());
testDataConfigurator.getMessagesBox("INVALID_MESSAGE_BOX");
}
use of com.axway.ats.harness.config.CommonConfigurator in project ats-framework by Axway.
the class Test_CommonConfigurator method registerConfigFileNegative.
@Test(expected = ConfigSourceDoesNotExistException.class)
public void registerConfigFileNegative() throws ConfigurationException {
CommonConfigurator testDataConfigurator = CommonConfigurator.getInstance();
testDataConfigurator.registerConfigFile("dasdasd");
}
use of com.axway.ats.harness.config.CommonConfigurator in project ats-framework by Axway.
the class Test_CommonConfigurator method mailServerNegative.
@Test(expected = ConfigurationException.class)
public void mailServerNegative() throws ConfigurationException {
CommonConfigurator testDataConfigurator = CommonConfigurator.getInstance();
testDataConfigurator.registerConfigFile(configFile1.getAbsolutePath());
testDataConfigurator.getMailServer("INVALID_MAIL_SERVER");
}
use of com.axway.ats.harness.config.CommonConfigurator in project ats-framework by Axway.
the class Test_CommonConfigurator method testGetTestBoxes.
@Test
public void testGetTestBoxes() {
CommonConfigurator testDataConfigurator = CommonConfigurator.getInstance();
testDataConfigurator.registerConfigFile(configFile1.getAbsolutePath());
List<TestBox> testBoxes = testDataConfigurator.getTestBoxes();
if (testBoxes == null || testBoxes.size() != 2) {
throw new AssertionFailedError();
}
}
Aggregations