assertEquals(QueryBuilder.QUERY_TYPE_SIMPLE_PARAMETER, rd.getQueryType());
assertEquals(1, rd.getParameterDefinitions().size());
}
public void testAllExportImport() {
ExportImportService service = getService();
Database db = new Database();
db.addReportDefinition(getReportDefintion());
db.addReportDefinition(getReportDefintion());
String xml = service.exportAllToXml(db);
ReportDefinition[] rds = service.importFromXml(xml);
assertEquals(2, rds.length);
assertReportDefinition(rds[0]);
assertReportDefinition(rds[1]);
}