|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
net.sourceforge.sqlunit.test.IncludeFileParserTest
public class IncludeFileParserTest
Runs some tests of the Include File Parser.
Constructor Summary | |
---|---|
IncludeFileParserTest(java.lang.String name)
Boilerplate constructor. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] argv)
Boilerplate main method. |
static junit.framework.Test |
suite()
Boilerplate suite() method. |
void |
testEmptyIncludeFile()
Testing the parser against an empty file. |
void |
testExecuteProcConversion()
Test the EXEC PROCEDURE conversion to JDBC CALL. |
void |
testMultilineComment()
Runs a test case from Satish Chitnis about multi-line comments on top of a stored procedure call. |
void |
testParseAsaFiles()
Parses the SQL files in the test/asa directory to ensure that they all parse correctly. |
void |
testSingleLineInIncludedFile()
Test with single SQL string with trailing semicolon delimiter. |
void |
testWithEmbeddedBlankLines()
Test with embedded blanks between each command. |
void |
testWithGoDelimiter()
Testing the parser against all statements, with "go" delimiter. |
void |
testWithLeadingSemicolonDelimiter()
Testing the parser against all statements, with leading ; delimiter. |
void |
testWithOracleFile()
Test with an externally supplied file containing Oracle PL/SQL. |
void |
testWithSlashDelimiter()
Testing the parser against all statements, with / delimiter. |
void |
testWithSybaseFile()
Test with an externally supplied file containing Sybase T-SQL. |
void |
testWithTrailingSemicolonDelimiter()
Testing the parser against all statements, with trailing ; delimiter. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
---|
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IncludeFileParserTest(java.lang.String name)
name
- the name of this test class.Method Detail |
---|
public static void main(java.lang.String[] argv)
argv
- the arguments (none).public static junit.framework.Test suite()
public final void testEmptyIncludeFile() throws java.lang.Exception
java.lang.Exception
- if there was a problem with the test.public final void testWithSlashDelimiter() throws java.lang.Exception
java.lang.Exception
- if there was a problem with the test.public final void testWithLeadingSemicolonDelimiter() throws java.lang.Exception
java.lang.Exception
- if there was a problem with the test.public final void testWithGoDelimiter() throws java.lang.Exception
java.lang.Exception
- if there was a problem with the test.public final void testWithTrailingSemicolonDelimiter() throws java.lang.Exception
java.lang.Exception
- if there was a problem with the test.public final void testMultilineComment() throws java.lang.Exception
java.lang.Exception
- if there was a problem with the test.public final void testWithEmbeddedBlankLines() throws java.lang.Exception
java.lang.Exception
- if there was a problem with the test.public final void testExecuteProcConversion() throws java.lang.Exception
java.lang.Exception
- if there was a problem with the test.public final void testParseAsaFiles() throws java.lang.Exception
java.lang.Exception
- if there was a problem with the test.public final void testWithOracleFile() throws java.lang.Exception
java.lang.Exception
- if there was a problem with the test.public final void testWithSybaseFile() throws java.lang.Exception
java.lang.Exception
- if there was a problem with the test.public final void testSingleLineInIncludedFile() throws java.lang.Exception
java.lang.Exception
- if there is a problem with the test.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |