Code example for VideoView

Methods: isPlayingstartstopPlayback

0
        assertThat(shadowVideoView.getVideoURIString()).isNull();
    } 
     
    @Test 
    public void shoulDetermineIsPlaying() throws Exception { 
        assertThat(view.isPlaying()).isFalse();
    	view.start();
        assertThat(view.isPlaying()).isTrue();
    	view.stopPlayback();
        assertThat(view.isPlaying()).isFalse();
    } 
     
    @Test 
    public void shouldStartPlaying() throws Exception { 
    	view.start();
    	ShadowVideoView shadowVideoView = Robolectric.shadowOf(view);
        assertThat(shadowVideoView.getCurrentVideoState()).isEqualTo(ShadowVideoView.START);
    } 
     
    @Test 
    public void shouldStopPlayback() throws Exception {