Author: stliu
Date: 2009-12-29 01:26:18 -0500 (Tue, 29 Dec 2009)
New Revision: 18334
Modified:
core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/criteria/LongInElementsTest.java
Log:
JBPAPP-3089 HHH-2166 update testcase to skip mssql server and oracle due to HHH-1123
Modified:
core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/criteria/LongInElementsTest.java
===================================================================
---
core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/criteria/LongInElementsTest.java 2009-12-29
06:24:40 UTC (rev 18333)
+++
core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/criteria/LongInElementsTest.java 2009-12-29
06:26:18 UTC (rev 18334)
@@ -32,6 +32,9 @@
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.criterion.Restrictions;
+import org.hibernate.dialect.Dialect;
+import org.hibernate.dialect.Oracle8iDialect;
+import org.hibernate.dialect.SQLServerDialect;
import org.hibernate.junit.functional.FunctionalTestCase;
import org.hibernate.test.hql.StateProvince;
@@ -53,7 +56,7 @@
return new String[] { "criteria/Animal.hbm.xml" };
}
- //HHH-1123
+ //HHH-2166
public void testLongInElementsByHQL(){
Session session = openSession();
Transaction t = session.beginTransaction();
@@ -77,8 +80,8 @@
}
- //HHH-1123
- public void te2stLongInElementsByCriteria(){
+ //HHH-2166
+ public void testLongInElementsByCriteria(){
Session session = openSession();
Transaction t = session.beginTransaction();
@@ -101,6 +104,13 @@
}
+ @Override
+ public boolean appliesTo( Dialect dialect ) {
+ //HHH-1123
+ return !(dialect instanceof SQLServerDialect) && !(dialect instanceof
Oracle8iDialect);
+
+ }
+
private List createLotsOfElements(){
List list = new ArrayList();
for ( int i = 0; i < ELEMENTS_SIZE; i++ ){
Show replies by date