@Test public void testRefreshView() throws Exception { final GuidedDecisionTableAccordionItem.Type type = GuidedDecisionTableAccordionItem.Type.CONDITION; final String title = "title"; final Widget widget = mock(Widget.class); when(item.getType()).thenReturn(type); when(item.getTitle()).thenReturn(title); when(item.getContent()).thenReturn(widget); item.refreshView(); verify(view).setItemId(anyString()); verify(view).setTitle(title); verify(view).setContent(widget); }
void refreshView() { view.setTitle(getTitle()); view.setItemId(getItemId()); view.setContent(getContent()); view.setParentId(getParentId()); }
GuidedDecisionTableAccordionItem { void refreshView() { view.setTitle(getTitle()); view.setItemId(getItemId()); view.setContent(getContent()); view.setParentId(getParentId()); } }
GuidedDecisionTableAccordionItem { void refreshView() { view.setTitle(getTitle()); view.setItemId(getItemId()); view.setContent(getContent()); view.setParentId(getParentId()); } @Inject  GuidedDecisionTableAccordionItem(final GuidedDecisionTableAccordionItem.View view,
                                            final TranslationService translationService); }
GuidedDecisionTableAccordionItem { void refreshView() { view.setTitle(getTitle()); view.setItemId(getItemId()); view.setContent(getContent()); view.setParentId(getParentId()); } @Inject  GuidedDecisionTableAccordionItem(final GuidedDecisionTableAccordionItem.View view,
                                            final TranslationService translationService); @PostConstruct void setup(); GuidedDecisionTableAccordionItem.View getView(); void init(final String parentId,
                     final Type type,
                     final Widget content); Type getType(); void setOpen(final boolean isOpen); }
GuidedDecisionTableAccordionItem { void refreshView() { view.setTitle(getTitle()); view.setItemId(getItemId()); view.setContent(getContent()); view.setParentId(getParentId()); } @Inject  GuidedDecisionTableAccordionItem(final GuidedDecisionTableAccordionItem.View view,
                                            final TranslationService translationService); @PostConstruct void setup(); GuidedDecisionTableAccordionItem.View getView(); void init(final String parentId,
                     final Type type,
                     final Widget content); Type getType(); void setOpen(final boolean isOpen);  }