|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.apache.commons.id.uuid.clock.SystemClockImplTest
public class SystemClockImplTest
Unit tests for SystemClockImplTest
.
Nested Class Summary | |
---|---|
protected static class |
SystemClockImplTest.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 | |
---|---|
SystemClockImplTest()
|
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 SystemClockImplTest()
Method Detail |
---|
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.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 |