boolean useDate = false;
for (Iterator iter = testData.getDataIterator(); iter.hasNext();) {
++n;
DataMap currentCase = (DataMap) iter.next();
String caseString = "[case "+n+"]";
// build to calendar
// Headers { "locale","from","operation","params","to" }
// #1 locale
String param = "locale";
String locale;
String testSetting = currentCase.getString(param);
locale = testSetting;
ULocale loc = new ULocale(locale);
Calendar fromCalendar = Calendar.getInstance(loc);
fromSet.clear();
// #2 'from' info
param = "from";
String from = testSetting=currentCase.getString(param);
if(from.startsWith(kMILLIS)){
useDate = true;
fromDate = Long.parseLong(from.substring(kMILLIS.length()));
}else{
fromSet.parseFrom(testSetting);
}
// System.err.println("fromset: ["+testSetting+"] >> " + fromSet);
// #4 'operation' info
param = "operation";
String operation = testSetting=currentCase.getString(param);
paramsSet.clear();
// #3 'params' info
param = "params";
String paramsData = testSetting = currentCase.getString(param);
paramsSet.parseFrom(paramsData); // parse with inheritance.
// System.err.println("paramsSet: ["+testSetting+"] >> " + paramsSet);
toSet.clear();
// #4 'to' info
param = "to";
String to = testSetting=currentCase.getString(param);
if(to.startsWith(kMILLIS)){
useDate = true;
toDate = Long.parseLong(to.substring(kMILLIS.length()));
}else{
toSet.parseFrom(testSetting, fromSet);