net.sourceforge.sqlunit.test
Class ClassLoaderTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.sourceforge.sqlunit.test.ClassLoaderTest
All Implemented Interfaces:
junit.framework.Test

public class ClassLoaderTest
extends junit.framework.TestCase

Testing loading with custom classloader and custom DriverManager.

Version:
$Revision: 1.4 $
Author:
Sujit Pal (spal@users.sourceforge.net)

Constructor Summary
ClassLoaderTest(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 testClassLoadingOverFileUrl()
          Provides a use case for loading a Class from a URLClassLoader.
 void testGetConnectionWithSQLUnitDriverManager()
          Provides a use case for loading the driver from a JAR file which is not in the classpath and whose location is specified.
 
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

ClassLoaderTest

public ClassLoaderTest(java.lang.String name)
Boilerplate constructor.

Parameters:
name - the name of this test class.
Method Detail

main

public static void main(java.lang.String[] argv)
Boilerplate main method.

Parameters:
argv - the arguments (none).

suite

public static junit.framework.Test suite()
Boilerplate suite() method.

Returns:
a Test object.

testClassLoadingOverFileUrl

public final void testClassLoadingOverFileUrl()
                                       throws java.lang.Exception
Provides a use case for loading a Class from a URLClassLoader.

Throws:
java.lang.Exception - if the test failed.

testGetConnectionWithSQLUnitDriverManager

public final void testGetConnectionWithSQLUnitDriverManager()
                                                     throws java.lang.Exception
Provides a use case for loading the driver from a JAR file which is not in the classpath and whose location is specified.

Throws:
java.lang.Exception - if the test failed.