Exemplo n.º 1
0
  public static void assertEquals(ECSpec expected, ECSpec actual) {

    if (expected == null || actual == null) {
      if (expected == null && actual == null) {
        return;
      } else {
        throw new AssertionFailedError();
      }
    }
    assertEquals(expected.getAny(), actual.getAny());
    assertEquals(expected.getBoundarySpec(), actual.getBoundarySpec());
    assertEquals(expected.getCreationDate(), actual.getCreationDate());
    assertEquals(expected.getExtension(), actual.getExtension());
    assertEquals(expected.getLogicalReaders(), actual.getLogicalReaders());
    assertEquals(expected.getReportSpecs(), actual.getReportSpecs());
    assertEquals(expected.getSchemaVersion(), actual.getSchemaVersion());
  }
Exemplo n.º 2
0
  public static ECSpec createECSpec() {

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

    // set parameters
    spec.setBoundarySpec(createECBoundarySpec());
    spec.getLogicalReaders().getLogicalReader().addAll(LOGICAL_READER_NAMES);
    spec.setReportSpecs(new ECSpec.ReportSpecs());
    spec.getReportSpecs().getReportSpec().addAll(createECReportSpecs());
    spec.setIncludeSpecInReports(INCLUDE_SPEC_IN_REPORTS);

    return spec;
  }