~raginggoblin/infolog/infolog

« back to all changes in this revision

Viewing changes to InfologServer/lib/hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/generated/TimestampGeneratedValuesWithCachingTest.java

  • Committer: Raging Goblin
  • Date: 2013-11-16 16:51:32 UTC
  • Revision ID: raging_goblin-20131116165132-weujnptzc88uy4ah
Mavenized the project, now using shared project InfologSync

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// $Id: TimestampGeneratedValuesWithCachingTest.java 10977 2006-12-12 23:28:04Z 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.dialect.Sybase11Dialect;
9
 
import org.hibernate.dialect.SybaseAnywhereDialect;
10
 
import org.hibernate.dialect.SybaseASE15Dialect;
11
 
import org.hibernate.dialect.SQLServerDialect;
12
 
import org.hibernate.junit.functional.FunctionalTestClassTestSuite;
13
 
 
14
 
/**
15
 
 * Implementation of TimestampGeneratedValuesWithCachingTest.
16
 
 *
17
 
 * @author Steve Ebersole
18
 
 */
19
 
public class TimestampGeneratedValuesWithCachingTest extends AbstractGeneratedPropertyTest {
20
 
 
21
 
        public TimestampGeneratedValuesWithCachingTest(String x) {
22
 
                super( x );
23
 
        }
24
 
 
25
 
        public final String[] getMappings() {
26
 
                return new String[] { "generated/MSSQLGeneratedPropertyEntity.hbm.xml" };
27
 
        }
28
 
 
29
 
        public boolean appliesTo(Dialect dialect) {
30
 
                // this test is specific to Sybase/SQLServer as it is testing support
31
 
                // for their TIMESTAMP datatype...
32
 
                return ( dialect instanceof SybaseDialect || dialect instanceof Sybase11Dialect ||
33
 
                        dialect instanceof SybaseAnywhereDialect || dialect instanceof SybaseASE15Dialect ||
34
 
                        dialect instanceof SQLServerDialect);
35
 
        }
36
 
 
37
 
        public static Test suite() {
38
 
                return new FunctionalTestClassTestSuite( TimestampGeneratedValuesWithCachingTest.class );
39
 
        }
40
 
}