org.databene.benerator.test
Class GeneratorClassTest

java.lang.Object
  extended by org.databene.benerator.test.ModelTest
      extended by org.databene.benerator.test.GeneratorTest
          extended by org.databene.benerator.test.GeneratorClassTest

public abstract class GeneratorClassTest
extends GeneratorTest

Provides methods for testing generators and standard tests that act on generically created generator instances.

Created: 13.11.2007 13:13:07

Author:
Volker Bergmann

Nested Class Summary
 
Nested classes/interfaces inherited from class org.databene.benerator.test.GeneratorTest
GeneratorTest.Helper
 
Field Summary
protected  java.lang.Class<? extends Generator> generatorClass
           
 
Fields inherited from class org.databene.benerator.test.ModelTest
context, dataModel, logger, testDescriptorProvider
 
Constructor Summary
GeneratorClassTest(java.lang.Class<? extends Generator> generatorClass)
           
 
Method Summary
protected  void assertCustomToStringMethod(Generator<?> generator)
           
 void testDefaultConstructor()
           
 void testDefaultGenerationIfValid()
           
 void testToString()
           
 
Methods inherited from class org.databene.benerator.test.GeneratorTest
assertAvailable, assertAvailable, assertComponents, assertEqualArrays, assertUnavailable, checkEqualDistribution, checkEqualDistribution, checkEqualDistribution, checkEqualDistribution, checkEqualDistribution, checkProductSet, close, countProducts, expectGeneratedSequence, expectGeneratedSequenceOnce, expectGeneratedSet, expectGenerations, expectRange, expectRangeOnce, expectRelativeWeights, expectUniqueGenerations, expectUniquelyGeneratedSet, expectUniqueProducts, format, initialize, printProducts, setCurrentProduct
 
Methods inherited from class org.databene.benerator.test.ModelTest
createArrayElement, createArrayType, createArrayType, createComplexType, createComplexType, createEntity, createId, createId, createId, createInstance, createInstance, createPart, createPart, createPart, createPartDescriptor, createReference, createSimpleType, createSimpleType, setUpContextAndDescriptorProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

generatorClass

protected java.lang.Class<? extends Generator> generatorClass
Constructor Detail

GeneratorClassTest

public GeneratorClassTest(java.lang.Class<? extends Generator> generatorClass)
Method Detail

testDefaultConstructor

public void testDefaultConstructor()
                            throws java.lang.Throwable
Throws:
java.lang.Throwable

testToString

public void testToString()
                  throws java.lang.Throwable
Throws:
java.lang.Throwable

testDefaultGenerationIfValid

public void testDefaultGenerationIfValid()
                                  throws java.lang.Throwable
Throws:
java.lang.Throwable

assertCustomToStringMethod

protected void assertCustomToStringMethod(Generator<?> generator)


Copyright © 2013. All Rights Reserved.