AdditionalInfoPageView implements IsElement,
                                               AdditionalInfoPage.View { @Override public void showHeader() { header.setValue(page.getHeader() != null ? page.getHeader() : ""); headerFormItem.setHidden(false); } AdditionalInfoPageView(); @Inject  AdditionalInfoPageView(final TranslationService translationService,
                                  final DecisionTablePopoverUtils popoverUtils,
                                  final Input header,
                                  final Div headerFormItem,
                                  final Input hideColumn,
                                  final Input updateEngineWithChanges,
                                  final Input logicallyInsert); @PostConstruct void initPopovers(); @EventHandler("header") void onSelectHeader(final KeyUpEvent event); @EventHandler("hideColumn") void onSelectHideColumn(final ChangeEvent event); @EventHandler("logicallyInsert") void onSelectLogicallyInsert(final ChangeEvent event); @EventHandler("updateEngineWithChanges") void onSelectUpdateEngineWithChanges(final ChangeEvent event); @Override void init(final AdditionalInfoPage page); @Override void showHideColumn(final boolean isHidden); @Override void showHeader(); @Override void showLogicallyInsert(final boolean isLogicallyInsert); @Override void showUpdateEngineWithChanges(final boolean isUpdateEngine); @Override void showWarning(String message); @Override void hideWarning(); @Override void clear();  }
@Test public void testShowHeaderEmpty() throws Exception { view.showHeader(); verify(input).setValue(""); verify(headerFormItem).setHidden(false); }
@Test public void testShowHeaderNotEmpty() throws Exception { final String headerContent = "header content"; doReturn(headerContent).when(page).getHeader(); view.showHeader(); verify(input).setValue(headerContent); verify(headerFormItem).setHidden(false); }