Author: bgoodin Date: Tue Jun 6 04:37:14 2006 New Revision: 412098 URL: http://svn.apache.org/viewvc?rev=412098&view=rev Log: IBATIS-28 Initial test and derby to support test
Added: ibatis/trunk/java/mapper/mapper2/devlib/derby.jar (with props) ibatis/trunk/java/mapper/mapper2/test/com/ibatis/sqlmap/MultiResultSetTest.java ibatis/trunk/java/mapper/mapper2/test/com/ibatis/sqlmap/maps/DerbySqlMapConfig.properties Modified: ibatis/trunk/java/mapper/mapper2/ (props changed) Propchange: ibatis/trunk/java/mapper/mapper2/ ------------------------------------------------------------------------------ --- svn:ignore (original) +++ svn:ignore Tue Jun 6 04:37:14 2006 @@ -1,6 +1,8 @@ + .classpath .project eclipse-build .settings bin classes +ibderby Added: ibatis/trunk/java/mapper/mapper2/devlib/derby.jar URL: http://svn.apache.org/viewvc/ibatis/trunk/java/mapper/mapper2/devlib/derby.jar?rev=412098&view=auto ============================================================================== Binary file - no diff available. Propchange: ibatis/trunk/java/mapper/mapper2/devlib/derby.jar ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: ibatis/trunk/java/mapper/mapper2/test/com/ibatis/sqlmap/MultiResultSetTest.java URL: http://svn.apache.org/viewvc/ibatis/trunk/java/mapper/mapper2/test/com/ibatis/sqlmap/MultiResultSetTest.java?rev=412098&view=auto ============================================================================== --- ibatis/trunk/java/mapper/mapper2/test/com/ibatis/sqlmap/MultiResultSetTest.java (added) +++ ibatis/trunk/java/mapper/mapper2/test/com/ibatis/sqlmap/MultiResultSetTest.java Tue Jun 6 04:37:14 2006 @@ -0,0 +1,21 @@ +package com.ibatis.sqlmap; + +import com.ibatis.common.resources.Resources; + + +public class MultiResultSetTest extends BaseSqlMapTest { + + // SETUP & TEARDOWN + + protected void setUp() throws Exception { + + initSqlMap( + "com/ibatis/sqlmap/maps/SqlMapConfig.xml", + Resources.getResourceAsProperties( + "com/ibatis/sqlmap/maps/DerbySqlMapConfig.properties")); + + initScript("scripts/account-init.sql"); + + } + +} Added: ibatis/trunk/java/mapper/mapper2/test/com/ibatis/sqlmap/maps/DerbySqlMapConfig.properties URL: http://svn.apache.org/viewvc/ibatis/trunk/java/mapper/mapper2/test/com/ibatis/sqlmap/maps/DerbySqlMapConfig.properties?rev=412098&view=auto ============================================================================== --- ibatis/trunk/java/mapper/mapper2/test/com/ibatis/sqlmap/maps/DerbySqlMapConfig.properties (added) +++ ibatis/trunk/java/mapper/mapper2/test/com/ibatis/sqlmap/maps/DerbySqlMapConfig.properties Tue Jun 6 04:37:14 2006 @@ -0,0 +1,7 @@ +driver=org.apache.derby.jdbc.EmbeddedDriver +url=jdbc:derby:ibderby;create=true +username= +password= + +SqlMapPath=com/ibatis/sqlmap/maps +dataSourceType=SIMPLE