|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.id.uuid.clock.ThreadClockImplTest
public class ThreadClockImplTest
Unit tests for SystemClockImplTest.
| Nested Class Summary | |
|---|---|
protected static class |
ThreadClockImplTest.ClockClient
Clock client thread |
| Field Summary | |
|---|---|
static java.lang.String |
SYS_OS_NAME_PROPERTY
Constant for System.property os.name |
static java.lang.String |
SYS_OS_WINDOWS
Constant for Windows |
| Constructor Summary | |
|---|---|
ThreadClockImplTest()
|
|
| Method Summary | |
|---|---|
protected void |
setUp()
|
void |
testRange()
Make sure that generated time stamps are within expected ranges. |
void |
testUnique()
Make sure that time stamps generated by concurrent threads are unique. |
| 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 |
| Field Detail |
|---|
public static final java.lang.String SYS_OS_NAME_PROPERTY
public static final java.lang.String SYS_OS_WINDOWS
| Constructor Detail |
|---|
public ThreadClockImplTest()
| Method Detail |
|---|
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exception
public void testUnique()
throws java.lang.Exception
java.lang.Exception - a testing exception.
public void testRange()
throws java.lang.Exception
java.lang.Exception - any test Exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||