net.sf.farrago.test
Class FarragoSqlRunnerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.eigenbase.test.DiffTestCase
              extended by net.sf.farrago.test.ResultSetTestCase
                  extended by net.sf.farrago.test.FarragoTestCase
                      extended by net.sf.farrago.test.FarragoSqlRunnerTest
All Implemented Interfaces:
Test

public class FarragoSqlRunnerTest
extends FarragoTestCase

Rudimentary JUnit tests for the SqlRunner class.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/test/FarragoSqlRunnerTest.java#8 $
Author:
chard

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.farrago.test.FarragoTestCase
FarragoTestCase.Cleanup, FarragoTestCase.CleanupFactory
 
Field Summary
private static String password
           
private  String serverUrl
           
private  String testScript
           
private static String userName
           
 
Fields inherited from class net.sf.farrago.test.FarragoTestCase
allocOwner, connection, preparedStmt, repos, stmt, tracer
 
Fields inherited from class net.sf.farrago.test.ResultSetTestCase
resultSet
 
Fields inherited from class org.eigenbase.test.DiffTestCase
logFile, logOutputStream, refFile
 
Constructor Summary
FarragoSqlRunnerTest(String testName)
           
 
Method Summary
 void testInvalidPath()
           
 void testInvalidUrl()
           
 void testInvalidUser()
           
 void testNullPath()
           
 void testNullUrl()
           
 void testNullUser()
           
 void testScript()
           
 void testScriptWithRedirect()
           
 
Methods inherited from class net.sf.farrago.test.FarragoTestCase
forceShutdown, getJdbcUri, getSession, getTestlogRoot, getTestlogRootStatic, newConnection, newJdbcEngineDriver, restoreParameters, restoreParameters, runCleanup, runSqlLineTest, runSqlLineTest, saveParameters, saveParameters, setRefFileDiffMasks, setUp, shouldDiff, staticSetUp, staticTearDown, tearDown, tearDownImpl, wrappedSuite, wrappedSuite
 
Methods inherited from class net.sf.farrago.test.ResultSetTestCase
compareResultList, compareResultLists, compareResultSet, compareResultSetWithDelta, compareResultSetWithPattern, getResultSetCount
 
Methods inherited from class org.eigenbase.test.DiffTestCase
addDiffMask, addIgnorePattern, diffFile, diffLines, diffTestLog, fileContents, openTestLog, openTestLogOutputStream, setGC, setVerbose
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

userName

private static final String userName
See Also:
Constant Field Values

password

private static final String password

serverUrl

private String serverUrl

testScript

private String testScript
Constructor Detail

FarragoSqlRunnerTest

public FarragoSqlRunnerTest(String testName)
                     throws Exception
Throws:
Exception
Method Detail

testNullPath

public void testNullPath()

testNullUrl

public void testNullUrl()

testNullUser

public void testNullUser()

testInvalidPath

public void testInvalidPath()

testInvalidUrl

public void testInvalidUrl()

testInvalidUser

public void testInvalidUser()

testScript

public void testScript()
                throws SQLException
Throws:
SQLException

testScriptWithRedirect

public void testScriptWithRedirect()
                            throws IOException,
                                   SQLException
Throws:
IOException
SQLException