|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jomc.sequences.it.SequenceDirectoryTest
@Generated(value="org.jomc.tools.SourceFileProcessor 1.0", comments="See http://jomc.sourceforge.net/jomc/1.0/jomc-tools") public class SequenceDirectoryTest extends Object
Testcase for SequenceDirectory implementations.
Properties
sequenceNameMaxLength
"
Property of typeint
.Maximum allowed length of a sequence name.
sequenceNameMinLength
"
Property of typeint
.Minimum required length of a sequence name.
Dependencies
SequenceDirectory
"Dependency on'org.jomc.sequences.SequenceDirectory'
(org.jomc.sequences.SequenceDirectory)
at specification level 1.0 bound to an instance.
Constructor and Description |
---|
SequenceDirectoryTest()
Creates a new SequenceDirectoryTest instance. |
Modifier and Type | Method and Description |
---|---|
protected void |
clearDirectory()
Removes all sequences from the directory. |
static org.jomc.sequences.Sequence |
getTestSequence()
Gets a sequence with valid data. |
static void |
main(String... args)
Test runner entry point. |
void |
testAddEditDeleteMany()
Tests that adding, editing and then removing multiple sequences leaves an empty directory. |
void |
testAddEditSearchDeleteLegalSequence()
Tests that a valid sequence can get added, edited, searched and removed. |
void |
testConcurrentModificationException()
Tests that a sequence cannot get edited or removed when it got changed concurrently. |
void |
testIllegalArguments()
Tests all SequenceDirectory methods to handle illegal arguments correctly by throwing
a SequencesSystemException with non-null message. |
void |
testSequenceExistsException()
Tests that adding a sequence twice is prevented by throwing a corresponding SequenceExistsException . |
void |
testSequenceNotFoundException()
Tests that updating or deleting an unknown sequence is prevented by throwing a corresponding SequenceNotFoundException . |
void |
testSequenceVetoException()
Tests that adding an illegal sequence or updating an existing sequence with illegal data is prevented by throwing a corresponding SequenceVetoException . |
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 SequenceDirectoryTest()
SequenceDirectoryTest
instance.
Method Detail |
---|
public static org.jomc.sequences.Sequence getTestSequence()
public void testIllegalArguments() throws Exception
SequenceDirectory
methods to handle illegal arguments correctly by throwing
a SequencesSystemException
with non-null message.
Exception
public void testAddEditSearchDeleteLegalSequence() throws Exception
Exception
public void testConcurrentModificationException() throws Exception
Exception
public void testSequenceVetoException() throws Exception
SequenceVetoException
.
Exception
public void testSequenceExistsException() throws Exception
SequenceExistsException
.
Exception
public void testSequenceNotFoundException() throws Exception
SequenceNotFoundException
.
Exception
public void testAddEditDeleteMany() throws Exception
Exception
protected void clearDirectory() throws Exception
Exception
public 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 |