Code example for VideoView

Methods: pauseresumestartsuspend, canPause

0
        assertThat(shadowVideoView.getCurrentVideoState()).isEqualTo(ShadowVideoView.PAUSE);
    } 
     
    @Test 
    public void shouldDetermineIfPausable() throws Exception { 
    	view.start();
        assertThat(view.canPause()).isTrue();
 
    	view.pause();
        assertThat(view.canPause()).isFalse();
    	 
    	view.resume();
        assertThat(view.canPause()).isTrue();
    	 
    	view.suspend();
        assertThat(view.canPause()).isFalse();
    } 
          
    /** 
     * Helper classes 
     */