@Test public void testSynchronizeDecisionServiceNode() { final DecisionService from = mock(DecisionService.class); final DecisionService to = mock(DecisionService.class); final InformationItemPrimary variable = mock(InformationItemPrimary.class); when(from.getVariable()).thenReturn(variable); synchronizer.synchronizeDecisionServiceNode(from, to); verify(to).setVariable(variable); }
void synchronizeDecisionServiceNode(final DecisionService from, final DecisionService to) { to.setVariable(from.getVariable()); }
DMNElementsSynchronizer { void synchronizeDecisionServiceNode(final DecisionService from, final DecisionService to) { to.setVariable(from.getVariable()); } }
DMNElementsSynchronizer { void synchronizeDecisionServiceNode(final DecisionService from, final DecisionService to) { to.setVariable(from.getVariable()); } @Inject  DMNElementsSynchronizer(final DMNDiagramsSession dmnDiagramsSession,
                                   final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent,
                                   final DMNGraphUtils graphUtils,
                                   final NodeTextSetter nodeTextSetter); }
DMNElementsSynchronizer { void synchronizeDecisionServiceNode(final DecisionService from, final DecisionService to) { to.setVariable(from.getVariable()); } @Inject  DMNElementsSynchronizer(final DMNDiagramsSession dmnDiagramsSession,
                                   final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent,
                                   final DMNGraphUtils graphUtils,
                                   final NodeTextSetter nodeTextSetter); void onExpressionEditorChanged(final @Observes ExpressionEditorChanged event); void onPropertyChanged(final @Observes FormFieldChanged event); void synchronizeElementsFrom(final DRGElement drgElement); void synchronizeFromNode(final Optional<Node> node); }
DMNElementsSynchronizer { void synchronizeDecisionServiceNode(final DecisionService from, final DecisionService to) { to.setVariable(from.getVariable()); } @Inject  DMNElementsSynchronizer(final DMNDiagramsSession dmnDiagramsSession,
                                   final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent,
                                   final DMNGraphUtils graphUtils,
                                   final NodeTextSetter nodeTextSetter); void onExpressionEditorChanged(final @Observes ExpressionEditorChanged event); void onPropertyChanged(final @Observes FormFieldChanged event); void synchronizeElementsFrom(final DRGElement drgElement); void synchronizeFromNode(final Optional<Node> node);  }