Examples of ExportImportService


Examples of com.javaeye.jert.service.ExportImportService

public class ExportImportServiceTest extends TestCase {
    private static final String name = "test report one";
    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);
    }
View Full Code Here

Examples of com.javaeye.jert.service.ExportImportService

        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]);
    }
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.