lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject svn commit: r823429 - /lucene/solr/trunk/contrib/dataimporthandler/src/test/java/org/apache/solr/handler/dataimport/TestJdbcDataSource.java
Date Fri, 09 Oct 2009 07:11:34 GMT
Author: noble
Date: Fri Oct  9 07:11:34 2009
New Revision: 823429

URL: http://svn.apache.org/viewvc?rev=823429&view=rev
Log:
SOLR-1500 testcases have to reflect the change

Modified:
    lucene/solr/trunk/contrib/dataimporthandler/src/test/java/org/apache/solr/handler/dataimport/TestJdbcDataSource.java

Modified: lucene/solr/trunk/contrib/dataimporthandler/src/test/java/org/apache/solr/handler/dataimport/TestJdbcDataSource.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/contrib/dataimporthandler/src/test/java/org/apache/solr/handler/dataimport/TestJdbcDataSource.java?rev=823429&r1=823428&r2=823429&view=diff
==============================================================================
--- lucene/solr/trunk/contrib/dataimporthandler/src/test/java/org/apache/solr/handler/dataimport/TestJdbcDataSource.java
(original)
+++ lucene/solr/trunk/contrib/dataimporthandler/src/test/java/org/apache/solr/handler/dataimport/TestJdbcDataSource.java
Fri Oct  9 07:11:34 2009
@@ -82,7 +82,7 @@
 
     EasyMock.expect(dataSource.getConnection()).andReturn(connection);
     connection.setAutoCommit(false);
-    connection.setHoldability(1);
+//    connection.setHoldability(1);
 
     mockControl.replay();
 
@@ -101,6 +101,7 @@
     props.put(JdbcDataSource.JNDI_NAME, "java:comp/env/jdbc/JndiDB");
     props.put("user", "Fred");
     props.put("password", "4r3d");
+    props.put("holdability", "HOLD_CURSORS_OVER_COMMIT");
 
     EasyMock.expect(dataSource.getConnection("Fred", "4r3d")).andReturn(
             connection);
@@ -129,6 +130,7 @@
 
     props.put(JdbcDataSource.DRIVER, driver.getClass().getName());
     props.put(JdbcDataSource.URL, "jdbc:fakedb");
+    props.put("holdability", "HOLD_CURSORS_OVER_COMMIT");
     mockControl.replay();
 
     Connection conn = jdbcDataSource.createConnectionFactory(context, props)



Mime
View raw message