mil.dod.th.ose.archiver.vlc/test/mil/dod/th/ose/archiver/vlc/TestVlcArchiver.java
@Test 
    public void testStart() throws ArchiverException
    {
        m_SUT.activate();
        assertThat(m_SUT.getActiveProcessIds(), is(Matchers.<String>empty()));
        verify(m_PowerManager).createWakeLock(m_SUT.getClass(), "coreVlcArchiver");
        
        m_SUT.start(m_ProcessId1, m_SourceStream, m_OutFilePath);
        
        verify(m_MediaPlayer).addMediaPlayerEventListener(Mockito.any(MediaPlayerEventListener.class));
        verify(m_MediaPlayer).playMedia(anyString(), (String)anyVararg());
        verify(m_WakeLock).activate();
        
        assertThat(m_SUT.getActiveProcessIds(), hasItem(m_ProcessId1));
        
        m_SUT.deactivate();
        verify(m_MediaPlayer).stop();
        verify(m_MediaPlayer).release();
        verify(m_WakeLock).delete();
    }
/**
     * Verify that an archiving process can be started.
     * 
     * @throws ArchiverException
     *      if the archiver instance produces an error.
     */
Verify that an archiving process can be started.

@throws ArchiverException
if the archiver instance produces an error.
Verify that an archiving process can be started . @throws ArchiverException if the archiver instance produces an error .
@Test 
    public void testStart() throws ArchiverException
    {
        m_SUT.activate();
        assertThat(m_SUT.getActiveProcessIds(), is(Matchers.<String>empty()));
        verify(m_PowerManager).createWakeLock(m_SUT.getClass(), "coreVlcArchiver");
        m_SUT.start(m_ProcessId1, m_SourceStream, m_OutFilePath);
        verify(m_MediaPlayer).addMediaPlayerEventListener(Mockito.any(MediaPlayerEventListener.class));
        verify(m_MediaPlayer).playMedia(anyString(), (String)anyVararg());
        verify(m_WakeLock).activate();
        assertThat(m_SUT.getActiveProcessIds(), hasItem(m_ProcessId1));
        m_SUT.deactivate();
        verify(m_MediaPlayer).stop();
        verify(m_MediaPlayer).release();
        verify(m_WakeLock).delete();
    }
@ Test public void testStart ( ) throws ArchiverException { m_SUT . activate ( ) ; assertThat ( m_SUT . getActiveProcessIds ( ) , is ( Matchers . < String > empty ( ) ) ) ; verify ( m_PowerManager ) . createWakeLock ( m_SUT . getClass ( ) , "coreVlcArchiver" ) ; m_SUT . start ( m_ProcessId1 , m_SourceStream , m_OutFilePath ) ; verify ( m_MediaPlayer ) . addMediaPlayerEventListener ( Mockito . any ( MediaPlayerEventListener . class ) ) ; verify ( m_MediaPlayer ) . playMedia ( anyString ( ) , ( String ) anyVararg ( ) ) ; verify ( m_WakeLock ) . activate ( ) ; assertThat ( m_SUT . getActiveProcessIds ( ) , hasItem ( m_ProcessId1 ) ) ; m_SUT . deactivate ( ) ; verify ( m_MediaPlayer ) . stop ( ) ; verify ( m_MediaPlayer ) . release ( ) ; verify ( m_WakeLock ) . delete ( ) ; }
Verify that an archiving process can be started.
Verify that an archiving process can be started .