ListGroupItemViewImpl implements ListGroupItemView { @Override public void closeRow() { listGroupItemHeader.removeClassName(LIST_VIEW_PF_EXPAND_ACTIVE); listGroupItemContainer.addClassName(HIDDEN); faAngleRight.removeClassName(FA_ANGLE_DOWN); }  @Override Widget asWidget(); @Override String getActualClassName(); @EventHandler("listGroupElement") void onFullClassNameClick(ClickEvent event); @EventHandler("faAngleRight") void onFaAngleRightClick(ClickEvent event); @Override void init(Presenter presenter); @Override void setToExpand(boolean toExpand); @Override boolean isToExpand(); @Override void unselect(); @Override void showCheck(boolean show); @Override boolean isCheckShown(); @Override void setFactName(String factName); @Override void setFactNameAndType(String factName, String factType); @Override void setParentPath(String parentPath); @Override String getParentPath(); @Override String getFactName(); @Override String getFactType(); @Override void addFactField(LIElement fieldElement); @Override void addExpandableFactField(DivElement fieldElement); @Override DivElement getListGroupExpansion(); DivElement getListGroupItem(); @Override void closeRow(); @Override void expandRow(); @Override boolean isShown(); @Override void setInstanceAssigned(boolean instanceAssigned); @Override boolean isInstanceAssigned(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final String LIST_VIEW_PF_EXPAND_ACTIVE; }
@Test public void closeRow() { listGroupItemViewSpy.closeRow(); verify(listGroupItemHeaderMock, times(1)).removeClassName(eq(LIST_VIEW_PF_EXPAND_ACTIVE)); verify(listGroupItemContainerMock, times(1)).addClassName(eq(HIDDEN)); verify(faAngleRightMock, times(1)).removeClassName(eq(FA_ANGLE_DOWN)); }