import junit.framework.TestCase;

public class ClassLoaderTest extends TestCase
{

	public void startUp() throws Exception
	{
	}

	public void testDriverLoad() throws Exception
	{

		// File baseDir = new File(
		// "D:\\eclipse3.3\\workspace\\Sticker\\postgresql-8.1-408.jdbc3.jar")
		// .getCanonicalFile();
		// URL baseURL = baseDir.toURL();
		//
		// URLClassLoader loader = URLClassLoader.newInstance(
		// new URL[] { baseURL }, this.getClass().getClassLoader());
		//
		// Class<Driver> driverClass = (Class<Driver>) Class.forName(
		// "org.postgresql.Driver", true, loader);
		// Driver driver = driverClass.newInstance();
		// Properties prop = new Properties();
		// prop.put("user", "murakami");
		// prop.put("password", "murakami");
		//
		// Connection con = driver.connect(
		// "jdbc:postgresql://192.168.1.29:5432/stickerdb", prop);
		//
		// super.assertNotNull(con);
	}
}
