|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectname.angoca.db2sa.core.lexical.impl.ImplementationLexicalAnalyzerTest
public final class ImplementationLexicalAnalyzerTest
This is the set of test for the lexical analyzer. The inputs are phrases that represents the user's command, they are received like strings and this class tests its conversion to Tokens and analyze the results.
Control Version
Constructor Summary | |
---|---|
ImplementationLexicalAnalyzerTest()
Default constructor. |
Method Summary | |
---|---|
static void |
setUpBeforeClass()
Load the graph. |
static void |
tearDownAfterClass()
Clears the configuration file name property at the end of the test. |
void |
testCloseFirstParenthesis()
Test of the options for the 'create table t1 (c1 int, c2 char(10' command. |
void |
testComma()
Test of the options for the 'create table t2(c1 int' command. |
void |
testConvertionCrea()
Tests the token conversion. |
void |
testConvertionCreateTab()
Tests the token conversion 'create tab' -> 'create tab'. |
void |
testCreaPhrase1()
Test to complete the phrase crea (phrase). |
void |
testCreaPhrase2()
Test to complete the phrase crea (options). |
void |
testCreaPhrase3()
Test that the phrase 'crea' does not have several phrases. |
void |
testCreaPhrase4()
Test to complete the phrase 'crea' (object). |
void |
testCreateCommand()
Test of the options for the 'create' command. |
void |
testCreateTab()
Test the token completion tab -> table. |
void |
testCreateTableCommand1()
Test of the options for the 'create table' command. |
void |
testCreateTableCommand2()
Test of the options for the 'create table' command. |
void |
testCreateTableCommand3()
Test of the options for the 'create table' command. |
void |
testCreateTableCommand4()
Test of the options for the 'create table' command. |
void |
testCreateTableCommand4WithSpace()
Test of the options for the 'create table ' command. |
void |
testCreateTableTableNameCommand()
Test of the options for the 'create table <tableName>' command. |
void |
testCTtnParenthesis()
Test of the options for the 'create table <tableName>(' command. |
void |
testCTtnSpaceParenthesis()
Test of the options for the 'create table <tableName> (' command. |
void |
testCTtnSpaceParenthesisWithSpace()
Test of the options for the 'create table <tableName> ( ' command. |
void |
testDataType()
Test of the options for the 'create table t2(c1' command. |
void |
testDoubleSpace()
The string with two spaces returns a string empty. |
void |
testEmptyString1()
Empty string as a command gives also a completed phrase empty. |
void |
testEmptyString2()
Empty string as a command gives a set of options different to zero. |
void |
testEmptyString3()
An empty string does not have several way of phrases. |
void |
testInvalidCommand1()
Invalid, no options. |
void |
testInvalidCommand2()
Invalid, no options. |
void |
testNullAnswerReplacetoken()
Tries to add a null answer. |
void |
testNullPhrase()
Tests that a phrase cannot be null. |
void |
testNullPhraseReplacetoken()
Tries to add a null phrase. |
void |
testNullTokenInTokensReplacetoken()
Tries to add a null in the list of tokens. |
void |
testNullTokensReplacetoken()
Tries to add a null list of tokens. |
void |
testPrecision()
Test of the options for the 'create table t1 (c1 int, c2 char(' command. |
void |
testSecondColumn()
Test of the options for the 'create table t2(c1 int,' command. |
void |
testSeveralOptionsAfterColumn()
Test of the options for the 'create table t1 (c1 int, c2 char(10)' command. |
void |
testSpace1()
The string with just one space returns a string empty. |
void |
testSpace2()
The string with just one space returns a string with one space also. |
void |
testSpace3()
An space does not have several ways of phrases. |
void |
testValidCommand1()
Test of the options for the 'create table t1 (c1 int)' command. |
void |
testValidCommand2()
Test of the options for the 'create table t1 (c1 int, c2 char(10))' command. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImplementationLexicalAnalyzerTest()
Method Detail |
---|
public static void setUpBeforeClass() throws AbstractDB2SAException
AbstractDB2SAException
- Neverpublic static void tearDownAfterClass()
public void testCloseFirstParenthesis() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testComma() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testConvertionCrea() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testConvertionCreateTab() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testCreaPhrase1() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testCreaPhrase2() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testCreaPhrase3() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testCreaPhrase4() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testCreateCommand() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testCreateTab() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testCreateTableCommand1() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testCreateTableCommand2() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testCreateTableCommand3() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testCreateTableCommand4() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testCreateTableCommand4WithSpace() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testCreateTableTableNameCommand() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testCTtnParenthesis() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testCTtnSpaceParenthesis() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testCTtnSpaceParenthesisWithSpace() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testDataType() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testEmptyString1() throws AbstractDB2SAException
AbstractDB2SAException
- Neverpublic void testEmptyString2() throws AbstractDB2SAException
If the grammar was not defined is it possible to return zero options, however this is not a normal case.
AbstractDB2SAException
- Never.public void testEmptyString3() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testInvalidCommand1() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testInvalidCommand2() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testNullAnswerReplacetoken() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testNullPhrase() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testNullPhraseReplacetoken() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testNullTokenInTokensReplacetoken() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testNullTokensReplacetoken() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testPrecision() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testSecondColumn() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testSeveralOptionsAfterColumn() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testSpace1() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testDoubleSpace() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testSpace2() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testSpace3() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testValidCommand1() throws AbstractDB2SAException
AbstractDB2SAException
- Never.public void testValidCommand2() throws AbstractDB2SAException
AbstractDB2SAException
- Never.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |