Class DJTests
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.jmock.integration.junit3.VerifyingTestCase
org.jmock.integration.junit3.MockObjectTestCase
org.jmock.example.qcon.DJTests
- All Implemented Interfaces:
junit.framework.Test
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()private voidstartingIn(String initialLocation) voidvoidvoidvoidMethods inherited from class MockObjectTestCase
checking, context, mock, mock, sequence, setDefaultResultForType, setImposteriser, setNamingScheme, statesMethods inherited from class VerifyingTestCase
addVerifier, runBare, verifyMethods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, tearDown, toString
-
Field Details
-
playlist
Playlist playlist -
mediaControl
MediaControl mediaControl -
dj
DJ dj -
LOCATION_A
- See Also:
-
TRACK_A
- See Also:
-
LOCATION_B
- See Also:
-
TRACK_B
- See Also:
-
-
Constructor Details
-
DJTests
public DJTests()
-
-
Method Details
-
setUp
public void setUp()- Overrides:
setUpin classjunit.framework.TestCase
-
testStartsPlayingTrackForCurrentLocationWhenLocationFirstDetected
public void testStartsPlayingTrackForCurrentLocationWhenLocationFirstDetected() -
testPlaysTrackForCurrentLocationWhenPreviousTrackFinishesIfLocationChangedWhileTrackWasPlaying
public void testPlaysTrackForCurrentLocationWhenPreviousTrackFinishesIfLocationChangedWhileTrackWasPlaying() -
testDoesNotPlayTrackAgainIfStillInTheSameLocation
public void testDoesNotPlayTrackAgainIfStillInTheSameLocation() -
testPlaysNewTrackAsSoonAsLocationChangesIfPreviousTrackFinishedWhileInSameLocation
public void testPlaysNewTrackAsSoonAsLocationChangesIfPreviousTrackFinishedWhileInSameLocation() -
startingIn
-