net.sf.sasl.common.clock
Class SimpleLogicalClockTest

java.lang.Object
  extended by net.sf.sasl.common.clock.SimpleLogicalClockTest

public class SimpleLogicalClockTest
extends Object

Test cases for the SimpleLogicalClock class.

Author:
Philipp Förmer

Constructor Summary
SimpleLogicalClockTest()
           
 
Method Summary
 void setUp()
           
 void testGetCurrentClockValue()
          Tests cases for SimpleLogicalClock.getCurrentClockValue() and SimpleLogicalClock.nextClockValue().
 void testGetSharedClockInstance()
          Tests cases for getSharedClockInstance().
 void testInitialClockValueConstructor()
          Tests cases for SimpleLogicalClock(long).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLogicalClockTest

public SimpleLogicalClockTest()
Method Detail

setUp

public void setUp()

testInitialClockValueConstructor

public void testInitialClockValueConstructor()
                                      throws Exception
Tests cases for SimpleLogicalClock(long).

Throws:
Exception

testGetSharedClockInstance

public void testGetSharedClockInstance()
                                throws Exception
Tests cases for getSharedClockInstance().

Throws:
Exception

testGetCurrentClockValue

public void testGetCurrentClockValue()
                              throws Exception
Tests cases for SimpleLogicalClock.getCurrentClockValue() and SimpleLogicalClock.nextClockValue(). Also tests the initial state.

Throws:
Exception


Copyright © 2010. All Rights Reserved.