ch.elca.el4j.tests.services.persistence.generic
Class UuidPrimaryKeyGeneratorTest

java.lang.Object
  extended by ch.elca.el4j.tests.services.persistence.generic.UuidPrimaryKeyGeneratorTest

public class UuidPrimaryKeyGeneratorTest
extends Object

This is the unit test for UuidPrimaryKeyGenerator.

Author:
Jacques-Olivier Haenni (JOH)
File-location:
UuidPrimaryKeyGeneratorTest
Last check-in date:
2009-08-04 15:48:31 +0200 (Di, 04. Aug 2009) by swismer for revision 3884

Constructor Summary
UuidPrimaryKeyGeneratorTest()
           
 
Method Summary
private  PrimaryKeyGenerator getPrimaryKeyGenerator()
           
 void testKeyFormat()
          Checks the keys' format.
 void testKeySize()
          Tests the key size.
 void testKeyUnicity()
          Tests whether generated keys are unique.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UuidPrimaryKeyGeneratorTest

public UuidPrimaryKeyGeneratorTest()
Method Detail

testKeySize

public void testKeySize()
Tests the key size.


testKeyUnicity

public void testKeyUnicity()
Tests whether generated keys are unique.


testKeyFormat

public void testKeyFormat()
Checks the keys' format.


getPrimaryKeyGenerator

private PrimaryKeyGenerator getPrimaryKeyGenerator()
Returns:
Returns a new key generator instance.


Copyright © 2005-2011 ELCA. All Rights Reserved.