|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
JSR166TestCase
TimeUnitTest
public class TimeUnitTest
| Nested Class Summary |
|---|
| Field Summary |
|---|
| Fields inherited from class JSR166TestCase |
|---|
eight, expensiveTests, five, four, LONG_DELAY_MS, m1, m10, m2, m3, m4, m5, m6, MEDIUM_DELAY_MS, nine, one, seven, SHORT_DELAY_MS, six, SIZE, SMALL_DELAY_MS, TEST_STRING, three, two, zero |
| Constructor Summary | |
|---|---|
TimeUnitTest()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
static junit.framework.Test |
suite()
|
void |
testConvert()
convert correctly converts sample values across the units |
void |
testConvertSaturate()
convert saturates positive too-large values to Long.MAX_VALUE and negative to LONG.MIN_VALUE |
void |
testSerialization()
a deserialized serialized unit is the same instance |
void |
testTimedJoin()
timedJoin throws InterruptedException when interrupted |
void |
testTimedSleep()
timedSleep throws InterruptedException when interrupted |
void |
testTimedWait_IllegalMonitorException()
Timed wait without holding lock throws IllegalMonitorStateException |
void |
testTimedWait()
timedWait throws InterruptedException when interrupted |
void |
testToDays()
toDays correctly converts sample values in different units to days |
void |
testToHours()
toHours correctly converts sample values in different units to hours |
void |
testToMicros()
toMicros correctly converts sample values in different units to microseconds |
void |
testToMillis()
toMillis correctly converts sample values in different units to milliseconds |
void |
testToMinutes()
toMinutes correctly converts sample values in different units to minutes |
void |
testToNanos()
toNanos correctly converts sample values in different units to nanoseconds |
void |
testToNanosSaturate()
toNanos saturates positive too-large values to Long.MAX_VALUE and negative to LONG.MIN_VALUE |
void |
testToSeconds()
toSeconds correctly converts sample values in different units to seconds |
void |
testToString()
toString returns string containing common name of unit |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, 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, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TimeUnitTest()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public static junit.framework.Test suite()
public void testConvert()
public void testToNanos()
public void testToMicros()
public void testToMillis()
public void testToSeconds()
public void testToMinutes()
public void testToHours()
public void testToDays()
public void testConvertSaturate()
public void testToNanosSaturate()
public void testToString()
public void testTimedWait_IllegalMonitorException()
throws java.lang.Exception
java.lang.Exception
public void testTimedWait()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testTimedJoin()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testTimedSleep()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void testSerialization()
throws java.lang.Exception
java.lang.Exception
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||