Examples of ElementMatcher


Examples of org.pentaho.reporting.engine.classic.core.testsupport.selector.ElementMatcher

    band.addElement(tableRow);

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, band, false, false);
    //ModelPrinter.print(logicalPageBox);

    final NodeMatcher matcher = new ChildMatcher(new ElementMatcher("TableCellRenderBox"));
    final RenderNode[] all = MatchFactory.matchAll(logicalPageBox, matcher);

    assertEquals(1, all.length);
    for (final RenderNode renderNode : all)
    {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.testsupport.selector.ElementMatcher

    band.addElement(tableBody);

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, band, false, false);
    //ModelPrinter.INSTANCE.print(logicalPageBox);

    final NodeMatcher matcher = new ChildMatcher(new ElementMatcher("TableCellRenderBox"));
    final RenderNode[] all = MatchFactory.matchAll(logicalPageBox, matcher);

    assertEquals(1, all.length);
    for (final RenderNode renderNode : all)
    {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.testsupport.selector.ElementMatcher

    band.addElement(tableBody);

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, band, false, false);
    //ModelPrinter.INSTANCE.print(logicalPageBox);

    final NodeMatcher matcher = new ChildMatcher(new ElementMatcher("TableCellRenderBox"));
    final RenderNode[] all = MatchFactory.matchAll(logicalPageBox, matcher);

    assertEquals(1, all.length);
    for (final RenderNode renderNode : all)
    {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.testsupport.selector.ElementMatcher

    band.addElement(tableCell);

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, band, false, false);
    //ModelPrinter.print(logicalPageBox);

    final NodeMatcher matcher = new ChildMatcher(new ElementMatcher("TableCellRenderBox"));
    final RenderNode[] all = MatchFactory.matchAll(logicalPageBox, matcher);

    assertEquals(1, all.length);
    for (final RenderNode renderNode : all)
    {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.testsupport.selector.ElementMatcher

    band.addElement(table);

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, band, false, false);
    //ModelPrinter.print(logicalPageBox);

    final NodeMatcher matcher = new ChildMatcher(new ElementMatcher("TableCellRenderBox"));
    final RenderNode[] all = MatchFactory.matchAll(logicalPageBox, matcher);

    final NodeMatcher childMatcher = new AndMatcher(new ElementMatcher("ParagraphRenderBox"), new AttributeMatcher("value"));
    assertEquals(6, all.length);
    for (final RenderNode renderNode : all)
    {
      final RenderNode node = MatchFactory.match(renderNode, childMatcher);
      assertNotNull(node);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.testsupport.selector.ElementMatcher

    MasterReport report = new MasterReport();
    report.getReportHeader().addElement(table);

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, report.getReportHeader());
    final RenderNode[] all = MatchFactory.matchAll(logicalPageBox, new ElementMatcher(ParagraphRenderBox.class));
    long positionY = 0;
    for (int i = 0; i < all.length; i += 1)
    {
      final RenderNode node = all[i];
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.testsupport.selector.ElementMatcher

    MasterReport report = new MasterReport();
    report.getReportHeader().addElement(table);

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, report.getReportHeader());
    //ModelPrinter.INSTANCE.print(logicalPageBox);
    final RenderNode[] all = MatchFactory.matchAll(logicalPageBox, new ElementMatcher(ParagraphRenderBox.class));
    assertEquals(StrictGeomUtility.toInternalValue(20), all[0].getHeight());
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.testsupport.selector.ElementMatcher

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, band, false, false);
    //ModelPrinter.print(logicalPageBox);

    final DescendantMatcher matcher = new DescendantMatcher
        (new ElementMatcher("TableCellRenderBox"));
    final RenderNode[] all = MatchFactory.matchAll(logicalPageBox, matcher);

    assertEquals(0, all.length);
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.testsupport.selector.ElementMatcher

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, band, false, false);
    //ModelPrinter.print(logicalPageBox);

    final DescendantMatcher matcher = new DescendantMatcher
        (new ElementMatcher("TableCellRenderBox"));
    final RenderNode[] all = MatchFactory.matchAll(logicalPageBox, matcher);

    assertEquals(0, all.length);
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.testsupport.selector.ElementMatcher

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, band, false, false);
    //ModelPrinter.print(logicalPageBox);

    final DescendantMatcher matcher = new DescendantMatcher
        (new ElementMatcher("TableCellRenderBox"));
    final RenderNode[] all = MatchFactory.matchAll(logicalPageBox, matcher);

    assertEquals(0, all.length);
  }
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.