[hibernate-commits] Hibernate SVN: r17797 - annotations/branches/v3_3_1_GA_CP/src/test/org/hibernate/test/annotations/entity.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Mon Oct 19 11:45:20 EDT 2009


Author: stliu
Date: 2009-10-19 11:45:20 -0400 (Mon, 19 Oct 2009)
New Revision: 17797

Modified:
   annotations/branches/v3_3_1_GA_CP/src/test/org/hibernate/test/annotations/entity/BasicHibernateAnnotationsTest.java
Log:
JBPAPP-1587 HHH-4503 Sybase - Annotations - unit tests using LOBs fail

Modified: annotations/branches/v3_3_1_GA_CP/src/test/org/hibernate/test/annotations/entity/BasicHibernateAnnotationsTest.java
===================================================================
--- annotations/branches/v3_3_1_GA_CP/src/test/org/hibernate/test/annotations/entity/BasicHibernateAnnotationsTest.java	2009-10-19 15:44:44 UTC (rev 17796)
+++ annotations/branches/v3_3_1_GA_CP/src/test/org/hibernate/test/annotations/entity/BasicHibernateAnnotationsTest.java	2009-10-19 15:45:20 UTC (rev 17797)
@@ -18,6 +18,9 @@
 public class BasicHibernateAnnotationsTest extends TestCase {
 
 	public void testEntity() throws Exception {
+		if( !getDialect().supportsExpectedLobUsagePattern() ){
+			return;
+		}
 		Forest forest = new Forest();
 		forest.setName( "Fontainebleau" );
 		Session s;
@@ -54,6 +57,9 @@
 	}
 
 	public void testVersioning() throws Exception {
+		if( !getDialect().supportsExpectedLobUsagePattern() ){
+			return;
+		}
 		Forest forest = new Forest();
 		forest.setName( "Fontainebleau" );
 		forest.setLength( 33 );
@@ -98,6 +104,9 @@
 	}
 
 	public void testPolymorphism() throws Exception {
+		if( !getDialect().supportsExpectedLobUsagePattern() ){
+			return;
+		}
 		Forest forest = new Forest();
 		forest.setName( "Fontainebleau" );
 		forest.setLength( 33 );
@@ -120,6 +129,9 @@
 	}
 
 	public void testType() throws Exception {
+		if( !getDialect().supportsExpectedLobUsagePattern() ){
+			return;
+		}
 		Forest f = new Forest();
 		f.setName( "Broceliande" );
 		String description = "C'est une enorme foret enchantee ou vivais Merlin et toute la clique";
@@ -226,6 +238,9 @@
 	}
 
 	public void testParameterizedType() throws Exception {
+		if( !getDialect().supportsExpectedLobUsagePattern() ){
+			return;
+		}
 		Session s;
 		Transaction tx;
 		s = openSession();
@@ -246,6 +261,9 @@
 	}
 
 	public void testSerialized() throws Exception {
+		if( !getDialect().supportsExpectedLobUsagePattern() ){
+			return;
+		}
 		Forest forest = new Forest();
 		forest.setName( "Shire" );
 		Country country = new Country();



More information about the hibernate-commits mailing list