[Proxool-cvs] proxool/src/java-test/org/logicalcobwebs/proxool DataSourceTest.java,NONE,1.1 AllTests
UNMAINTAINED!
Brought to you by:
billhorsman
|
From: <bil...@us...> - 2003-04-19 13:01:06
|
Update of /cvsroot/proxool/proxool/src/java-test/org/logicalcobwebs/proxool In directory sc8-pr-cvs1:/tmp/cvs-serv13532/src/java-test/org/logicalcobwebs/proxool Modified Files: AllTests.java Added Files: DataSourceTest.java Log Message: improve tests --- NEW FILE: DataSourceTest.java --- /* * This software is released under a licence similar to the Apache Software Licence. * See org.logicalcobwebs.proxool.package.html for details. * The latest version is available at http://proxool.sourceforge.net */ package org.logicalcobwebs.proxool; import java.sql.SQLException; /** * Test for {@link org.logicalcobwebs.proxool.BasicDataSource} * @version $Revision: 1.1 $, $Date: 2003/04/19 13:01:01 $ * @author bill * @author $Author: billhorsman $ (current maintainer) * @since Proxool 0.8 */ public class DataSourceTest extends AbstractProxoolTest { public DataSourceTest(String alias) { super(alias); } public void testDirectRegistration() throws SQLException, ProxoolException { String alias = "directRegistration"; // Use BasicDataSource directly BasicDataSource bds = new BasicDataSource(); bds.setAlias(alias); bds.setUrl(TestConstants.HYPERSONIC_TEST_URL); bds.setDriver(TestConstants.HYPERSONIC_DRIVER); bds.setUser(TestConstants.HYPERSONIC_USER); bds.setPassword(TestConstants.HYPERSONIC_PASSWORD); bds.getConnection().close(); assertEquals("servedCount", 1, ProxoolFacade.getSnapshot(alias).getServedCount()); } } /* Revision history: $Log: */ Index: AllTests.java =================================================================== RCS file: /cvsroot/proxool/proxool/src/java-test/org/logicalcobwebs/proxool/AllTests.java,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** AllTests.java 11 Mar 2003 14:58:30 -0000 1.18 --- AllTests.java 19 Apr 2003 13:01:01 -0000 1.19 *************** *** 31,34 **** --- 31,35 ---- suite.addTestSuite(ConnectionListenerTest.class); suite.addTestSuite(ConnectionResetterTest.class); + suite.addTestSuite(DataSourceTest.class); suite.addTestSuite(DriverTest.class); suite.addTestSuite(ConnectionPoolTests.class); *************** *** 59,62 **** --- 60,66 ---- Revision history: $Log$ + Revision 1.19 2003/04/19 13:01:01 billhorsman + improve tests + Revision 1.18 2003/03/11 14:58:30 billhorsman put PerformanceTest back in the global test |