KebabMenu implements IsElement { public void setDropPosition(final DropPosition position) { if (position == DropPosition.UP) { kebab.classList.remove("dropdown"); kebab.classList.add("dropup"); } else { kebab.classList.remove("dropup"); kebab.classList.add("dropdown"); } }  @Override HTMLElement getElement(); void addKebabItem(final HTMLLIElement item); void addSeparator(); void setItemsAlignment(final ItemsAlignment alignment); void setDropPosition(final DropPosition position);  }
@Test public void testDropPositionUp() { kebabMenu.setDropPosition(KebabMenu.DropPosition.UP); verify(kebab.classList).add("dropup"); verify(kebab.classList).remove("dropdown"); verifyNoMoreInteractions(kebab.classList); }
@Test public void testDropPositionDown() { kebabMenu.setDropPosition(KebabMenu.DropPosition.DOWN); verify(kebab.classList).remove("dropup"); verify(kebab.classList).add("dropdown"); verifyNoMoreInteractions(kebab.classList); }