use of com.axway.ats.harness.config.TestBox 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();
}
}
use of com.axway.ats.harness.config.TestBox in project ats-framework by Axway.
the class Test_TestBox method testDbNameNull.
@Test(expected = NullOrEmptyConfigurationPropertyException.class)
public void testDbNameNull() throws NullOrEmptyConfigurationPropertyException {
TestBox testBox = new TestBox();
testBox.setDbName(null);
}
use of com.axway.ats.harness.config.TestBox in project ats-framework by Axway.
the class Test_TestBox method testDbUserNull.
@Test(expected = NullOrEmptyConfigurationPropertyException.class)
public void testDbUserNull() throws NullOrEmptyConfigurationPropertyException {
TestBox testBox = new TestBox();
testBox.setDbUser(null);
}
use of com.axway.ats.harness.config.TestBox in project ats-framework by Axway.
the class Test_TestBox method testDbPortNegativeInteger.
@Test(expected = IllegalArgumentException.class)
public void testDbPortNegativeInteger() throws IllegalArgumentException {
TestBox testBox = new TestBox();
testBox.setDbPort(NEGATIVE_NUMBER_FOR_PORT_STR);
}
use of com.axway.ats.harness.config.TestBox in project ats-framework by Axway.
the class Test_TestBox method testAdminUserNull.
@Test(expected = NullOrEmptyConfigurationPropertyException.class)
public void testAdminUserNull() throws NullOrEmptyConfigurationPropertyException {
TestBox testBox = new TestBox();
testBox.setAdminUser(null);
}
Aggregations