ePOST API

rice.pastry.testing
Class IdRangeUnit

java.lang.Object
  extended by rice.pastry.testing.IdRangeUnit

public class IdRangeUnit
extends java.lang.Object

IdRangeUnit tests the IdRange class.

Version:
$Id: IdRangeUnit.java 2844 2005-12-15 13:07:05Z jeffh $
Author:
Peter Druschel

Constructor Summary
IdRangeUnit()
           
 
Method Summary
 IdRange createEmptyIdRange()
           
 IdRange createFullIdRange()
           
 IdRange createIdRangeEndingIn(Id cw)
           
 IdRange createIdRangeStartingWith(Id ccw)
           
 Id createIdWithPrefix(byte b)
           
 IdRange createRandomIdRange()
           
 void diffSubtractTest(IdRange r1, IdRange r2)
           
 void equalityTest(IdRange r1, IdRange r2)
           
static void main(java.lang.String[] args)
           
 void mergeIntersectTest(IdRange r1, IdRange r2)
           
 void mergeTest(IdRange r1, IdRange r2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdRangeUnit

public IdRangeUnit()
Method Detail

createRandomIdRange

public IdRange createRandomIdRange()

createFullIdRange

public IdRange createFullIdRange()

createEmptyIdRange

public IdRange createEmptyIdRange()

createIdRangeStartingWith

public IdRange createIdRangeStartingWith(Id ccw)

createIdRangeEndingIn

public IdRange createIdRangeEndingIn(Id cw)

createIdWithPrefix

public Id createIdWithPrefix(byte b)

equalityTest

public void equalityTest(IdRange r1,
                         IdRange r2)

mergeIntersectTest

public void mergeIntersectTest(IdRange r1,
                               IdRange r2)

diffSubtractTest

public void diffSubtractTest(IdRange r1,
                             IdRange r2)

mergeTest

public void mergeTest(IdRange r1,
                      IdRange r2)

main

public static void main(java.lang.String[] args)

ePOST API

Copyright © 2001-2005 - Rice Pastry.