示例#1
0
  public static void assertEquals(ECReportSpec expected, ECReportSpec actual) {

    if (expected == null || actual == null) {
      if (expected == null && actual == null) {
        return;
      } else {
        throw new AssertionFailedError();
      }
    }
    assertEquals(expected.getGroupSpec(), actual.getGroupSpec());
    assertEquals(expected.getAny(), actual.getAny());
    assertEquals(expected.getExtension(), actual.getExtension());
    assertEquals(expected.getFilterSpec(), actual.getFilterSpec());
    assertEquals(expected.getOutput(), actual.getOutput());
    assertEquals(expected.getReportName(), actual.getReportName());
    assertEquals(expected.getReportSet(), actual.getReportSet());
  }
示例#2
0
  public static ECReportSpec createECReportSpec() {

    // create spec
    ECReportSpec spec = new ECReportSpec();

    // set paramteters
    spec.setReportName(REPORT_NAME);
    spec.setReportOnlyOnChange(REPORT_ONLY_ON_CHANGE);
    spec.setReportIfEmpty(REPORT_IF_EMPTY);
    spec.setReportSet(createECReportSetSpec());
    spec.setFilterSpec(createECFilterSpec());
    spec.setGroupSpec(new ECGroupSpec());
    spec.getGroupSpec().getPattern().addAll(GROUP_PATTERNS);
    spec.setOutput(createECReportOutputSpec());

    return spec;
  }