// if only boundary values are of interest but there are no boundaries -> one random value
if(m_bSelectValuesOnlyAtBoundaries &&
(oVTRange.getMinValue().isMinimum() && oVTRange.isMinIncluded() &&
(oVTRange.getMaxValue().isMaximum() && oVTRange.isMaxIncluded()))) {
ValueType oRndValue = oVTRange.getValidRandomValue();
io_colValues.add(new TestCaseValidValue(oRndValue.toString()));
}
// random values: only if random values are allowed or no boundary exists
else if(!m_bSelectValuesOnlyAtBoundaries ||
(oVTRange.getMinValue().isMinimum() && oVTRange.isMinIncluded() &&
(oVTRange.getMaxValue().isMaximum() && oVTRange.isMaxIncluded()))) {
for(int i = 0; i < Configuration.getNumberOfRandomElementsPerDomain(); ++i) {
ValueType oRndValue = oVTRange.getValidRandomValue();
io_colValues.add(new TestCaseValidValue(oRndValue.toString()));
}
}
if(!(oVTRange.getMinValue().isMinimum() && oVTRange.isMinIncluded() &&
(oVTRange.getMaxValue().isMaximum() && oVTRange.isMaxIncluded()))) {
// add value for lower boundary (only if it is not the absolute minimum)
if(m_bSelectValuesAlsoAtAbsoluteBoundaries ||
!(oVTRange.getMinValue().isMinimum() && oVTRange.isMinIncluded())) {
if(oVTRange.isMinIncluded())
{
io_colValues.add(
new TestCaseValidValue(
oVTRange.getMinValue().toString()));
}
else
{
OrderedValueType oTmp = oVTRange.getMinValue().getUpperValueMinDistance();
io_colValues.add(new TestCaseValidValue(oTmp.toString()));
}
// if(!m_bSelectValuesOnlyAtBoundaries &&
// oVTRange.getMaxValue().isMaximum()) {
// ValueType oTmp = oVTRange.getValidRandomValue();
// io_colValues.add(new TestCaseValidValue(oTmp.toString()));
// }
}
// add value for upper boundary (only if it is not the absolute maximum)
if(m_bSelectValuesAlsoAtAbsoluteBoundaries ||
!(oVTRange.getMaxValue().isMaximum() && oVTRange.isMaxIncluded())) {
if(oVTRange.isMaxIncluded())
{
io_colValues.add(new TestCaseValidValue(oVTRange.getMaxValue().toString()));
}
else
{
OrderedValueType oTmp = oVTRange.getMaxValue().getLowerValueMinDistance();
io_colValues.add(new TestCaseValidValue(oTmp.toString()));
}
// if(!m_bSelectValuesOnlyAtBoundaries &&
// oVTRange.getMinValue().isMinimum()) {
// ValueType oTmp = oVTRange.getValidRandomValue();
// io_colValues.add(new TestCaseValidValue(oTmp.toString()));