net.obsearch.storage
Class StorageValidationShort

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.obsearch.storage.StorageValidationShort
All Implemented Interfaces:
junit.framework.Test

public class StorageValidationShort
extends junit.framework.TestCase


Field Summary
static int NUM_OF_ITEMS
          Create a vector of pairs of size NUM_OF_ITEMS so that we can test the storage sub-system.
static int STORAGE_SIZE
           
 
Constructor Summary
StorageValidationShort()
           
 
Method Summary
static void validate(OBStoreShort storage)
          Validates a Storage for shorts.
static void validateDuplicates(OBStoreShort storage)
          Validates a Storage for shorts.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NUM_OF_ITEMS

public static final int NUM_OF_ITEMS
Create a vector of pairs of size NUM_OF_ITEMS so that we can test the storage sub-system.

See Also:
Constant Field Values

STORAGE_SIZE

public static final int STORAGE_SIZE
See Also:
Constant Field Values
Constructor Detail

StorageValidationShort

public StorageValidationShort()
Method Detail

validate

public static void validate(OBStoreShort storage)
                     throws OBStorageException,
                            OBException
Validates a Storage for shorts. Makes sure that insertions and deletions and the iterators are working well.

Parameters:
storage -
Throws:
OBStorageException
OBException

validateDuplicates

public static void validateDuplicates(OBStoreShort storage)
                               throws OBStorageException,
                                      OBException
Validates a Storage for shorts. Makes sure that insertions and deletions and the iterators are working well.

Parameters:
storage -
Throws:
OBStorageException
OBException


Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.