Search in sources :

Example 1 with ImageSource

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());
}
Also used : ImageOptions(com.facebook.fresco.vito.options.ImageOptions) Resources(android.content.res.Resources) ImageSource(com.facebook.fresco.vito.source.ImageSource) Test(org.junit.Test)

Example 2 with ImageSource

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);
}
Also used : ImageOptions(com.facebook.fresco.vito.options.ImageOptions) Resources(android.content.res.Resources) ImageSource(com.facebook.fresco.vito.source.ImageSource) Test(org.junit.Test)

Aggregations

Resources (android.content.res.Resources)2 ImageOptions (com.facebook.fresco.vito.options.ImageOptions)2 ImageSource (com.facebook.fresco.vito.source.ImageSource)2 Test (org.junit.Test)2