@Test public void shouldCreateWithItemId() { int itemId = 12; stubMenuItem = new StubMenuItem(itemId); assertThat(stubMenuItem.getItemId()).isEqualTo(itemId); }
@Override public int getItemId() { return itemId; }
StubMenuItem implements MenuItem { @Override public int getItemId() { return itemId; } }
StubMenuItem implements MenuItem { @Override public int getItemId() { return itemId; } StubMenuItem(Context context);  StubMenuItem(int itemId); }
StubMenuItem implements MenuItem { @Override public int getItemId() { return itemId; } StubMenuItem(Context context);  StubMenuItem(int itemId); static MenuItem create(Context context, StubMenuItemData stubMenuItemData); StubMenuItem setItemId(int itemId); @Override int getItemId(); @Override int getGroupId(); @Override int getOrder(); @Override StubMenuItem setTitle(CharSequence title); @Override StubMenuItem setTitle(int titleId); @Override CharSequence getTitle(); @Override StubMenuItem setTitleCondensed(CharSequence title); @Override CharSequence getTitleCondensed(); @Override StubMenuItem setIcon(Drawable icon); @Override StubMenuItem setIcon(int iconRes); @Override Drawable getIcon(); @Override StubMenuItem setIntent(Intent intent); @Override Intent getIntent(); @Override StubMenuItem setShortcut(char numericChar, char alphaChar); @Override StubMenuItem setNumericShortcut(char numericChar); @Override char getNumericShortcut(); @Override StubMenuItem setAlphabeticShortcut(char alphaChar); @Override char getAlphabeticShortcut(); @Override StubMenuItem setCheckable(boolean checkable); @Override boolean isCheckable(); @Override StubMenuItem setChecked(boolean checked); @Override boolean isChecked(); @Override StubMenuItem setVisible(boolean visible); @Override boolean isVisible(); @Override StubMenuItem setEnabled(boolean enabled); @Override boolean isEnabled(); @Override boolean hasSubMenu(); @Override SubMenu getSubMenu(); @Override StubMenuItem setOnMenuItemClickListener(OnMenuItemClickListener menuItemClickListener); @Override ContextMenu.ContextMenuInfo getMenuInfo(); @Override void setShowAsAction(int actionEnum); @Override StubMenuItem setShowAsActionFlags(int actionEnum); @Override StubMenuItem setActionView(View view); @Override StubMenuItem setActionView(int resId); @Override View getActionView(); @Override StubMenuItem setActionProvider(ActionProvider actionProvider); @Override ActionProvider getActionProvider(); @Override boolean expandActionView(); @Override boolean collapseActionView(); @Override boolean isActionViewExpanded(); @Override StubMenuItem setOnActionExpandListener(OnActionExpandListener listener); StubMenuItem setOrder(int order); StubMenuItem setGroupId(int groupId); }
StubMenuItem implements MenuItem { @Override public int getItemId() { return itemId; } StubMenuItem(Context context);  StubMenuItem(int itemId); static MenuItem create(Context context, StubMenuItemData stubMenuItemData); StubMenuItem setItemId(int itemId); @Override int getItemId(); @Override int getGroupId(); @Override int getOrder(); @Override StubMenuItem setTitle(CharSequence title); @Override StubMenuItem setTitle(int titleId); @Override CharSequence getTitle(); @Override StubMenuItem setTitleCondensed(CharSequence title); @Override CharSequence getTitleCondensed(); @Override StubMenuItem setIcon(Drawable icon); @Override StubMenuItem setIcon(int iconRes); @Override Drawable getIcon(); @Override StubMenuItem setIntent(Intent intent); @Override Intent getIntent(); @Override StubMenuItem setShortcut(char numericChar, char alphaChar); @Override StubMenuItem setNumericShortcut(char numericChar); @Override char getNumericShortcut(); @Override StubMenuItem setAlphabeticShortcut(char alphaChar); @Override char getAlphabeticShortcut(); @Override StubMenuItem setCheckable(boolean checkable); @Override boolean isCheckable(); @Override StubMenuItem setChecked(boolean checked); @Override boolean isChecked(); @Override StubMenuItem setVisible(boolean visible); @Override boolean isVisible(); @Override StubMenuItem setEnabled(boolean enabled); @Override boolean isEnabled(); @Override boolean hasSubMenu(); @Override SubMenu getSubMenu(); @Override StubMenuItem setOnMenuItemClickListener(OnMenuItemClickListener menuItemClickListener); @Override ContextMenu.ContextMenuInfo getMenuInfo(); @Override void setShowAsAction(int actionEnum); @Override StubMenuItem setShowAsActionFlags(int actionEnum); @Override StubMenuItem setActionView(View view); @Override StubMenuItem setActionView(int resId); @Override View getActionView(); @Override StubMenuItem setActionProvider(ActionProvider actionProvider); @Override ActionProvider getActionProvider(); @Override boolean expandActionView(); @Override boolean collapseActionView(); @Override boolean isActionViewExpanded(); @Override StubMenuItem setOnActionExpandListener(OnActionExpandListener listener); StubMenuItem setOrder(int order); StubMenuItem setGroupId(int groupId);  }