use of org.kie.workbench.common.dmn.client.widgets.grid.model.ExpressionEditorChanged in project kie-wb-common by kiegroup.
the class DecisionNavigatorObserverTest method testOnNestedElementAdded.
@Test
public void testOnNestedElementAdded() {
observer.init(presenter);
observer.onNestedElementAdded(new ExpressionEditorChanged(uuid));
verify(presenter).refresh();
}
use of org.kie.workbench.common.dmn.client.widgets.grid.model.ExpressionEditorChanged in project kie-wb-common by kiegroup.
the class DMNElementsSynchronizerTest method testOnExpressionEditorChanged.
@Test
public void testOnExpressionEditorChanged() {
final ExpressionEditorChanged event = mock(ExpressionEditorChanged.class);
final String id = "id";
final Node node = mock(Node.class);
final Optional<Node> nodeOptional = Optional.of(node);
when(event.getNodeUUID()).thenReturn(id);
doReturn(nodeOptional).when(synchronizer).getNode(id);
doNothing().when(synchronizer).synchronizeFromNode(nodeOptional);
synchronizer.onExpressionEditorChanged(event);
verify(synchronizer).getNode(id);
verify(synchronizer).synchronizeFromNode(nodeOptional);
}
Aggregations