1 6 package org.logicalcobwebs.proxool; 7 8 import java.util.Properties ; 9 import java.sql.Connection ; 10 import java.sql.DriverManager ; 11 12 19 public class DelegateConnectionTest extends AbstractProxoolTest { 20 21 24 public DelegateConnectionTest(String alias) { 25 super(alias); 26 } 27 28 31 public void testDelegateConnection() throws Exception { 32 String alias = "delegateConnection"; 33 String url = TestHelper.buildProxoolUrl(alias, 34 TestConstants.HYPERSONIC_DRIVER, 35 TestConstants.HYPERSONIC_TEST_URL); 36 Properties info = new Properties (); 37 info.setProperty(ProxoolConstants.USER_PROPERTY, TestConstants.HYPERSONIC_USER); 38 info.setProperty(ProxoolConstants.PASSWORD_PROPERTY, TestConstants.HYPERSONIC_PASSWORD); 39 Connection c1 = DriverManager.getConnection(url, info); 40 c1.close(); 42 } 43 44 } 45 | Popular Tags |