Пример #1
0
  @Override
  protected void setUp() throws Exception {
    super.setUp();
    remove = new Remove();
    epoch = setId(5, Epoch.create("Treatment", "A", "B", "C"));
    ssa = setId(1, epoch.getStudySegments().get(0));
    ssb = setId(2, epoch.getStudySegments().get(1));
    ssc = setId(3, epoch.getStudySegments().get(2));
    epoch.getStudySegments().remove(ssc);

    delta = Delta.createDeltaFor(epoch);
  }
Пример #2
0
  public void testDeepEqualsWhenRemoveHasDifferentChild() throws Exception {
    Remove remove1 = Remove.create(setGridId("e1", Epoch.create("E1")));
    Remove remove2 = Remove.create(setGridId("e2", Epoch.create("E2")));

    assertDifferences(remove1.deepEquals(remove2), "for different child");
  }