ImageViewTargetTest.java 文件源码

java
阅读 26 收藏 0 点赞 0 评论 0

项目:GitHub 作者:
@Test
public void testSetsDrawableOnViewInOnResourceReadyWhenAnimationReturnsFalse() {
  @SuppressWarnings("unchecked") Transition<Drawable> animation = mock(Transition.class);
  when(animation.transition(any(Drawable.class), eq(target))).thenReturn(false);
  Drawable resource = new ColorDrawable(Color.GRAY);
  target.onResourceReady(resource, animation);

  assertEquals(resource, target.resource);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号