java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
StopWatchTest
public class StopWatchTest
The test class StopWatchTest.
Constructor Summary | |
---|---|
StopWatchTest()
Default constructor for test class StopWatchTest |
Method Summary | |
---|---|
protected void |
setUp()
Sets up the test fixture. |
protected void |
tearDown()
Tears down the test fixture. |
void |
testCreateStopWatch()
Checks that the constructor works, and puts the stopwatch in the right initial state |
void |
testStartingAndStopping()
Checks that starting and stopping the watch works |
void |
testTimingAndResetting()
Checks that the timer works to within DELTA milliseconds and that the watch can be reset. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, 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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StopWatchTest()
Method Detail |
---|
protected void setUp()
setUp
in class junit.framework.TestCase
protected void tearDown()
tearDown
in class junit.framework.TestCase
public void testCreateStopWatch()
public void testStartingAndStopping()
public void testTimingAndResetting()