|
||||||||||
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.state.NodeTest
public class NodeTest
Unit tests for Node
.
Constructor Summary | |
---|---|
NodeTest()
|
Method Summary | |
---|---|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testEqualsObject()
Test for boolean equals(Object) |
void |
testGetClockSequence()
Test for short getClockSequence. |
void |
testGetLastTimestamp()
Test for getLastTimestamp. |
void |
testGetNodeIdentifier()
Test for byte[] getNodeIdentifier |
void |
testGetUUIDTime()
Test for long getUUIDTime |
void |
testHashCode()
Tests the Node hashCode contract - for same id return same hashCode. |
void |
testNodebyteArray()
Test for constructor Node(byte[]) |
void |
testNodebyteArraylongshort()
Test for constructor Node(byte[], long, short) |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NodeTest()
Method Detail |
---|
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
public void testHashCode()
Tests the Node hashCode contract - for same id return same hashCode.
public void testNodebyteArray() throws java.lang.Exception
Test for constructor Node(byte[])
java.lang.Exception
- a test exception.public void testNodebyteArraylongshort()
public void testGetNodeIdentifier()
public void testGetClockSequence()
Test for short getClockSequence.
public void testGetUUIDTime() throws java.lang.Exception
java.lang.Exception
- a test exception.public void testEqualsObject()
public void testGetLastTimestamp() throws java.lang.Exception
java.lang.Exception
- a test exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |