@Test public void testGetScrollToThisItemCallback() { final int order = 42; when(enumerationItem.getOrder()).thenReturn(order); enumerationItem.getScrollToThisItemCallback().execute(); verify(dataTypeConstraintEnumeration).scrollToPosition(order); }
Command getScrollToThisItemCallback() { return () -> dataTypeConstraintEnumeration.scrollToPosition(getOrder()); }
DataTypeConstraintEnumerationItem { Command getScrollToThisItemCallback() { return () -> dataTypeConstraintEnumeration.scrollToPosition(getOrder()); } }
DataTypeConstraintEnumerationItem { Command getScrollToThisItemCallback() { return () -> dataTypeConstraintEnumeration.scrollToPosition(getOrder()); } @Inject  DataTypeConstraintEnumerationItem(final View view,
                                             final ConstraintPlaceholderHelper placeholderHelper); }
DataTypeConstraintEnumerationItem { Command getScrollToThisItemCallback() { return () -> dataTypeConstraintEnumeration.scrollToPosition(getOrder()); } @Inject  DataTypeConstraintEnumerationItem(final View view,
                                             final ConstraintPlaceholderHelper placeholderHelper); void setValue(final String newValue); String getValue(); int getOrder(); Element getElement(); void enableEditMode(); void disableEditMode(); void save(final String newValue); void remove(); void setDataTypeConstraintEnumeration(final DataTypeConstraintEnumeration dataTypeConstraintEnumeration); void setConstraintValueType(final String constraintValueType); void setOrder(final int order); }
DataTypeConstraintEnumerationItem { Command getScrollToThisItemCallback() { return () -> dataTypeConstraintEnumeration.scrollToPosition(getOrder()); } @Inject  DataTypeConstraintEnumerationItem(final View view,
                                             final ConstraintPlaceholderHelper placeholderHelper); void setValue(final String newValue); String getValue(); int getOrder(); Element getElement(); void enableEditMode(); void disableEditMode(); void save(final String newValue); void remove(); void setDataTypeConstraintEnumeration(final DataTypeConstraintEnumeration dataTypeConstraintEnumeration); void setConstraintValueType(final String constraintValueType); void setOrder(final int order);  }