|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.exceptions.id.IncrementFactoryTest
public class IncrementFactoryTest
Tests IncrementFactory
.
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 |
---|
public IncrementFactoryTest()
Method Detail |
---|
public void testDefaultConstructorStartsWith1()
1
.
public void testDefaultConstructorContinuesWith2()
1
and returns a value of 2 by the second call.
public void testConstructorStartsWithSpecifiedStartValue()
public void testConstructorWithIllegalStartValueSmallerThanZero()
public void testConstructorWithIllegalStartValueOfZero()
public void testOverflow()
public void testOverflowSecondCreateCall()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |