Skip to content

Commit

Permalink
Cleanup test that highlights shared state between snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Ace Pace committed Jun 10, 2018
1 parent 3735f08 commit 4a27dcd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,14 @@ public void testEqualsSingleStepAssert() throws InterruptedException {
event_a = bprog.getEventSelectionStrategy().select(step2a.getStatements(), step2a.getExternalEvents(), possibleEvents_a).get();
event_b = bprog2.getEventSelectionStrategy().select(step2b.getStatements(), step2b.getExternalEvents(), possibleEvents_b).get();
BProgramSyncSnapshot step3a = step2a.triggerEvent(event_a.getEvent(), execSvcA, listeners);
assertFalse(step3a.isStateValid());
assertNotEquals(step3a, step2a);
assertTrue(step2a.isStateValid());
assertTrue(!step3a.isStateValid());
BProgramSyncSnapshot step3b = step2b.triggerEvent(event_b.getEvent(), execSvcB, listeners);
assertNotEquals(step3a, step3b);
assertNotEquals(step3a, step2a);
assertNotEquals(step3b, step2a);


}
}

0 comments on commit 4a27dcd

Please sign in to comment.