~ubuntu-branches/ubuntu/wily/libhibernate3-java/wily-proposed

« back to all changes in this revision

Viewing changes to test/org/hibernate/test/generated/TimestampGeneratedValuesWithCachingTest.java

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-10-14 14:43:34 UTC
  • Revision ID: james.westby@ubuntu.com-20071014144334-eamc8i0q10gs1aro
Tags: upstream-3.2.5
ImportĀ upstreamĀ versionĀ 3.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// $Id: TimestampGeneratedValuesWithCachingTest.java 10976 2006-12-12 23:22:26Z steve.ebersole@jboss.com $
 
2
package org.hibernate.test.generated;
 
3
 
 
4
import junit.framework.Test;
 
5
 
 
6
import org.hibernate.dialect.Dialect;
 
7
import org.hibernate.dialect.SybaseDialect;
 
8
import org.hibernate.junit.functional.FunctionalTestClassTestSuite;
 
9
 
 
10
/**
 
11
 * Implementation of TimestampGeneratedValuesWithCachingTest.
 
12
 *
 
13
 * @author Steve Ebersole
 
14
 */
 
15
public class TimestampGeneratedValuesWithCachingTest extends AbstractGeneratedPropertyTest {
 
16
 
 
17
        public TimestampGeneratedValuesWithCachingTest(String x) {
 
18
                super( x );
 
19
        }
 
20
 
 
21
        public final String[] getMappings() {
 
22
                return new String[] { "generated/MSSQLGeneratedPropertyEntity.hbm.xml" };
 
23
        }
 
24
 
 
25
        public boolean appliesTo(Dialect dialect) {
 
26
                // this test is specific to Sybase/SQLServer as it is testing support
 
27
                // for their TIMESTAMP datatype...
 
28
                return ( dialect instanceof SybaseDialect );
 
29
        }
 
30
 
 
31
        public static Test suite() {
 
32
                return new FunctionalTestClassTestSuite( TimestampGeneratedValuesWithCachingTest.class );
 
33
        }
 
34
}