File tree Expand file tree Collapse file tree 2 files changed +34
-1
lines changed
src/test/java/org/hibernate/envers/test Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ dependencies {
12
12
13
13
provided( [group : ' org.hibernate' , name : ' hibernate-tools' , version : ' 3.2.0.ga' ] )
14
14
provided( libraries. ant )
15
+ provided( project( ' :hibernate-jpamodelgen' ) )
15
16
16
17
testCompile( project(' :hibernate-testing' ) )
17
18
testCompile( project(path : ' :hibernate-entitymanager' , configuration : ' tests' ) )
@@ -22,7 +23,6 @@ dependencies {
22
23
mavenPom {
23
24
name = ' ENtity VERSioning support'
24
25
description = ' ENtity VERSioning support'
25
-
26
26
}
27
27
28
28
def osgiDescription () {
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Hibernate, Relational Persistence for Idiomatic Java
3
+ *
4
+ * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
5
+ * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
6
+ */
7
+ package org .hibernate .envers .test ;
8
+
9
+ import org .hibernate .envers .DefaultRevisionEntity_ ;
10
+ import org .hibernate .envers .DefaultTrackingModifiedEntitiesRevisionEntity_ ;
11
+ import org .hibernate .envers .enhanced .SequenceIdRevisionEntity_ ;
12
+ import org .hibernate .envers .enhanced .SequenceIdTrackingModifiedEntitiesRevisionEntity_ ;
13
+
14
+ import org .hibernate .testing .junit4 .BaseUnitTestCase ;
15
+ import org .junit .Test ;
16
+
17
+ import static org .junit .Assert .assertNotNull ;
18
+
19
+ /**
20
+ * Just a test to make sure that the generated "JPA static metamodel" classes continue to be generated.
21
+ *
22
+ * @author Steve Ebersole
23
+ */
24
+ public class JpaStaticMetamodelTest extends BaseUnitTestCase {
25
+ @ Test
26
+ public void testStaticMetamodelGenerationHappened () {
27
+ // Really in a regression scenario, this class wont even compile...
28
+ assertNotNull ( DefaultRevisionEntity_ .class );
29
+ assertNotNull ( DefaultTrackingModifiedEntitiesRevisionEntity_ .class );
30
+ assertNotNull ( SequenceIdRevisionEntity_ .class );
31
+ assertNotNull ( SequenceIdTrackingModifiedEntitiesRevisionEntity_ .class );
32
+ }
33
+ }
You can’t perform that action at this time.
0 commit comments