@Test public void testSynchronizeBaseDRGProperties() { final DRGElement from = mock(DRGElement.class); final DRGElement to = mock(DRGElement.class); final Description description = mock(Description.class); final DocumentationLinksHolder linksHolder = mock(DocumentationLinksHolder.class); final Name name = mock(Name.class); when(from.getDescription()).thenReturn(description); when(from.getLinksHolder()).thenReturn(linksHolder); when(from.getName()).thenReturn(name); synchronizer.synchronizeBaseDRGProperties(from, to); verify(to).setDescription(description); verify(to).setName(name); verify(to).setLinksHolder(linksHolder); }
void synchronizeBaseDRGProperties(final DRGElement from, final DRGElement to) { to.setDescription(from.getDescription()); to.setLinksHolder(from.getLinksHolder()); to.setName(from.getName()); }
DMNElementsSynchronizer { void synchronizeBaseDRGProperties(final DRGElement from, final DRGElement to) { to.setDescription(from.getDescription()); to.setLinksHolder(from.getLinksHolder()); to.setName(from.getName()); } }
DMNElementsSynchronizer { void synchronizeBaseDRGProperties(final DRGElement from, final DRGElement to) { to.setDescription(from.getDescription()); to.setLinksHolder(from.getLinksHolder()); to.setName(from.getName()); } @Inject  DMNElementsSynchronizer(final DMNDiagramsSession dmnDiagramsSession,
                                   final Event<RefreshDecisionComponents> refreshDecisionComponentsEvent,
                                   final DMNGraphUtils graphUtils,
                                   final NodeTextSetter nodeTextSetter); }
DMNElementsSynchronizer { void synchronizeBaseDRGProperties(final DRGElement from, final DRGElement to) { to.setDescription(from.getDescription()); to.setLinksHolder(from.getLinksHolder()); to.setName(from.getName()); } @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 synchronizeBaseDRGProperties(final DRGElement from, final DRGElement to) { to.setDescription(from.getDescription()); to.setLinksHolder(from.getLinksHolder()); to.setName(from.getName()); } @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);  }