WorkbenchLayoutImpl implements WorkbenchLayout { void setFooterContents(List<Footer> footers) { DOMUtil.removeAllChildren(footerPanel); if (!footers.isEmpty()) { for (Footer f : footers) { footerPanel.appendChild(f.getElement()); } root.setFooterWidget(createWidgetFrom(footerPanel)); } } WorkbenchLayoutImpl(); @Inject  WorkbenchLayoutImpl(SyncBeanManager iocManager,
                               HeaderPanel root,
                               WorkbenchDragAndDropManager dndManager,
                               UberfireDocksContainer uberfireDocksContainer,
                               WorkbenchPickupDragController dragController,
                               Div headerPanel,
                               Div footerPanel); @Override HeaderPanel getRoot(); @Override HasWidgets getPerspectiveContainer(); @Override void onBootstrap(); @Override void onResize(); @Override void resizeTo(int width,
                         int height); @Override void maximize(final Widget w); @Override void maximize(final Widget w,
                         final Command callback); @Override void unmaximize(final Widget w); @Override void unmaximize(final Widget w,
                           final Command callback); @Override void setMarginWidgets(boolean isStandaloneMode,
                                 Set<String> headersToKeep); void addWorkbenchProfileCssClass(@Observes WorkbenchProfileCssClass workbenchProfileCssClass); static final String UF_MAXIMIZED_PANEL; static final String UF_ROOT_CSS_CLASS; }
@Test public void setFooterContentsTest() { Div footerPanel = workbenchLayout.getFooterPanel(); List<Footer> footers = Arrays.asList(footer1, footer2); workbenchLayout.setFooterContents(footers); verify(footerPanel, times(2)).appendChild(any()); verify(root).setFooterWidget(any()); }