1 6 package org.logicalcobwebs.proxool.configuration; 7 8 import org.logicalcobwebs.proxool.AbstractProxoolTest; 9 import org.logicalcobwebs.proxool.ProxoolException; 10 import org.logicalcobwebs.proxool.ProxoolFacade; 11 import org.logicalcobwebs.proxool.TestHelper; 12 13 import java.sql.SQLException ; 14 15 23 public class PropertyConfiguratorTest extends AbstractProxoolTest { 24 25 28 public PropertyConfiguratorTest(String name) { 29 super(name); 30 } 31 32 38 public void testPropertyConfigurator() throws ProxoolException, SQLException { 39 PropertyConfigurator.configure("src/java-test/org/logicalcobwebs/proxool/configuration/test.properties"); 40 TestHelper.equalsCompleteAlternativeProperties(ProxoolFacade.getConnectionPoolDefinition("property-test")); 41 TestHelper.equalsCompleteAlternativeProperties(ProxoolFacade.getConnectionPoolDefinition("property-test-2")); 42 ProxoolFacade.removeConnectionPool("property-test"); 43 ProxoolFacade.removeConnectionPool("property-test-2"); 44 45 } 46 47 } 48 49 79 | Popular Tags |