org.apache.commons.id.uuid.state
Class StateHelperTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.id.uuid.state.StateHelperTest
All Implemented Interfaces:
junit.framework.Test

public class StateHelperTest
extends junit.framework.TestCase

Unit tests for StateHelper.

Version:
$Revision: 480488 $ $Date: 2006-11-29 08:57:26 +0000 (Wed, 29 Nov 2006) $
Author:
Commons-Id team

Constructor Summary
StateHelperTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testDecodeMACAddress()
          Test the decodeMACAddress method.
 void testEncodeMACAddress()
          Test the encodeMACAddress method.
 void testGetClockImpl()
          Test getClockImpl method
 void testGetStateImpl()
          Test getStateImpl method
 void testNewClockSequence()
          Test newClockSequence method
 void testRandomNodeIdentifier()
          Test the randomNodeIdentifier method.
 
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

StateHelperTest

public StateHelperTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testRandomNodeIdentifier

public void testRandomNodeIdentifier()

Test the randomNodeIdentifier method.


testNewClockSequence

public void testNewClockSequence()
Test newClockSequence method


testGetClockImpl

public void testGetClockImpl()
Test getClockImpl method


testGetStateImpl

public void testGetStateImpl()
Test getStateImpl method


testDecodeMACAddress

public void testDecodeMACAddress()
Test the decodeMACAddress method.


testEncodeMACAddress

public void testEncodeMACAddress()
                          throws java.lang.Exception

Test the encodeMACAddress method.

Throws:
java.lang.Exception - a test Exception.


Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.