use of com.axway.ats.harness.config.TestBox in project ats-framework by Axway.
the class Test_TestBox method testDbUserEmpty.
@Test(expected = NullOrEmptyConfigurationPropertyException.class)
public void testDbUserEmpty() throws NullOrEmptyConfigurationPropertyException {
TestBox testBox = new TestBox();
testBox.setDbUser(ONLY_SPACE_STR);
}
use of com.axway.ats.harness.config.TestBox in project ats-framework by Axway.
the class Test_TestBox method testAdminPassEmpty.
// Code expects not null. Possible misbehavior - why pass should not be null
@Test(expected = NullOrEmptyConfigurationPropertyException.class)
public void testAdminPassEmpty() throws NullOrEmptyConfigurationPropertyException {
TestBox testBox = new TestBox();
testBox.setAdminPass(ONLY_SPACE_STR);
}
use of com.axway.ats.harness.config.TestBox in project ats-framework by Axway.
the class Test_TestBox method testDbPortTooHigh.
@Test(expected = IllegalArgumentException.class)
public void testDbPortTooHigh() throws IllegalArgumentException {
TestBox testBox = new TestBox();
testBox.setDbPort(TOO_HIGH_PORT_NUMBER_STR);
}
use of com.axway.ats.harness.config.TestBox in project ats-framework by Axway.
the class Test_TestBox method testHostEmpty.
@Test(expected = NullOrEmptyConfigurationPropertyException.class)
public void testHostEmpty() throws NullOrEmptyConfigurationPropertyException {
TestBox testBox = new TestBox();
// test trim too
testBox.setHost(ONLY_SPACE_STR);
}
use of com.axway.ats.harness.config.TestBox in project ats-framework by Axway.
the class Test_TestBox method testDbPortNotANumber.
@Test(expected = IllegalArgumentException.class)
public void testDbPortNotANumber() throws IllegalArgumentException {
TestBox testBox = new TestBox();
testBox.setDbPort(NOT_A_NUMBER_PORT_STR);
}
Aggregations