Package org.jmock.example.qcon
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 TypeMethodDescriptionvoid
setUp()
private void
startingIn
(String initialLocation) void
void
void
void
Methods inherited from class org.jmock.integration.junit3.MockObjectTestCase
checking, context, mock, mock, sequence, setDefaultResultForType, setImposteriser, setNamingScheme, states
Methods inherited from class org.jmock.integration.junit3.VerifyingTestCase
addVerifier, runBare, verify
Methods 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:
setUp
in classjunit.framework.TestCase
-
testStartsPlayingTrackForCurrentLocationWhenLocationFirstDetected
public void testStartsPlayingTrackForCurrentLocationWhenLocationFirstDetected() -
testPlaysTrackForCurrentLocationWhenPreviousTrackFinishesIfLocationChangedWhileTrackWasPlaying
public void testPlaysTrackForCurrentLocationWhenPreviousTrackFinishesIfLocationChangedWhileTrackWasPlaying() -
testDoesNotPlayTrackAgainIfStillInTheSameLocation
public void testDoesNotPlayTrackAgainIfStillInTheSameLocation() -
testPlaysNewTrackAsSoonAsLocationChangesIfPreviousTrackFinishedWhileInSameLocation
public void testPlaysNewTrackAsSoonAsLocationChangesIfPreviousTrackFinishedWhileInSameLocation() -
startingIn
-