PlayerController { void onResume() { if (seekPosition != 0) { videoView.seekTo(seekPosition); } if (isPlaying) { videoView.start(); videoControlView.update(); } } PlayerController(View rootView, SwipeToDismissTouchListener.Callback callback);   PlayerController(View rootView, VideoView videoView, VideoControlView videoControlView,
            ProgressBar videoProgressView, TextView callToActionView,
            SwipeToDismissTouchListener.Callback callback);   }
@Test public void testOnResume() { subject.isPlaying = true; subject.seekPosition = TEST_SEEK_POSITION; subject.onResume(); verify(videoView).start(); }
@Test public void testOnResume_withSeeekPosition() { subject.isPlaying = true; subject.seekPosition = TEST_SEEK_POSITION; subject.onResume(); verify(videoView).seekTo(TEST_SEEK_POSITION); verify(videoView).start(); }