|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.jomc.sequences.it.SequenceOperationsTest
@Generated(value="org.jomc.tools.SourceFileProcessor 1.0",
comments="See http://jomc.sourceforge.net/jomc/1.0/jomc-tools")
public class SequenceOperationsTest
extends Object
Testcase for SequenceOperations implementations.
Dependencies
SequenceDirectory"Dependency on'org.jomc.sequences.SequenceDirectory'(org.jomc.sequences.SequenceDirectory)at specification level 1.0 bound to an instance.
SequenceOperations"Dependency on'org.jomc.sequences.SequenceOperations'(org.jomc.sequences.SequenceOperations)at specification level 1.0 bound to an instance.
| Constructor and Description |
|---|
SequenceOperationsTest()
Creates a new SequenceOperationsTest instance. |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String... args)
Test runner entry point. |
void |
testIllegalArguments()
Tests the SequenceOperations.getNextSequenceValue(String) and
SequenceOperations.getNextSequenceValues(String,int) methods to handle illegal
arguments correctly by throwing a SequencesSystemException with non-null message. |
void |
testSequenceLimitException()
Tests the SequenceOperations.getNextSequenceValue(java.lang.String) and
SequenceOperations.getNextSequenceValues(java.lang.String, int) methods to throw a
SequenceLimitException when a maximum value is reached. |
void |
testSequenceNotFoundException()
Tests that requesting sequence values for unknown sequences is prevented by throwing a corresponding SequenceNotFoundException. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Generated(value="org.jomc.tools.SourceFileProcessor 1.0",
comments="See http://jomc.sourceforge.net/jomc/1.0/jomc-tools")
public SequenceOperationsTest()
SequenceOperationsTest instance.
| Method Detail |
|---|
public void testIllegalArguments()
throws Exception
SequenceOperations.getNextSequenceValue(String) and
SequenceOperations.getNextSequenceValues(String,int) methods to handle illegal
arguments correctly by throwing a SequencesSystemException with non-null message.
Exception
public void testSequenceNotFoundException()
throws Exception
SequenceNotFoundException.
Exception
public void testSequenceLimitException()
throws Exception
SequenceOperations.getNextSequenceValue(java.lang.String) and
SequenceOperations.getNextSequenceValues(java.lang.String, int) methods to throw a
SequenceLimitException when a maximum value is reached.
Exceptionpublic static void main(String... args)
This method sets up the JDK's LogManager with properties found at classpath location
"/logging.properties" and executes JUnitCore.main(java.lang.String...) passing the given arguments with this classes
name prepended.
args - Command line arguments.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||