name.angoca.db2sa.core.syntactic.impl
Class ImplementationSyntacticAnalyzerTest

Package class diagram package ImplementationSyntacticAnalyzerTest
java.lang.Object
  extended by name.angoca.db2sa.core.syntactic.impl.ImplementationSyntacticAnalyzerTest

public final class ImplementationSyntacticAnalyzerTest
extends Object

Set of test of the implementation of the syntax analyzer.

Control Version

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

Constructor Summary
ImplementationSyntacticAnalyzerTest()
          Default constructor.
 
Method Summary
static void setUpBeforeClass()
          Reads the graph just once for all tests.
static void tearDownAfterClass()
          Clears the configuration file name property at the end of the test.
 void testGetOptions0()
          Test the possible options of an empty command.
 void testGetOptions0options()
          Test the possible options of an empty command (Only options).
 void testGetOptions0phrase()
          Test the possible options of an empty command (Only phrase).
 void testGetOptions1()
          Test the possible options of a 'create' command.
 void testGetOptions1options()
          Test the possible options of a 'create' command (Only options).
 void testGetOptions1phrase()
          Test the possible options of a 'create' command (Only phrase).
 void testGetOptions1WithSpace()
          Test the possible options of a 'create ' command.
 void testGetOptions2()
          Test the possible options of a 'create table' command.
 void testGetOptions2options()
          Test the possible options of a 'create table' command (Only options).
 void testGetOptions2phrase()
          Test the possible options of a 'create table' command (Only phrase).
 void testGetOptions2WithSpace()
          Test the possible options of a 'create table ' command.
 void testGetOptions3()
          Test the possible options of a 'create table t1' command.
 void testGetOptions3options()
          Test the possible options of a 'create table t1' command (Only options).
 void testGetOptions3phrase()
          Test the possible options of a 'create table t1' command (Only phrase).
 void testGetOptions4()
          Test the possible options of a 'create table t1 (' command.
 void testGetOptions4options()
          Test the possible options of a 'create table t1 (' command (Only options).
 void testGetOptions4phrase()
          Test the possible options of a 'create table t1 (' command (Only phrase).
 void testGetOptions5()
          Test the possible options of a 'create table t1 (c1 int)' command.
 void testGetOptions6()
          Test the possible options of a 'create table t1 (c1 int) in ts1' command.
 void testGetOptions7()
          Test the possible options of a 'create table t1 (c1 int) in' command.
 void testGetOptions8()
          Test the possible options of a 'create tab' command.
 void testInvalidFirstToken()
          This is a test of an invalid initial token.
 void testInvalidSecondToken()
          This is a test of an invalid token.
 void testNullGetOption()
          Tests that the get option method cannot receive a null parameter.
 void testNullTokenGetOption()
          Tests that the get option method cannot receive a null token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImplementationSyntacticAnalyzerTest

public ImplementationSyntacticAnalyzerTest()
Default constructor.

Method Detail

setUpBeforeClass

public static void setUpBeforeClass()
                             throws AbstractDB2SAException
Reads the graph just once for all tests.

Throws:
AbstractDB2SAException - Never.

tearDownAfterClass

public static void tearDownAfterClass()
Clears the configuration file name property at the end of the test.


testGetOptions0

public void testGetOptions0()
                     throws AbstractDB2SAException
Test the possible options of an empty command.

Throws:
AbstractDB2SAException - Never

testGetOptions0options

public void testGetOptions0options()
                            throws AbstractDB2SAException
Test the possible options of an empty command (Only options).

Throws:
AbstractDB2SAException - Never

testGetOptions0phrase

public void testGetOptions0phrase()
                           throws AbstractDB2SAException
Test the possible options of an empty command (Only phrase).

Throws:
AbstractDB2SAException - Never

testGetOptions1

public void testGetOptions1()
                     throws AbstractDB2SAException
Test the possible options of a 'create' command.

Throws:
AbstractDB2SAException - Never

testGetOptions1options

public void testGetOptions1options()
                            throws AbstractDB2SAException
Test the possible options of a 'create' command (Only options).

Throws:
AbstractDB2SAException - Never

testGetOptions1phrase

public void testGetOptions1phrase()
                           throws AbstractDB2SAException
Test the possible options of a 'create' command (Only phrase).

Throws:
AbstractDB2SAException - Never

testGetOptions1WithSpace

public void testGetOptions1WithSpace()
                              throws AbstractDB2SAException
Test the possible options of a 'create ' command.

Throws:
AbstractDB2SAException - Never

testGetOptions2

public void testGetOptions2()
                     throws AbstractDB2SAException
Test the possible options of a 'create table' command.

Throws:
AbstractDB2SAException - Never

testGetOptions2options

public void testGetOptions2options()
                            throws AbstractDB2SAException
Test the possible options of a 'create table' command (Only options).

Throws:
AbstractDB2SAException - Never

testGetOptions2phrase

public void testGetOptions2phrase()
                           throws AbstractDB2SAException
Test the possible options of a 'create table' command (Only phrase).

Throws:
AbstractDB2SAException - Never

testGetOptions2WithSpace

public void testGetOptions2WithSpace()
                              throws AbstractDB2SAException
Test the possible options of a 'create table ' command.

Throws:
AbstractDB2SAException - Never

testGetOptions3

public void testGetOptions3()
                     throws AbstractDB2SAException
Test the possible options of a 'create table t1' command.

Throws:
AbstractDB2SAException - Never

testGetOptions3options

public void testGetOptions3options()
                            throws AbstractDB2SAException
Test the possible options of a 'create table t1' command (Only options).

Throws:
AbstractDB2SAException - Never

testGetOptions3phrase

public void testGetOptions3phrase()
                           throws AbstractDB2SAException
Test the possible options of a 'create table t1' command (Only phrase).

Throws:
AbstractDB2SAException - Never

testGetOptions4

public void testGetOptions4()
                     throws AbstractDB2SAException
Test the possible options of a 'create table t1 (' command.

Throws:
AbstractDB2SAException - Never

testGetOptions4options

public void testGetOptions4options()
                            throws AbstractDB2SAException
Test the possible options of a 'create table t1 (' command (Only options).

Throws:
AbstractDB2SAException - Never

testGetOptions4phrase

public void testGetOptions4phrase()
                           throws AbstractDB2SAException
Test the possible options of a 'create table t1 (' command (Only phrase).

Throws:
AbstractDB2SAException - Never

testGetOptions5

public void testGetOptions5()
                     throws AbstractDB2SAException
Test the possible options of a 'create table t1 (c1 int)' command. This is a complete command.

Throws:
AbstractDB2SAException - Never

testGetOptions6

public void testGetOptions6()
                     throws AbstractDB2SAException
Test the possible options of a 'create table t1 (c1 int) in ts1' command.

Throws:
AbstractDB2SAException - Never

testGetOptions7

public void testGetOptions7()
                     throws AbstractDB2SAException
Test the possible options of a 'create table t1 (c1 int) in' command.

Throws:
AbstractDB2SAException - Never

testGetOptions8

public void testGetOptions8()
                     throws AbstractDB2SAException
Test the possible options of a 'create tab' command.

Throws:
AbstractDB2SAException - Never

testInvalidFirstToken

public void testInvalidFirstToken()
                           throws AbstractDB2SAException
This is a test of an invalid initial token.

Throws:
AbstractDB2SAException - Never

testInvalidSecondToken

public void testInvalidSecondToken()
                            throws AbstractDB2SAException
This is a test of an invalid token.

Throws:
AbstractDB2SAException - Never

testNullGetOption

public void testNullGetOption()
                       throws AbstractDB2SAException
Tests that the get option method cannot receive a null parameter.

Throws:
AbstractDB2SAException - Never.

testNullTokenGetOption

public void testNullTokenGetOption()
                            throws AbstractDB2SAException
Tests that the get option method cannot receive a null token.

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.