com.breeweb.slimconnect.test
Class TestSlimp3Delegate

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.breeweb.slimconnect.test.TestSlimp3Delegate
All Implemented Interfaces:
junit.framework.Test

public class TestSlimp3Delegate
extends junit.framework.TestCase

Author:
Bas de Bree This is a JUnit test case to test the Slimp3Delegate functionality. To let this test work for You as well, please adopt the constants used as seen below. Those are some albums, which are required on your Slimp3/Squeezebox server to be able to run this test successfully.

Constructor Summary
TestSlimp3Delegate()
           
 
Method Summary
 void testControls()
           
 void testCurrentSong()
           
 void testDisplay()
           
 void testGetPlayers()
          this test expects to have at least one player available.
 void testGetPlaylist()
           
 void testPlaylistAdd()
           
 void testPlaylistAddAlbum()
           
 void testPlaylistClear()
           
 void testPlaylistDelete()
           
 void testPlaylistIndex()
           
 void testPlaylistInsert()
           
 void testPlaylistLoad()
           
 void testPlaylistMove()
           
 void testPlaylistMutateAndSave()
           
 void testPlaylistPlay()
           
 void testRepeat()
           
 void testShufflePlaylist()
           
 void testSleep()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, setName, 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestSlimp3Delegate

public TestSlimp3Delegate()
Method Detail

testDisplay

public void testDisplay()
                 throws DataException,
                        java.lang.InterruptedException
Throws:
DataException
java.lang.InterruptedException

testGetPlayers

public void testGetPlayers()
                    throws DataException
this test expects to have at least one player available.

Throws:
DataException

testCurrentSong

public void testCurrentSong()
                     throws DataException
Throws:
DataException

testControls

public void testControls()
                  throws DataException
Throws:
DataException

testGetPlaylist

public void testGetPlaylist()
                     throws DataException
Throws:
DataException

testShufflePlaylist

public void testShufflePlaylist()
                         throws DataException
Throws:
DataException

testRepeat

public void testRepeat()
                throws DataException
Throws:
DataException

testSleep

public void testSleep()
               throws DataException,
                      java.lang.InterruptedException
Throws:
DataException
java.lang.InterruptedException

testPlaylistPlay

public void testPlaylistPlay()
                      throws DataException,
                             java.lang.InterruptedException
Throws:
DataException
java.lang.InterruptedException

testPlaylistAdd

public void testPlaylistAdd()
                     throws DataException,
                            java.lang.InterruptedException
Throws:
DataException
java.lang.InterruptedException

testPlaylistInsert

public void testPlaylistInsert()
                        throws DataException,
                               java.lang.InterruptedException
Throws:
DataException
java.lang.InterruptedException

testPlaylistMove

public void testPlaylistMove()
                      throws DataException,
                             java.lang.InterruptedException
Throws:
DataException
java.lang.InterruptedException

testPlaylistDelete

public void testPlaylistDelete()
                        throws DataException,
                               java.lang.InterruptedException
Throws:
DataException
java.lang.InterruptedException

testPlaylistMutateAndSave

public void testPlaylistMutateAndSave()
                               throws DataException,
                                      java.lang.InterruptedException
Throws:
DataException
java.lang.InterruptedException

testPlaylistLoad

public void testPlaylistLoad()
                      throws DataException,
                             java.lang.InterruptedException
Throws:
DataException
java.lang.InterruptedException

testPlaylistAddAlbum

public void testPlaylistAddAlbum()
                          throws DataException,
                                 java.lang.InterruptedException
Throws:
DataException
java.lang.InterruptedException

testPlaylistClear

public void testPlaylistClear()
                       throws DataException,
                              java.lang.InterruptedException
Throws:
DataException
java.lang.InterruptedException

testPlaylistIndex

public void testPlaylistIndex()
                       throws DataException,
                              java.lang.InterruptedException
Throws:
DataException
java.lang.InterruptedException