HaloModule implements Parcelable { @Override public int describeContents() { return 0; } HaloModule(); @Api(1.2)  HaloModule(@NonNull Integer customerId, @NonNull String id, @NonNull String name, boolean enabled, @NonNull Date creationDate, @Nullable Date lastUpdate, @NonNull String internalId, boolean isSingle, JSONArray fields); protected  HaloModule(Parcel in); @Api(1.0) @NonNull static HaloModule create(@NonNull Cursor cursor); @Api(1.0) @NonNull static List<HaloModule> fromCursor(@Nullable Cursor cursor, boolean close); @Api(1.0) @NonNull ContentValues getContentValues(); @Api(1.0) @NonNull Integer getCustomerId(); @Api(1.0) @NonNull String getId(); @Api(1.0) @NonNull String getName(); @Api(1.0) @NonNull Boolean isEnabled(); @Api(1.0) @Nullable Date getLastUpdate(); @Api(1.0) @NonNull Date getCreationDate(); @Api(1.0) String getInternalId(); @Api(2.3) JSONArray getFields(); @Api(1.0) boolean isSingleItemInstance(); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); @Override String toString(); static final Creator<HaloModule> CREATOR; }
@Test public void thatParcelableCreatorIsOk() { HaloModule module = TestUtils.testParcel(mModule, HaloModule.CREATOR); assertModule(module); assertThat(module.describeContents()).isEqualTo(0); }