[Proxool-cvs] proxool/src/java-test/org/logicalcobwebs/proxool InjectableInterfaceTest.java,1.1,1.2
UNMAINTAINED!
Brought to you by:
billhorsman
From: <bil...@us...> - 2004-06-17 21:36:48
|
Update of /cvsroot/proxool/proxool/src/java-test/org/logicalcobwebs/proxool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29703/src/java-test/org/logicalcobwebs/proxool Modified Files: InjectableInterfaceTest.java Log Message: Removed call to private methods. They're going to fail anyway. Index: InjectableInterfaceTest.java =================================================================== RCS file: /cvsroot/proxool/proxool/src/java-test/org/logicalcobwebs/proxool/InjectableInterfaceTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** InjectableInterfaceTest.java 2 Jun 2004 20:59:52 -0000 1.1 --- InjectableInterfaceTest.java 17 Jun 2004 21:36:39 -0000 1.2 *************** *** 6,9 **** --- 6,12 ---- package org.logicalcobwebs.proxool; + import org.logicalcobwebs.logging.Log; + import org.logicalcobwebs.logging.LogFactory; + import java.util.Properties; import java.sql.Connection; *************** *** 22,25 **** --- 25,30 ---- public class InjectableInterfaceTest extends AbstractProxoolTest { + private static final Log LOG = LogFactory.getLog(InjectableInterfaceTest.class); + /** * @see AbstractProxoolTest *************** *** 44,49 **** // Can we cast it? HsqlConnectionIF hc = (HsqlConnectionIF) c1; ! // Can we call one of vendor specific methods? ! hc.checkClosed(); // Does close() still work? hc.close(); --- 49,53 ---- // Can we cast it? HsqlConnectionIF hc = (HsqlConnectionIF) c1; ! // TODO - need to test a vendor specific method? // Does close() still work? hc.close(); *************** *** 62,72 **** info.setProperty(ProxoolConstants.USER_PROPERTY, TestConstants.HYPERSONIC_USER); info.setProperty(ProxoolConstants.PASSWORD_PROPERTY, TestConstants.HYPERSONIC_PASSWORD); ! info.setProperty(ProxoolConstants.INJECTABLE_STATEMENT_INTERFACE_NAME_PROPERTY, HsqlConnectionIF.class.getName()); Connection c1 = DriverManager.getConnection(url, info); Statement s = c1.createStatement(); // Can we cast it? HsqlStatementIF hs = (HsqlStatementIF) s; ! // Can we call one of vendor specific methods? ! hs.checkClosed(); // Does close() still work? hs.close(); --- 66,76 ---- info.setProperty(ProxoolConstants.USER_PROPERTY, TestConstants.HYPERSONIC_USER); info.setProperty(ProxoolConstants.PASSWORD_PROPERTY, TestConstants.HYPERSONIC_PASSWORD); ! info.setProperty(ProxoolConstants.INJECTABLE_STATEMENT_INTERFACE_NAME_PROPERTY, HsqlStatementIF.class.getName()); Connection c1 = DriverManager.getConnection(url, info); Statement s = c1.createStatement(); // Can we cast it? HsqlStatementIF hs = (HsqlStatementIF) s; ! // TODO : call a vendor specific method? ! // hs.checkClosed(); // Does close() still work? hs.close(); *************** *** 85,95 **** info.setProperty(ProxoolConstants.USER_PROPERTY, TestConstants.HYPERSONIC_USER); info.setProperty(ProxoolConstants.PASSWORD_PROPERTY, TestConstants.HYPERSONIC_PASSWORD); ! info.setProperty(ProxoolConstants.INJECTABLE_STATEMENT_INTERFACE_NAME_PROPERTY, HsqlConnectionIF.class.getName()); Connection c1 = DriverManager.getConnection(url, info); PreparedStatement ps = c1.prepareStatement(TestConstants.HYPERSONIC_TEST_SQL); // Can we cast it? HsqlPreparedStatementIF hps = (HsqlPreparedStatementIF) ps; ! // Can we call one of vendor specific methods? ! hps.build(); // Does close() still work? hps.close(); --- 89,99 ---- info.setProperty(ProxoolConstants.USER_PROPERTY, TestConstants.HYPERSONIC_USER); info.setProperty(ProxoolConstants.PASSWORD_PROPERTY, TestConstants.HYPERSONIC_PASSWORD); ! info.setProperty(ProxoolConstants.INJECTABLE_PREPARED_STATEMENT_INTERFACE_NAME_PROPERTY, HsqlPreparedStatementIF.class.getName()); Connection c1 = DriverManager.getConnection(url, info); PreparedStatement ps = c1.prepareStatement(TestConstants.HYPERSONIC_TEST_SQL); // Can we cast it? HsqlPreparedStatementIF hps = (HsqlPreparedStatementIF) ps; ! // TODO : call a vendor specific method? ! // hps.build(); // Does close() still work? hps.close(); *************** *** 108,118 **** info.setProperty(ProxoolConstants.USER_PROPERTY, TestConstants.HYPERSONIC_USER); info.setProperty(ProxoolConstants.PASSWORD_PROPERTY, TestConstants.HYPERSONIC_PASSWORD); ! info.setProperty(ProxoolConstants.INJECTABLE_STATEMENT_INTERFACE_NAME_PROPERTY, HsqlConnectionIF.class.getName()); Connection c1 = DriverManager.getConnection(url, info); CallableStatement cs = c1.prepareCall(TestConstants.HYPERSONIC_TEST_SQL); // Can we cast it? (Note: HSQLDB uses the same class for both Prepared and Callable statements) HsqlPreparedStatementIF hps = (HsqlPreparedStatementIF) cs; ! // Can we call one of vendor specific methods? ! hps.build(); // Does close() still work? hps.close(); --- 112,121 ---- info.setProperty(ProxoolConstants.USER_PROPERTY, TestConstants.HYPERSONIC_USER); info.setProperty(ProxoolConstants.PASSWORD_PROPERTY, TestConstants.HYPERSONIC_PASSWORD); ! info.setProperty(ProxoolConstants.INJECTABLE_CALLABLE_STATEMENT_INTERFACE_NAME_PROPERTY, HsqlPreparedStatementIF.class.getName()); Connection c1 = DriverManager.getConnection(url, info); CallableStatement cs = c1.prepareCall(TestConstants.HYPERSONIC_TEST_SQL); // Can we cast it? (Note: HSQLDB uses the same class for both Prepared and Callable statements) HsqlPreparedStatementIF hps = (HsqlPreparedStatementIF) cs; ! // TODO - call a vendor specific method? // Does close() still work? hps.close(); *************** *** 124,127 **** --- 127,133 ---- Revision history: $Log$ + Revision 1.2 2004/06/17 21:36:39 billhorsman + Removed call to private methods. They're going to fail anyway. + Revision 1.1 2004/06/02 20:59:52 billhorsman New injectable interface tests |