use of com.facebook.imagepipeline.listener.ForwardingRequestListener in project fresco by facebook.
the class ForwardingRequestListenerTest method setUp.
@Before
public void setUp() {
MockitoAnnotations.initMocks(this);
mRequestListener1 = mock(RequestListener.class);
mRequestListener2 = mock(RequestListener.class);
mRequestListener3 = mock(RequestListener.class);
when(mRequestListener1.requiresExtraMap(mRequestId)).thenReturn(false);
when(mRequestListener2.requiresExtraMap(mRequestId)).thenReturn(false);
when(mRequestListener3.requiresExtraMap(mRequestId)).thenReturn(false);
mListenerManager = new ForwardingRequestListener(Sets.newHashSet(mRequestListener1, mRequestListener2, mRequestListener3));
}
Aggregations