sk.baka.ambient.playlist
Class StaticPlaylistStrategyTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by sk.baka.ambient.playlist.AbstractPlaylistStrategyTest
              extended by sk.baka.ambient.playlist.StaticPlaylistStrategyTest
All Implemented Interfaces:
junit.framework.Test

public class StaticPlaylistStrategyTest
extends AbstractPlaylistStrategyTest

Tests the StaticPlaylistStrategy strategy.

Author:
mvy

Field Summary
 
Fields inherited from class sk.baka.ambient.playlist.AbstractPlaylistStrategyTest
strategy, tracks
 
Constructor Summary
StaticPlaylistStrategyTest()
           
 
Method Summary
protected  IPlaylistStrategy getStrategy()
          Returns the strategy instance.
 void testNormalOrder()
           
 void testPlaylistWrap()
          Checks if next/previous on the -1th track will return correct values.
 void testRandomAlbumPlaysEachTrackOnce()
           
 void testRandomTrackPlaysEachTrackOnce()
           
 void testRemovingPlayedTrack()
          When the currently played track is removed from the playlist, current track must be set to -1.
 void testRequeueTracks()
           
 void testSetModeRandomAlbum()
           
 
Methods inherited from class sk.baka.ambient.playlist.AbstractPlaylistStrategyTest
assertEquals, assertEquals, assertEqualsQueue, assertNextTracks, assertNextTracksUnordered, assertTracks, getCurrentlyPlaying, setUp, testAdding30Tracks, testEmptyPlaylist, testPlayingQueuedTracks, testPlaySameTrack, testQueuingTracks, testRemovingPlayedTrackRandom, testRemovingTracksPreservesCurrentlyPlayedTrack, testSetRandomModePreservesCurrentTrack, verifyQueueProperties
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StaticPlaylistStrategyTest

public StaticPlaylistStrategyTest()
Method Detail

getStrategy

protected IPlaylistStrategy getStrategy()
Description copied from class: AbstractPlaylistStrategyTest
Returns the strategy instance.

Specified by:
getStrategy in class AbstractPlaylistStrategyTest
Returns:
the strategy instance. The strategy playlist must be empty.

testPlaylistWrap

public void testPlaylistWrap()
Checks if next/previous on the -1th track will return correct values.


testRequeueTracks

public void testRequeueTracks()

testRandomTrackPlaysEachTrackOnce

public void testRandomTrackPlaysEachTrackOnce()

testRandomAlbumPlaysEachTrackOnce

public void testRandomAlbumPlaysEachTrackOnce()

testNormalOrder

public void testNormalOrder()
Overrides:
testNormalOrder in class AbstractPlaylistStrategyTest

testRemovingPlayedTrack

public void testRemovingPlayedTrack()
When the currently played track is removed from the playlist, current track must be set to -1.


testSetModeRandomAlbum

public void testSetModeRandomAlbum()


Copyright © 2007-2009. All Rights Reserved.