@Test public void testReplaceDetails() { List<Detail> testList = new ArrayList<>(); testList.add(new Detail(mTitle, mDescription, mPosition, 0, 0)); mGalleryUnderTest.replaceDetails(testList); assertThat(mGalleryUnderTest.getDetails(), is(testList)); }
public void replaceDetails(List<Detail> details) { mDetails.clear(); if (details != null) { mDetails.addAll(details); } }
Gallery implements Parcelable { public void replaceDetails(List<Detail> details) { mDetails.clear(); if (details != null) { mDetails.addAll(details); } } }
Gallery implements Parcelable { public void replaceDetails(List<Detail> details) { mDetails.clear(); if (details != null) { mDetails.addAll(details); } } Gallery(String title, String description, String galleryId, LatLng latLng); protected  Gallery(Parcel in); }
Gallery implements Parcelable { public void replaceDetails(List<Detail> details) { mDetails.clear(); if (details != null) { mDetails.addAll(details); } } Gallery(String title, String description, String galleryId, LatLng latLng); protected  Gallery(Parcel in); void replaceDetails(List<Detail> details); boolean hasDetails(); String getTitle(); @NonNull String getDescription(); String getGalleryId(); List<Detail> getDetails(); LatLng getPosition(); @NonNull LatLngBounds getBounds(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); @Override int describeContents(); @Override void writeToParcel(@NonNull Parcel dest, int flags); }
Gallery implements Parcelable { public void replaceDetails(List<Detail> details) { mDetails.clear(); if (details != null) { mDetails.addAll(details); } } Gallery(String title, String description, String galleryId, LatLng latLng); protected  Gallery(Parcel in); void replaceDetails(List<Detail> details); boolean hasDetails(); String getTitle(); @NonNull String getDescription(); String getGalleryId(); List<Detail> getDetails(); LatLng getPosition(); @NonNull LatLngBounds getBounds(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); @Override int describeContents(); @Override void writeToParcel(@NonNull Parcel dest, int flags); static final Creator<Gallery> CREATOR; }