Пример #1
0
  public static ECSpec createECSpec() {

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

    // set parameters
    spec.setBoundarySpec(createECBoundarySpec());
    spec.setLogicalReaders(LOGICAL_READER_NAMES);
    spec.setReportSpecs(createECReportSpecs());
    spec.setIncludeSpecInReports(INCLUDE_SPEC_IN_REPORTS);

    return spec;
  }
Пример #2
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());
  }