コード例 #1
0
ファイル: RemoveTest.java プロジェクト: NCIP/psc
  @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
ファイル: RemoveTest.java プロジェクト: NCIP/psc
  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");
  }