org.kc7bfi.jflac.sound.spi
Class FlacAudioFileReaderTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.kc7bfi.jflac.sound.spi.FlacAudioFileReaderTest
All Implemented Interfaces:
junit.framework.Test

public class FlacAudioFileReaderTest
extends junit.framework.TestCase

FlacAudioFileReaderTest.

Date: 4/27/11

Author:
Hendrik Schreiber

Constructor Summary
FlacAudioFileReaderTest()
           
 
Method Summary
 void testGetAudioFileFormatWithBufferedFlacStream()
          Open buffered (supporting mark()) inputstream and get format.
 void testGetAudioFileFormatWithFlacFile()
          Open simple test file and get file format.
 void testGetAudioFileFormatWithUnbufferedFlacStream()
          Open unbuffered inputstream, provoke IOException, because we cannot mark and reset.
 void testGetAudioFileFormatWithUnsupportedFile()
          Provoke UnsupportedAudioFileException when trying to obtain audio file format.
 void testGetAudioInputStreamWithBufferedFlacStream()
          Open buffered (supporting mark()) inputstream and get audio stream.
 void testGetAudioInputStreamWithFlacFile()
          Open simple test file and get stream.
 void testGetAudioInputStreamWithUnbufferedFlacStream()
          Open unbuffered inputstream, provoke IOException, because we cannot mark and reset.
 void testGetAudioInputStreamWithUnsupportedFile()
          Provoke UnsupportedAudioFileException when trying to obtain stream.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlacAudioFileReaderTest

public FlacAudioFileReaderTest()
Method Detail

testGetAudioInputStreamWithFlacFile

public void testGetAudioInputStreamWithFlacFile()
                                         throws UnsupportedAudioFileException,
                                                IOException
Open simple test file and get stream.

Throws:
UnsupportedAudioFileException
IOException

testGetAudioInputStreamWithBufferedFlacStream

public void testGetAudioInputStreamWithBufferedFlacStream()
                                                   throws UnsupportedAudioFileException,
                                                          IOException
Open buffered (supporting mark()) inputstream and get audio stream.

Throws:
UnsupportedAudioFileException
IOException

testGetAudioInputStreamWithUnbufferedFlacStream

public void testGetAudioInputStreamWithUnbufferedFlacStream()
                                                     throws IOException,
                                                            UnsupportedAudioFileException
Open unbuffered inputstream, provoke IOException, because we cannot mark and reset.

Throws:
IOException
UnsupportedAudioFileException

testGetAudioFileFormatWithBufferedFlacStream

public void testGetAudioFileFormatWithBufferedFlacStream()
                                                  throws UnsupportedAudioFileException,
                                                         IOException
Open buffered (supporting mark()) inputstream and get format.

Throws:
UnsupportedAudioFileException
IOException

testGetAudioFileFormatWithUnbufferedFlacStream

public void testGetAudioFileFormatWithUnbufferedFlacStream()
                                                    throws IOException,
                                                           UnsupportedAudioFileException
Open unbuffered inputstream, provoke IOException, because we cannot mark and reset.

Throws:
IOException
UnsupportedAudioFileException

testGetAudioFileFormatWithFlacFile

public void testGetAudioFileFormatWithFlacFile()
                                        throws UnsupportedAudioFileException,
                                               IOException
Open simple test file and get file format.

Throws:
UnsupportedAudioFileException
IOException

testGetAudioInputStreamWithUnsupportedFile

public void testGetAudioInputStreamWithUnsupportedFile()
                                                throws IOException
Provoke UnsupportedAudioFileException when trying to obtain stream.

Throws:
IOException

testGetAudioFileFormatWithUnsupportedFile

public void testGetAudioFileFormatWithUnsupportedFile()
                                               throws IOException
Provoke UnsupportedAudioFileException when trying to obtain audio file format.

Throws:
IOException


Copyright © 2004-2011. All Rights Reserved.