[hibernate-commits] Hibernate SVN: r17796 - core/trunk/annotations/src/test/java/org/hibernate/test/annotations/entity.

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


Author: stliu
Date: 2009-10-19 11:44:44 -0400 (Mon, 19 Oct 2009)
New Revision: 17796

Modified:
   core/trunk/annotations/src/test/java/org/hibernate/test/annotations/entity/BasicHibernateAnnotationsTest.java
Log:
HHH-4503 Sybase - Annotations - unit tests using LOBs fail

Modified: core/trunk/annotations/src/test/java/org/hibernate/test/annotations/entity/BasicHibernateAnnotationsTest.java
===================================================================
--- core/trunk/annotations/src/test/java/org/hibernate/test/annotations/entity/BasicHibernateAnnotationsTest.java	2009-10-19 14:16:26 UTC (rev 17795)
+++ core/trunk/annotations/src/test/java/org/hibernate/test/annotations/entity/BasicHibernateAnnotationsTest.java	2009-10-19 15:44:44 UTC (rev 17796)
@@ -41,6 +41,9 @@
 public class BasicHibernateAnnotationsTest extends TestCase {
 
 	public void testEntity() throws Exception {
+		if( !getDialect().supportsExpectedLobUsagePattern() ){
+			return;
+		}
 		Forest forest = new Forest();
 		forest.setName( "Fontainebleau" );
 		Session s;
@@ -77,6 +80,9 @@
 	}
 
 	public void testVersioning() throws Exception {
+		if( !getDialect().supportsExpectedLobUsagePattern() ){
+			return;
+		}
 		Forest forest = new Forest();
 		forest.setName( "Fontainebleau" );
 		forest.setLength( 33 );
@@ -121,6 +127,9 @@
 	}
 
 	public void testPolymorphism() throws Exception {
+		if( !getDialect().supportsExpectedLobUsagePattern() ){
+			return;
+		}
 		Forest forest = new Forest();
 		forest.setName( "Fontainebleau" );
 		forest.setLength( 33 );
@@ -143,6 +152,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";
@@ -295,6 +307,9 @@
 	}
 
 	public void testParameterizedType() throws Exception {
+		if( !getDialect().supportsExpectedLobUsagePattern() ){
+			return;
+		}
 		Session s;
 		Transaction tx;
 		s = openSession();
@@ -315,6 +330,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