Search in sources :

Example 11 with FFMpegProgressBarListener

use of com.bixly.pastevid.screencap.components.progressbar.FFMpegProgressBarListener in project screenbird by adamhub.

the class FFMPEGExecutorTest method testSetProgressBarListener.

/**
     * Test of setProgressBarListener method, of class FFMPEGExecutor.
     */
@Test
public void testSetProgressBarListener() {
    log("setProgressBarListener");
    FFMpegProgressBarListener ffmpegListener = new FFMpegProgressBarListener(new JProgressBar(), 1);
    FFMPEGExecutor instance = new FFMPEGExecutor(FFMPEGLocator.getLocator().getFFMPEGExecutablePath());
    instance.setProgressBarListener(ffmpegListener);
    assertNotNull(instance.getFFMpegProgressBarListener());
}
Also used : JProgressBar(javax.swing.JProgressBar) FFMpegProgressBarListener(com.bixly.pastevid.screencap.components.progressbar.FFMpegProgressBarListener) Test(org.junit.Test)

Aggregations

FFMpegProgressBarListener (com.bixly.pastevid.screencap.components.progressbar.FFMpegProgressBarListener)11 Test (org.junit.Test)9 File (java.io.File)5 DownloadThread (com.bixly.pastevid.download.DownloadThread)1 UnsupportedBitRateCompression (com.bixly.pastevid.recorders.UnsupportedBitRateCompression)1 FileNotFoundException (java.io.FileNotFoundException)1 IOException (java.io.IOException)1 MissingResourceException (java.util.MissingResourceException)1 LineUnavailableException (javax.sound.sampled.LineUnavailableException)1 JFrame (javax.swing.JFrame)1 JProgressBar (javax.swing.JProgressBar)1 Ignore (org.junit.Ignore)1