Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 36562fd

Browse files
committed
optimize imports
1 parent cf499cb commit 36562fd

File tree

55 files changed

+33
-184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+33
-184
lines changed

grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/hibernate/mapping/HibernateMappingBuilderTests.groovy

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,16 @@ package grails.gorm.hibernate.mapping
22

33
import org.grails.orm.hibernate.cfg.CompositeIdentity
44
import org.grails.orm.hibernate.cfg.HibernateMappingBuilder
5+
import org.grails.orm.hibernate.cfg.PropertyConfig
56

67
/**
78
* Created by graemerocher on 01/02/2017.
89
*/
910

10-
import org.grails.orm.hibernate.cfg.PropertyConfig
1111
import org.hibernate.FetchMode
1212
import org.junit.jupiter.api.Test
1313

14-
import static org.junit.jupiter.api.Assertions.assertEquals
15-
import static org.junit.jupiter.api.Assertions.assertFalse
16-
import static org.junit.jupiter.api.Assertions.assertNull
17-
import static org.junit.jupiter.api.Assertions.assertThrows
18-
import static org.junit.jupiter.api.Assertions.assertTrue
14+
import static org.junit.jupiter.api.Assertions.*
1915

2016
/**
2117
* Tests that the Hibernate mapping DSL constructs a valid Mapping object.

grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/hibernate/mapping/HibernateOptimisticLockingStyleMappingSpec.groovy

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ package grails.gorm.hibernate.mapping
22

33
import grails.gorm.tests.GormDatastoreSpec
44
import grails.persistence.Entity
5-
import org.grails.orm.hibernate.GormSpec
6-
import org.grails.orm.hibernate.cfg.HibernateMappingBuilder
75
import org.hibernate.boot.Metadata
86
import org.hibernate.engine.OptimisticLockStyle
97
import org.hibernate.mapping.PersistentClass

grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/hibernate/mapping/MappingBuilderSpec.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ import org.grails.orm.hibernate.cfg.Mapping
66
import org.grails.orm.hibernate.cfg.PropertyConfig
77
import spock.lang.Specification
88

9-
import jakarta.persistence.FetchType
10-
119
import static grails.gorm.hibernate.mapping.MappingBuilder.define
10+
1211
/**
1312
* Created by graemerocher on 01/02/2017.
1413
*/

grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/specs/Club.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package grails.gorm.specs
22

3-
import grails.gorm.hibernate.HibernateEntity
43
import grails.gorm.annotation.Entity
4+
import grails.gorm.hibernate.HibernateEntity
55

66
@Entity
77
class Club implements HibernateEntity<Club> {

grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/specs/CompositeIdWithJoinTableSpec.groovy

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
package grails.gorm.specs
22

3+
import grails.gorm.annotation.Entity
4+
import grails.gorm.transactions.Rollback
35
import spock.lang.Ignore
46

57
import static grails.gorm.hibernate.mapping.MappingBuilder.define
68

7-
import grails.gorm.annotation.Entity
8-
import grails.gorm.transactions.Rollback
9-
import org.grails.orm.hibernate.HibernateDatastore
10-
import org.springframework.transaction.PlatformTransactionManager
11-
import spock.lang.AutoCleanup
12-
import spock.lang.Shared
13-
import spock.lang.Specification
14-
159
/**
1610
* Created by graemerocher on 26/01/2017.
1711
*/

grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/specs/CompositeIdWithManyToOneAndSequenceSpec.groovy

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@ package grails.gorm.specs
22

33
import grails.gorm.annotation.Entity
44
import grails.gorm.transactions.Rollback
5-
import org.grails.orm.hibernate.HibernateDatastore
65
import org.jetbrains.annotations.NotNull
7-
import org.springframework.transaction.PlatformTransactionManager
8-
import spock.lang.AutoCleanup
9-
import spock.lang.Ignore
106
import spock.lang.Issue
11-
import spock.lang.Shared
12-
import spock.lang.Specification
137

148
/**
159
* Created by graemerocher on 26/01/2017.

grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/specs/DetachCriteriaSubquerySpec.groovy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package grails.gorm.specs
33
import grails.gorm.DetachedCriteria
44
import grails.gorm.annotation.Entity
55
import grails.gorm.hibernate.HibernateEntity
6-
import grails.gorm.tests.GormDatastoreSpec
76
import spock.lang.Ignore
87

98
@SuppressWarnings("GrMethodMayBeStatic")

grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/specs/DetachedCriteriaJoinSpec.groovy

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
package grails.gorm.specs
22

33
import grails.gorm.DetachedCriteria
4+
import jakarta.persistence.criteria.JoinType
45
import org.grails.datastore.gorm.finders.DynamicFinder
5-
import org.grails.orm.hibernate.AbstractHibernateSession
6-
import org.grails.orm.hibernate.GormSpec
7-
import org.grails.orm.hibernate.HibernateDatastore
86
import org.grails.orm.hibernate.query.HibernateQuery
97

10-
import jakarta.persistence.criteria.JoinType
11-
128
class DetachedCriteriaJoinSpec extends HibernateGormDatastoreSpec {
139

1410
@Override

grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/specs/DetachedCriteriaProjectionAliasSpec.groovy

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,8 @@ package grails.gorm.specs
33
import grails.gorm.DetachedCriteria
44
import grails.gorm.transactions.Rollback
55
import grails.gorm.transactions.Transactional
6-
import org.grails.orm.hibernate.HibernateDatastore
76
import org.hibernate.SessionFactory
8-
import org.springframework.transaction.PlatformTransactionManager
9-
import spock.lang.AutoCleanup
107
import spock.lang.Issue
11-
import spock.lang.Shared
12-
import spock.lang.Specification
13-
148

159
class DetachedCriteriaProjectionAliasSpec extends HibernateGormDatastoreSpec {
1610

grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/specs/DetachedCriteriaProjectionSpec.groovy

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@ import grails.gorm.hibernate.HibernateEntity
66
import grails.gorm.transactions.Rollback
77
import grails.gorm.transactions.Transactional
88
import org.grails.datastore.mapping.query.Query
9-
import org.grails.orm.hibernate.HibernateDatastore
10-
import org.springframework.transaction.PlatformTransactionManager
11-
import spock.lang.AutoCleanup
129
import spock.lang.Issue
13-
import spock.lang.Shared
14-
import spock.lang.Specification
1510

1611
/**
1712
* Created by graemerocher on 24/10/16.

0 commit comments

Comments
 (0)