TweetMediaView extends ViewGroup implements View.OnClickListener { public void setRoundedCornersRadii(int topLeft, int topRight, int bottomRight, int bottomLeft) { radii[0] = topLeft; radii[1] = topLeft; radii[2] = topRight; radii[3] = topRight; radii[4] = bottomRight; radii[5] = bottomRight; radii[6] = bottomLeft; radii[7] = bottomLeft; requestLayout(); } TweetMediaView(Context context);  TweetMediaView(Context context, AttributeSet attrs);   TweetMediaView(Context context, AttributeSet attrs, DependencyProvider dependencyProvider); void setRoundedCornersRadii(int topLeft, int topRight, int bottomRight, int bottomLeft); void setMediaBgColor(int mediaBgColor); void setTweetMediaClickListener(TweetMediaClickListener tweetMediaClickListener); void setPhotoErrorResId(int photoErrorResId); @Override void onClick(View view); void launchVideoPlayer(MediaEntity entity); void launchVideoPlayer(Tweet tweet); void launchPhotoGallery(int mediaEntityIndex); void setTweetMediaEntities(Tweet tweet, List<MediaEntity> mediaEntities); void setVineCard(Tweet tweet);  }
@Test public void testSetRoundedCornersRadii() { tweetMediaView.setRoundedCornersRadii(1, 2, 3, 4); assertArrayEquals(new float[]{1, 1, 2, 2, 3, 3, 4, 4}, tweetMediaView.radii, 0); }