/** * Helper method to allow the test framework to selectively bypass the BlackboardDeltaState. This * is necessary so that the test objects that are posted to the blackboard do not get included * into the BlackboardDeltaState. This way the BlackboardDeltaState will only contain the object * change actions that are posted in reaction to the test object. * * @return */ public void publishChange(Object parm1, Collection parm2, boolean bypassDelta) { if (!bypassDelta) { currentBlackboardDeltaState.add(new PublishAction(PublishAction.CHANGE, parm1)); } actualBlackboardService.publishChange(parm1, parm2); }
/** * Helper method to allow the test framework to selectively bypass the BlackboardDeltaState. This * is necessary so that the test objects that are posted to the blackboard do not get included * into the BlackboardDeltaState. This way the BlackboardDeltaState will only contain the object * remove actions that are posted in reaction to the test object. * * @return */ public void publishRemove(Object parm1, boolean bypassDelta) { if (!bypassDelta) { currentBlackboardDeltaState.add(new PublishAction(PublishAction.REMOVE, parm1)); } actualBlackboardService.publishRemove(parm1); }