use of com.axway.ats.harness.config.TestBox in project ats-framework by Axway.
the class Test_CommonConfigurator method unknownProperty.
@Test
public void unknownProperty() throws ConfigurationException {
CommonConfigurator testDataConfigurator = CommonConfigurator.getInstance();
testDataConfigurator.registerConfigFile(unknownPropertyConfigFile.getAbsolutePath());
ConfigurationRepository.getInstance();
TestBox testboxUnknownProperty = testDataConfigurator.getTestBox("testboxUnknownProperty");
assertEquals("value1", testboxUnknownProperty.getProperty("someUnknownProperty"));
}
use of com.axway.ats.harness.config.TestBox in project ats-framework by Axway.
the class Test_TestBox method testDbPassEmpty.
// Code expects not null. Possible misbehavior - why pass should not be null
@Test(expected = NullOrEmptyConfigurationPropertyException.class)
public void testDbPassEmpty() throws NullOrEmptyConfigurationPropertyException {
TestBox testBox = new TestBox();
testBox.setDbPass(ONLY_SPACE_STR);
}
use of com.axway.ats.harness.config.TestBox in project ats-framework by Axway.
the class Test_TestBox method testDbPortNull.
@Test(expected = NullOrEmptyConfigurationPropertyException.class)
public void testDbPortNull() throws NullOrEmptyConfigurationPropertyException {
TestBox testBox = new TestBox();
testBox.setDbPort(null);
}
use of com.axway.ats.harness.config.TestBox in project ats-framework by Axway.
the class Test_TestBox method testHostNull.
@Test(expected = NullOrEmptyConfigurationPropertyException.class)
public void testHostNull() throws NullOrEmptyConfigurationPropertyException {
TestBox testBox = new TestBox();
testBox.setHost(null);
}
use of com.axway.ats.harness.config.TestBox in project ats-framework by Axway.
the class Test_TestBox method testDbTypeNull.
@Test(expected = NullOrEmptyConfigurationPropertyException.class)
public void testDbTypeNull() throws NullOrEmptyConfigurationPropertyException {
TestBox testBox = new TestBox();
testBox.setDbType(null);
}
Aggregations