|
||||||||||
| 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.UUIDTest
public class UUIDTest
Unit tests for UUID.
| Constructor Summary | |
|---|---|
UUIDTest()
|
|
| Method Summary | |
|---|---|
protected void |
setUp()
|
void |
testByteArrayConstructor()
Test byte[] constructor |
void |
testClockSequence()
Test the clockSequence() method. |
void |
testCompareTo()
Test compareTo of Comparable interface impl. |
void |
testCopyConstructor()
Test copy constructor |
void |
testDataInputConstructor()
Test DataInput constructor |
void |
testFromString()
Test the static fromString method |
void |
testLongLongConstructor()
Test long long constructor |
void |
testNameUUIDFromString()
Test the static nameUUIDFromString(String name, UUID namespaceUUID) method. |
void |
testNameUUIDFromStringSha1()
Test the static #{link UUID.nameUUIDFromString} method, with explicit SHA-1 encoding as specified in version 4 of the UUID draft. |
void |
testNiltoString()
Test the nil UUID() contructor returns a zero'd out UUID |
void |
testNode()
Test the node method. |
void |
testStringConstructor()
Test String constructor |
void |
testTimestamp()
Test the timestamp method. |
void |
testToString()
Test the toString of UUID |
void |
testToUrn()
Test the toUrn method |
void |
testVariant()
Test the variant method. |
void |
testVersion()
Test the version method. |
| 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 |
| Constructor Detail |
|---|
public UUIDTest()
| Method Detail |
|---|
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exception
public void testNiltoString()
throws java.lang.Exception
java.lang.Exception - an exception while testing
public void testCopyConstructor()
throws java.lang.Exception
java.lang.Exception - an exception while testing
public void testByteArrayConstructor()
throws java.lang.Exception
java.lang.Exception - an exception while testing
public void testDataInputConstructor()
throws java.lang.Exception
java.lang.Exception - an exception while testing
public void testLongLongConstructor()
throws java.lang.Exception
java.lang.Exception - an exception while testing
public void testStringConstructor()
throws java.lang.Exception
java.lang.Exception - an exception while testing
public void testFromString()
throws java.lang.Exception
java.lang.Exception - an exception while testing
public void testNameUUIDFromString()
throws java.lang.Exception
java.lang.Exception - an exception while testing
public void testNameUUIDFromStringSha1()
throws java.lang.Exception
java.lang.Exception
public void testToString()
throws java.lang.Exception
java.lang.Exception - an exception while testing
public void testToUrn()
throws java.lang.Exception
java.lang.Exception - an exception while testing
public void testCompareTo()
throws java.lang.Exception
Test compareTo of Comparable interface impl.
java.lang.Exception - a testing Exception.
public void testClockSequence()
throws java.lang.Exception
Test the clockSequence() method.
java.lang.Exception - a testing Exception.
public void testVersion()
throws java.lang.Exception
Test the version method.
java.lang.Exception - a testing Exception.
public void testVariant()
throws java.lang.Exception
Test the variant method.
java.lang.Exception - a testing Exception.
public void testTimestamp()
throws java.lang.Exception
Test the timestamp method.
java.lang.Exception - a testing Exception.
public void testNode()
throws java.lang.Exception
Test the node method.
java.lang.Exception - a testing Exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||