@Test public void applyLayoutOverrideExistingLayout() { when(layoutService.hasLayoutInformation(graph)).thenReturn(true); final LayoutHelper helper = new LayoutHelper(layoutService); helper.applyLayout(diagram, layoutExecutor, true); verify(layoutExecutor).applyLayout(any(), any()); }
public void applyLayout(final Diagram diagram, final LayoutExecutor layoutExecutor) { applyLayout(diagram, layoutExecutor, false); }
LayoutHelper { public void applyLayout(final Diagram diagram, final LayoutExecutor layoutExecutor) { applyLayout(diagram, layoutExecutor, false); } }
LayoutHelper { public void applyLayout(final Diagram diagram, final LayoutExecutor layoutExecutor) { applyLayout(diagram, layoutExecutor, false); } @Inject  LayoutHelper(final LayoutService layoutService); }
LayoutHelper { public void applyLayout(final Diagram diagram, final LayoutExecutor layoutExecutor) { applyLayout(diagram, layoutExecutor, false); } @Inject  LayoutHelper(final LayoutService layoutService); void applyLayout(final Diagram diagram, final LayoutExecutor layoutExecutor); void applyLayout(final Diagram diagram,
                            final LayoutExecutor layoutExecutor,
                            final boolean overrideCurrentLayout); LayoutService getLayoutService(); }
LayoutHelper { public void applyLayout(final Diagram diagram, final LayoutExecutor layoutExecutor) { applyLayout(diagram, layoutExecutor, false); } @Inject  LayoutHelper(final LayoutService layoutService); void applyLayout(final Diagram diagram, final LayoutExecutor layoutExecutor); void applyLayout(final Diagram diagram,
                            final LayoutExecutor layoutExecutor,
                            final boolean overrideCurrentLayout); LayoutService getLayoutService();  }