@Test public void placeholder_setsPlaceholderOnUnderlyingRequestCreator() { when(picasso.load(IMAGE_URL)).thenReturn(requestCreator); FiamImageLoader.FiamImageRequestCreator fiamImageRequestCreator = imageLoader.load(IMAGE_URL); fiamImageRequestCreator.placeholder(1); verify(requestCreator).placeholder(1); }
public FiamImageRequestCreator load(@Nullable String imageUrl) { return new FiamImageRequestCreator(picasso.load(imageUrl)); }
FiamImageLoader { public FiamImageRequestCreator load(@Nullable String imageUrl) { return new FiamImageRequestCreator(picasso.load(imageUrl)); } }
FiamImageLoader { public FiamImageRequestCreator load(@Nullable String imageUrl) { return new FiamImageRequestCreator(picasso.load(imageUrl)); } @Inject  FiamImageLoader(Picasso picasso); }
FiamImageLoader { public FiamImageRequestCreator load(@Nullable String imageUrl) { return new FiamImageRequestCreator(picasso.load(imageUrl)); } @Inject  FiamImageLoader(Picasso picasso); FiamImageRequestCreator load(@Nullable String imageUrl); void cancelTag(Class c); }
FiamImageLoader { public FiamImageRequestCreator load(@Nullable String imageUrl) { return new FiamImageRequestCreator(picasso.load(imageUrl)); } @Inject  FiamImageLoader(Picasso picasso); FiamImageRequestCreator load(@Nullable String imageUrl); void cancelTag(Class c);  }