use of com.facebook.fresco.vito.source.ImageSource in project fresco by facebook.
the class VitoImageRequestTest method testHashCode.
@Test
public void testHashCode() {
Resources res = mock(Resources.class);
ImageSource is = mock(ImageSource.class);
ImageOptions options = mock(ImageOptions.class);
VitoImageRequest a = new VitoImageRequest(res, is, options, null, null);
VitoImageRequest b = new VitoImageRequest(res, is, options, null, null);
assertThat(a.hashCode()).isEqualTo(b.hashCode());
}
use of com.facebook.fresco.vito.source.ImageSource in project fresco by facebook.
the class VitoImageRequestTest method testEquals.
@Test
public void testEquals() {
Resources res = mock(Resources.class);
ImageSource is = mock(ImageSource.class);
ImageOptions options = mock(ImageOptions.class);
VitoImageRequest a = new VitoImageRequest(res, is, options, null, null);
VitoImageRequest b = new VitoImageRequest(res, is, options, null, null);
assertThat(a).isEqualTo(b);
}
Aggregations