@Test public void shouldCreateStubmenuItemFromMenuItem() { StubMenuItemData stubMenuItemData = StubMenuItemData.create(menuItem); validate(stubMenuItemData); }
public static StubMenuItemData create(MenuItem menuItem) { return new StubMenuItemData(menuItem.getGroupId(), menuItem.getItemId(), menuItem.getOrder(), menuItem.getTitle().toString()); }
StubMenuItemData implements Parcelable { public static StubMenuItemData create(MenuItem menuItem) { return new StubMenuItemData(menuItem.getGroupId(), menuItem.getItemId(), menuItem.getOrder(), menuItem.getTitle().toString()); } }
StubMenuItemData implements Parcelable { public static StubMenuItemData create(MenuItem menuItem) { return new StubMenuItemData(menuItem.getGroupId(), menuItem.getItemId(), menuItem.getOrder(), menuItem.getTitle().toString()); } StubMenuItemData(int groupId, int itemId, int order, String title); protected  StubMenuItemData(Parcel in); }
StubMenuItemData implements Parcelable { public static StubMenuItemData create(MenuItem menuItem) { return new StubMenuItemData(menuItem.getGroupId(), menuItem.getItemId(), menuItem.getOrder(), menuItem.getTitle().toString()); } StubMenuItemData(int groupId, int itemId, int order, String title); protected  StubMenuItemData(Parcel in); static StubMenuItemData create(MenuItem menuItem); int getGroupId(); int getItemId(); int getOrder(); String getTitle(); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); }
StubMenuItemData implements Parcelable { public static StubMenuItemData create(MenuItem menuItem) { return new StubMenuItemData(menuItem.getGroupId(), menuItem.getItemId(), menuItem.getOrder(), menuItem.getTitle().toString()); } StubMenuItemData(int groupId, int itemId, int order, String title); protected  StubMenuItemData(Parcel in); static StubMenuItemData create(MenuItem menuItem); int getGroupId(); int getItemId(); int getOrder(); String getTitle(); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); @SuppressWarnings("unused")
    static final Parcelable.Creator<StubMenuItemData> CREATOR; }