Example #1
0
  public static ECReportGroupListMember createECReportGroupListMember(
      String epc, String rawDec, String rawHex, String tag) {

    // create report group member
    ECReportGroupListMember member = new ECReportGroupListMember();

    // set parameter
    member.setEpc(new EPC(epc));
    member.setRawDecimal(new EPC(rawDec));
    member.setRawHex(new EPC(rawHex));
    member.setTag(new EPC(tag));

    return member;
  }
Example #2
0
  public static void assertEquals(
      ECReportGroupListMember expected, ECReportGroupListMember actual) {

    if (expected == null || actual == null) {
      if (expected == null && actual == null) {
        return;
      } else {
        throw new AssertionFailedError();
      }
    }
    assertEquals(expected.getEpc(), actual.getEpc());
    assertEquals(expected.getRawDecimal(), actual.getRawDecimal());
    assertEquals(expected.getRawHex(), actual.getRawHex());
    assertEquals(expected.getTag(), actual.getTag());
    assertEquals(expected.getAny(), actual.getAny());
    assertEquals(expected.getExtension(), actual.getExtension());
  }