Author: stliu
Date: 2010-05-19 14:29:45 -0400 (Wed, 19 May 2010)
New Revision: 19562
Added:
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/RollbackWork.java
Modified:
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/TestCase.java
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/TransactionTest.java
Log:
JBPAPP-2289 HSEARCH unit test failure:
org.hibernate.search.test.reader.functionality.TestableSharingBufferReaderProvider
Added:
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/RollbackWork.java
===================================================================
---
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/RollbackWork.java
(rev 0)
+++
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/RollbackWork.java 2010-05-19
18:29:45 UTC (rev 19562)
@@ -0,0 +1,42 @@
+/*
+ * Hibernate, Relational Persistence for Idiomatic Java
+ *
+ * Copyright (c) 2009, Red Hat Middleware LLC or third-party contributors as
+ * indicated by the @author tags or express copyright attribution
+ * statements applied by the authors. All third-party contributions are
+ * distributed under license by Red Hat Middleware LLC.
+ *
+ * This copyrighted material is made available to anyone wishing to use, modify,
+ * copy, or redistribute it subject to the terms and conditions of the GNU
+ * Lesser General Public License, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this distribution; if not, write to:
+ * Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA 02110-1301 USA
+ *
+ */
+package org.hibernate.search.test;
+
+import java.sql.Connection;
+import java.sql.SQLException;
+
+import org.hibernate.jdbc.Work;
+
+/**
+ *
+ * @author stliu
+ */
+public class RollbackWork implements Work{
+
+ public void execute( Connection connection ) throws SQLException {
+ connection.rollback();
+ }
+
+}
\ No newline at end of file
Modified:
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/TestCase.java
===================================================================
---
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/TestCase.java 2010-05-19
16:44:39 UTC (rev 19561)
+++
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/TestCase.java 2010-05-19
18:29:45 UTC (rev 19562)
@@ -2,8 +2,6 @@
package org.hibernate.search.test;
import java.io.InputStream;
-import java.sql.Connection;
-import java.sql.SQLException;
import org.apache.lucene.analysis.StopAnalyzer;
@@ -17,7 +15,6 @@
import org.hibernate.dialect.Dialect;
import org.hibernate.event.FlushEventListener;
import org.hibernate.event.def.DefaultFlushEventListener;
-import org.hibernate.jdbc.Work;
import org.hibernate.search.event.FullTextIndexEventListener;
/**
@@ -79,13 +76,6 @@
}
}
- private class RollbackWork implements Work{
-
- public void execute( Connection connection ) throws SQLException {
- connection.rollback();
- }
-
- }
protected void runTest() throws Throwable {
try {
super.runTest();
Modified:
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/TransactionTest.java
===================================================================
---
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/TransactionTest.java 2010-05-19
16:44:39 UTC (rev 19561)
+++
search/branches/v3_1_1_GA_CP/src/test/java/org/hibernate/search/test/TransactionTest.java 2010-05-19
18:29:45 UTC (rev 19562)
@@ -6,7 +6,6 @@
import org.apache.lucene.index.IndexReader;
import org.hibernate.Session;
-import org.hibernate.cfg.Configuration;
/**
* @author Emmanuel Bernard
Show replies by date