@Test public void testOnPropertyChanged() { final FormFieldChanged event = mock(FormFieldChanged.class); final String id = "id"; final Node node = mock(Node.class); final Optional<Node> nodeOptional = Optional.of(node); when(event.getUuid()).thenReturn(id); doReturn(nodeOptional).when(synchronizer).getNode(id); doNothing().when(synchronizer).synchronizeFromNode(nodeOptional); synchronizer.onPropertyChanged(event); verify(synchronizer).getNode(id); verify(synchronizer).synchronizeFromNode(nodeOptional); }
public void onPropertyChanged(final @Observes FormFieldChanged event) { final Optional<Node> node = getNode(event.getUuid()); synchronizeFromNode(node); }
DMNElementsSynchronizer { public void onPropertyChanged(final @Observes FormFieldChanged event) { final Optional<Node> node = getNode(event.getUuid()); synchronizeFromNode(node); } }
DMNElementsSynchronizer { public void onPropertyChanged(final @Observes FormFieldChanged event) { final Optional<Node> node = getNode(event.getUuid()); synchronizeFromNode(node); } @Inject  DMNElementsSynchronizer(final DMNDiagramsSession dmnDiagramsSession,
                                   final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent,
                                   final DMNGraphUtils graphUtils,
                                   final NodeTextSetter nodeTextSetter); }
DMNElementsSynchronizer { public void onPropertyChanged(final @Observes FormFieldChanged event) { final Optional<Node> node = getNode(event.getUuid()); synchronizeFromNode(node); } @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 { public void onPropertyChanged(final @Observes FormFieldChanged event) { final Optional<Node> node = getNode(event.getUuid()); synchronizeFromNode(node); } @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);  }