Esempio n. 1
0
  public static ECReportOutputSpec createECReportOutputSpec() {

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

    // set parameters
    spec.setIncludeCount(INCLUDE_COUNT);
    spec.setIncludeEPC(INCLUDE_EPC);
    spec.setIncludeRawDecimal(INCLUDE_RAW_DECIMAL);
    spec.setIncludeRawHex(INCLUDE_RAW_HEX);
    spec.setIncludeTag(INCLUDE_TAG);

    return spec;
  }
Esempio n. 2
0
  public static void assertEquals(ECReportOutputSpec expected, ECReportOutputSpec actual) {

    if (expected == null || actual == null) {
      if (expected == null && actual == null) {
        return;
      } else {
        throw new AssertionFailedError();
      }
    }
    assertEquals(expected.isIncludeCount(), actual.isIncludeCount());
    assertEquals(expected.isIncludeEPC(), actual.isIncludeEPC());
    assertEquals(expected.isIncludeRawDecimal(), actual.isIncludeRawDecimal());
    assertEquals(expected.isIncludeRawHex(), actual.isIncludeRawHex());
    assertEquals(expected.isIncludeTag(), actual.isIncludeTag());
    assertEquals(expected.getAny(), actual.getAny());
    assertEquals(expected.getExtension(), actual.getExtension());
  }