use of android.icu.dev.test.TestDataModule.DataMap in project j2objc by google.
the class DataDrivenCalendarTest method calendarTest.
/* (non-Javadoc)
* @see android.icu.dev.test.ModuleTest#processModules()
*/
@Test
@Parameters(method = "getTestData")
public void calendarTest(TestDataPair pair) {
TestData td = pair.td;
DataMap settings = pair.dm;
String type = settings.getString("Type");
if (type.equals("convert_fwd")) {
testConvert(td, settings, true);
} else if (type.equals("convert_rev")) {
testConvert(td, settings, false);
} else if (type.equals("ops")) {
testOps(td, settings);
} else {
errln("Unknown type: " + type);
}
}
Aggregations