name.angoca.db2sa.grammarReader.api
Class GrammarReaderControllerTest

Package class diagram package GrammarReaderControllerTest
java.lang.Object
  extended by name.angoca.db2sa.grammarReader.api.GrammarReaderControllerTest

public class GrammarReaderControllerTest
extends Object

Set of test of the grammar reader controller.

Control Version

Version:
1.2.0 2010-05-17
Author:
Andres Gomez Casanova (AngocA)

Constructor Summary
GrammarReaderControllerTest()
          Default constructor.
 
Method Summary
 void setUp()
          Refreshes the singletons for each tests.
 void testAbstractBadConstructorGrammar()
          Test an abstract bad constructor for the grammar reader.
 void testBadConstructorGrammar()
          Test a bad constructor for the grammar reader.
 void testEmptyValue()
          Tests that the grammar reader name cannot be empty.
 void testExtraCommas1()
          Tests to read the files with extra commas.
 void testExtraCommas2()
          Tests to read the files with extra commas.
 void testExtraCommas3()
          Tests to read the files with extra commas.
 void testExtraSpaces1()
          Tests to read the files with extra spaces.
 void testExtraSpaces2()
          Tests to read the files with extra spaces.
 void testExtraSpaces3()
          Tests to read the files with extra spaces.
 void testExtraSpaces4()
          Tests to read the files with extra spaces.
 void testInexistantGrammar()
          Test an invalid value for the grammar reader.
 void testInvalidValue()
          Tests that the grammar reader name cannot be empty.
 void testNullValue()
          Tests that the grammar reader name cannot be null.
 void testSameGrammarFileTwice()
          Tests the merge of the same file twice.
 void testTwoDifferentFileGrammars()
          Tests the merge of two different grammar files.
 void testTwoDifferentFileIdenticalGrammars()
          Tests the merge of two different files containing the same grammar.
 void testUnrecognizedGrammar()
          Try to load an unrecognized grammar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrammarReaderControllerTest

public GrammarReaderControllerTest()
Default constructor.

Method Detail

setUp

public final void setUp()
Refreshes the singletons for each tests.


testAbstractBadConstructorGrammar

public final void testAbstractBadConstructorGrammar()
                                             throws AbstractDB2SAException
Test an abstract bad constructor for the grammar reader.

Throws:
AbstractDB2SAException - Never.

testBadConstructorGrammar

public final void testBadConstructorGrammar()
                                     throws AbstractDB2SAException
Test a bad constructor for the grammar reader.

Throws:
AbstractDB2SAException - Never.

testInexistantGrammar

public final void testInexistantGrammar()
                                 throws AbstractDB2SAException
Test an invalid value for the grammar reader.

Throws:
AbstractDB2SAException - Never.

testNullValue

public final void testNullValue()
                         throws AbstractDB2SAException
Tests that the grammar reader name cannot be null.

Throws:
AbstractDB2SAException - Never

testEmptyValue

public final void testEmptyValue()
                          throws AbstractDB2SAException
Tests that the grammar reader name cannot be empty.

Throws:
AbstractDB2SAException - Never

testInvalidValue

public final void testInvalidValue()
                            throws AbstractDB2SAException
Tests that the grammar reader name cannot be empty.

Throws:
AbstractDB2SAException - Never

testSameGrammarFileTwice

public final void testSameGrammarFileTwice()
                                    throws AbstractDB2SAException
Tests the merge of the same file twice.

Throws:
AbstractDB2SAException - Never.

testTwoDifferentFileGrammars

public final void testTwoDifferentFileGrammars()
                                        throws AbstractDB2SAException
Tests the merge of two different grammar files.

Throws:
AbstractDB2SAException - Never.

testTwoDifferentFileIdenticalGrammars

public final void testTwoDifferentFileIdenticalGrammars()
                                                 throws AbstractDB2SAException
Tests the merge of two different files containing the same grammar.

Throws:
AbstractDB2SAException - Never.

testExtraCommas1

public final void testExtraCommas1()
                            throws AbstractDB2SAException
Tests to read the files with extra commas.

Throws:
AbstractDB2SAException - Never.

testExtraCommas2

public final void testExtraCommas2()
                            throws AbstractDB2SAException
Tests to read the files with extra commas.

Throws:
AbstractDB2SAException - Never.

testExtraCommas3

public final void testExtraCommas3()
                            throws AbstractDB2SAException
Tests to read the files with extra commas.

Throws:
AbstractDB2SAException - Never.

testExtraSpaces1

public final void testExtraSpaces1()
                            throws AbstractDB2SAException
Tests to read the files with extra spaces.

Throws:
AbstractDB2SAException - Never.

testExtraSpaces2

public final void testExtraSpaces2()
                            throws AbstractDB2SAException
Tests to read the files with extra spaces.

Throws:
AbstractDB2SAException - Never.

testExtraSpaces3

public final void testExtraSpaces3()
                            throws AbstractDB2SAException
Tests to read the files with extra spaces.

Throws:
AbstractDB2SAException - Never.

testExtraSpaces4

public final void testExtraSpaces4()
                            throws AbstractDB2SAException
Tests to read the files with extra spaces.

Throws:
AbstractDB2SAException - Never.

testUnrecognizedGrammar

public final void testUnrecognizedGrammar()
                                   throws AbstractDB2SAException
Try to load an unrecognized grammar.

Throws:
AbstractDB2SAException - Never.


Andres Gomez Casanova (AngocA) 2009-2010 Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.