Package org.pentaho.reporting.engine.classic.wizard.model

Examples of org.pentaho.reporting.engine.classic.wizard.model.WizardSpecification


    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(data, MasterReport.class);
    final MasterReport parsedReport = (MasterReport) directly.getResource();
    assertNotNull(parsedReport);

    final WizardSpecification specification =
        WizardProcessorUtil.loadWizardSpecification(report, report.getResourceManager());
    assertNotNull(specification);

    final GroupDefinition[] resultGroups = specification.getGroupDefinitions();
    assertEquals(3, resultGroups.length);
    assertEquals("group-field1", resultGroups[0].getField());
    assertEquals("group-field2", resultGroups[1].getField());
    assertEquals("group-field3", resultGroups[2].getField());
    assertEquals(GroupType.RELATIONAL, resultGroups[0].getGroupType());
    assertEquals(GroupType.CT_ROW, resultGroups[1].getGroupType());
    assertEquals(GroupType.CT_COLUMN, resultGroups[2].getGroupType());

    final DetailFieldDefinition[] resultDetails = specification.getDetailFieldDefinitions();
    assertEquals(3, resultDetails.length);
    assertEquals("detail-field1", resultDetails[0].getField());
    assertEquals("detail-field2", resultDetails[1].getField());
    assertEquals("detail-field3", resultDetails[2].getField());
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.wizard.model.WizardSpecification

Copyright © 2018 www.massapicom. 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.