net.sf.farrago.test
Class FarragoDdlGeneratorTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.eigenbase.test.DiffTestCase
net.sf.farrago.test.ResultSetTestCase
net.sf.farrago.test.FarragoTestCase
net.sf.farrago.test.FarragoDdlGeneratorTest
- All Implemented Interfaces:
- Test
public class FarragoDdlGeneratorTest
- extends FarragoTestCase
Unit test cases for FarragoDdlGenerator
.
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/test/FarragoDdlGeneratorTest.java#14 $
- Author:
- Jason Ouellette
Methods inherited from class net.sf.farrago.test.FarragoTestCase |
forceShutdown, getJdbcUri, getSession, getTestlogRoot, getTestlogRootStatic, newConnection, newJdbcEngineDriver, restoreParameters, restoreParameters, runCleanup, runSqlLineTest, runSqlLineTest, saveParameters, saveParameters, setRefFileDiffMasks, shouldDiff, staticSetUp, staticTearDown, tearDown, tearDownImpl, wrappedSuite, wrappedSuite |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
FarragoDdlGeneratorTest
public FarragoDdlGeneratorTest(String testName)
throws Exception
- Throws:
Exception
newDdlGenerator
protected DdlGenerator newDdlGenerator()
getDiffRepos
protected DiffRepository getDiffRepos()
suite
public static Test suite()
setUp
protected void setUp()
throws Exception
- Overrides:
setUp
in class FarragoTestCase
- Throws:
Exception
testExportSales
public void testExportSales()
exportSchema
private String exportSchema(String schemaName,
boolean includeNonSchemaElements)
testDdlGeneration
public void testDdlGeneration()
- Test DDL generation for objects that don't have all the optional clauses.
testCascade
public void testCascade()
throws Exception
- Throws:
Exception
appendStatementText
private void appendStatementText(StringBuilder sb,
GeneratedDdlStmt stmt)
- Appends all the statements in a
GeneratedDdlStmt
object to the
end of a string.
- Parameters:
sb
- StringBuilder object to hold the textstmt
- GeneratedDdlStmt object we want the text for
_testCustomSchema
public void _testCustomSchema()
throws Exception
- Throws:
Exception