Package com.javaeye.jert.service

Examples of com.javaeye.jert.service.ExportImportService.importFromXml()


    private static final String sql = "select * from user where name = #name#";

    public void testSingleExportImport() {
        ExportImportService service = getService();
        String xml = service.exportToXml(getReportDefintion());
        ReportDefinition rd = service.importFromXml(xml)[0];
        assertReportDefinition(rd);
    }
   
    private void assertReportDefinition(ReportDefinition rd) {
        assertEquals(name, rd.getName());
View Full Code Here


        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]);
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.