Example #1
0
  public static ECBoundarySpec createECBoundarySpec() {

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

    // set duration
    spec.setDuration(getECTimeInMS(DURATION));

    // set repeat period
    spec.setRepeatPeriod(getECTimeInMS(REPEAT_PERIOD));

    // set stabel set interval
    spec.setStableSetInterval(getECTimeInMS(STABLE_SET_INTERVAL));

    // set start trigger
    spec.setStartTrigger(START_TRIGGER);

    // set stop trigger
    spec.setStopTrigger(STOP_TRIGGER);

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

    if (expected == null || actual == null) {
      if (expected == null && actual == null) {
        return;
      } else {
        throw new AssertionFailedError();
      }
    }
    assertEquals(expected.getAny(), actual.getAny());
    assertEquals(expected.getDuration(), actual.getDuration());
    assertEquals(expected.getExtension(), actual.getExtension());
    assertEquals(expected.getRepeatPeriod(), actual.getRepeatPeriod());
    assertEquals(expected.getStableSetInterval(), actual.getStableSetInterval());
    assertEquals(expected.getStartTrigger(), actual.getStartTrigger());
    assertEquals(expected.getStopTrigger(), actual.getStopTrigger());
  }