@Test public void load_createdFiamImageRequestCreator() { when(picasso.load(IMAGE_URL)).thenReturn(requestCreator); assertThat(imageLoader.load(IMAGE_URL).getClass()) .isEqualTo(FiamImageLoader.FiamImageRequestCreator.class); }
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);  }