コード例 #1
0
  @Override
  public void test() {
    super.test();

    numberOfPagesTest(3);

    columnTitleCountTest(column2, 3);
    columnTitleValueTest(column2, "Column2", "Column2", "Column2");
    columnTitleCountTest(column3, 3);
    columnTitleValueTest(column3, "Column3", "Column3", "Column3");
    columnTitleCountTest(column4, 3);
    columnTitleValueTest(column4, "Column4", "Column4", "Column4");

    elementCountTest("columnHeaderForGroup.column_field2.title1", 3);
    elementValueTest("columnHeaderForGroup.column_field2.title1", "Column2", "Column2", "Column2");
    elementCountTest("columnHeaderForGroup.column_field3.title1", 3);
    elementValueTest("columnHeaderForGroup.column_field3.title1", "Column3", "Column3", "Column3");
    elementCountTest("columnHeaderForGroup.column_field4.title1", 3);
    elementValueTest("columnHeaderForGroup.column_field4.title1", "Column4", "Column4", "Column4");

    elementCountTest("groupHeader.textField1", 2);
    elementValueTest("groupHeader.textField1", "header1", "header1");

    elementCountTest("groupFooter.textField1", 2);
    elementValueTest("groupFooter.textField1", "footer1", "footer1");

    elementCountTest("groupHeader.textField2", 3);
    elementValueTest("groupHeader.textField2", "header2", "header2", "header2");

    elementCountTest("groupFooter.textField2", 2);
    elementValueTest("groupFooter.textField2", "footer2", "footer2");

    subtotalCountTest(subtotal1, 1);
    subtotalValueTest(subtotal1, "1,225");
  }
コード例 #2
0
  @Override
  public void test() {
    super.test();

    numberOfPagesTest(1);
    elementCountTest("noData.textField1", 1);
    elementValueTest("noData.textField1", "Empty data");
  }
コード例 #3
0
  @Override
  public void test() {
    super.test();

    numberOfPagesTest(1);

    columnTitleCountTest(column1, 0);
    columnTitleCountTest(column2, 0);

    elementCountTest("columnHeaderForGroup.column_field2.title1", 1);
    elementValueTest("columnHeaderForGroup.column_field2.title1", "Column2");
  }
コード例 #4
0
  @Override
  public void test() {
    super.test();

    numberOfPagesTest(1);

    elementCountTest("detail.column_field11", 3);
    elementValueTest("detail.column_field11", "True", "False", "");

    elementCountTest("detail.column_field12", 3);
    elementValueTest("detail.column_field12", "True", "False", "False");

    testImage("detail.image1", 0);
    testImage("detail.image1", 1);
    Assert.assertNull((((JRPrintImage) getElementAt("detail.image1", 2)).getRenderable()));

    testImage("detail.image2", 0);
    testImage("detail.image2", 1);
    testImage("detail.image2", 2);
  }