break;
case JSON:
dataSet = new JsonDataSet(inputStream);
break;
default:
throw new DBUnitInitializationException("Unsupported data type " + format);
}
}
catch (Exception e)
{
throw new DBUnitInitializationException("Unable to load data set from given file: " + file, e);
}
return defineReplaceableExpressions(dataSet);
}