|
||||||||||
| 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.serial.TimeBasedAlphanumericIdentifierGeneratorTest
public class TimeBasedAlphanumericIdentifierGeneratorTest
| Constructor Summary | |
|---|---|
TimeBasedAlphanumericIdentifierGeneratorTest()
|
|
| Method Summary | |
|---|---|
static junit.framework.TestSuite |
suite()
TestSuite for TimeBasedAlphanumericIdentifierGenerator. |
void |
testCanRetrieveTimeFromIdWithInternalOverflow()
Test ensures, that generator can recalculate the time from the id even if internally an overflow had happened. |
void |
testCanRetrieveTimeFromIdWithoutInternalOverflow()
Test ensures, that generator can recalculate the time from the id if internally no overflow had happened. |
void |
testDefaultPostfixSizeIsGoodEnough()
Ensure that the default postfix size is big enough for a lot faster computers. |
void |
testDifferentGeneratorInstancesWillProduceStillUniqueIds()
Test if different instances of the generator still deliver unique ids. |
void |
testIdentifierSizeIsConstant()
Test constant size of generated identifier. |
void |
testIllegalPostfixSize()
Test illegal values for the postfix size. |
void |
testIllegalStateWhenTooManyIdentifiersGenerated()
Test that an IllegalStateException is thrown if no more unique identifiers can be generated. |
void |
testInternalOverflowStillIncreasesIds()
Test if generator can handle an internal overflow as it may happen for time values and still delivers increasing ids. |
void |
testMayStartWithIdentifierOfZeros()
Test that the generator can be tweaked to start with '0'. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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 |
| Constructor Detail |
|---|
public TimeBasedAlphanumericIdentifierGeneratorTest()
| Method Detail |
|---|
public void testIdentifierSizeIsConstant()
public void testIllegalPostfixSize()
public void testIllegalStateWhenTooManyIdentifiersGenerated()
public void testMayStartWithIdentifierOfZeros()
public void testDefaultPostfixSizeIsGoodEnough()
public void testInternalOverflowStillIncreasesIds()
public void testCanRetrieveTimeFromIdWithoutInternalOverflow()
public void testCanRetrieveTimeFromIdWithInternalOverflow()
public void testDifferentGeneratorInstancesWillProduceStillUniqueIds()
public static junit.framework.TestSuite suite()
TestSuite for TimeBasedAlphanumericIdentifierGenerator. Ensures serialization.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||