de.smartics.exceptions.id
Class IncrementFactoryTest

Package class diagram package IncrementFactoryTest
java.lang.Object
  extended by de.smartics.exceptions.id.IncrementFactoryTest

public class IncrementFactoryTest
     
     
extends Object

Tests IncrementFactory.

Author:
Robert Reiner

Constructor Summary
IncrementFactoryTest()
           
 
Method Summary
 void testConstructorStartsWithSpecifiedStartValue()
          Tests that the factory created with a dedicated start value really starts with it.
 void testConstructorWithIllegalStartValueOfZero()
          Tests that the constructor raises an exception if provided with a value of zero.
 void testConstructorWithIllegalStartValueSmallerThanZero()
          Tests that the constructor raises an exception if provided with a value smaller than zero.
 void testDefaultConstructorContinuesWith2()
          Tests that the factory created with the default constructor starts with 1 and returns a value of 2 by the second call.
 void testDefaultConstructorStartsWith1()
          Tests that the factory created with the default constructor starts with 1.
 void testOverflow()
          Tests that the factory handles the 'overflow' correctly.
 void testOverflowSecondCreateCall()
          Tests that the factory handles the second value after an 'overflow' correctly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncrementFactoryTest

public IncrementFactoryTest()
Method Detail

testDefaultConstructorStartsWith1

public void testDefaultConstructorStartsWith1()
Tests that the factory created with the default constructor starts with 1.


testDefaultConstructorContinuesWith2

public void testDefaultConstructorContinuesWith2()
Tests that the factory created with the default constructor starts with 1 and returns a value of 2 by the second call.


testConstructorStartsWithSpecifiedStartValue

public void testConstructorStartsWithSpecifiedStartValue()
Tests that the factory created with a dedicated start value really starts with it.


testConstructorWithIllegalStartValueSmallerThanZero

public void testConstructorWithIllegalStartValueSmallerThanZero()
Tests that the constructor raises an exception if provided with a value smaller than zero.


testConstructorWithIllegalStartValueOfZero

public void testConstructorWithIllegalStartValueOfZero()
Tests that the constructor raises an exception if provided with a value of zero.


testOverflow

public void testOverflow()
Tests that the factory handles the 'overflow' correctly.


testOverflowSecondCreateCall

public void testOverflowSecondCreateCall()
Tests that the factory handles the second value after an 'overflow' correctly.



Copyright © 2007-$2011 Kronseder & Reiner GmbH - smartics. All Rights Reserved.