Skip to content

Commit

Permalink
Grails 7: add Stepwise to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bkoehm committed Dec 21, 2024
1 parent e42f717 commit 63c8c70
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import grails.testing.mixin.integration.Integration
import page.aclClass.AclClassCreatePage
import page.aclClass.AclClassEditPage
import page.aclClass.AclClassSearchPage
import spock.lang.Stepwise

@Stepwise
@Integration
class AclClassSpec extends AbstractSecuritySpec {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import grails.testing.mixin.integration.Integration
import page.aclEntry.AclEntryCreatePage
import page.aclEntry.AclEntryEditPage
import page.aclEntry.AclEntrySearchPage
import spock.lang.Stepwise

@Stepwise
@Integration
class AclEntrySpec extends AbstractSecuritySpec {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import grails.testing.mixin.integration.Integration
import page.aclObjectIdentity.AclObjectIdentityCreatePage
import page.aclObjectIdentity.AclObjectIdentityEditPage
import page.aclObjectIdentity.AclObjectIdentitySearchPage
import spock.lang.Stepwise

@Stepwise
@Integration
class AclObjectIdentitySpec extends AbstractSecuritySpec {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import grails.testing.mixin.integration.Integration
import page.aclSid.AclSidCreatePage
import page.aclSid.AclSidEditPage
import page.aclSid.AclSidSearchPage
import spock.lang.Stepwise

@Stepwise
@Integration
class AclSidSpec extends AbstractSecuritySpec {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package spec

import grails.testing.mixin.integration.Integration
import spock.lang.Stepwise

@Stepwise
@Integration
class ExtendedMenuSpec extends AbstractSecuritySpec {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ package spec
import grails.testing.mixin.integration.Integration
import org.springframework.security.core.userdetails.User
import org.springframework.security.core.userdetails.UserCache
import spock.lang.Stepwise

@Stepwise
@Integration
class ExtendedSecurityInfoSpec extends AbstractSecuritySpec {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package spec

import grails.testing.mixin.integration.Integration
import page.persistentLogin.PersistentLoginSearchPage
import spock.lang.Stepwise

@Stepwise
@Integration
class PersistentLoginSpec extends AbstractSecuritySpec {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ import page.user.UserEditPage
import page.user.UserSearchPage
import page.register.ResetPasswordPage
import spock.lang.Ignore
import spock.lang.Stepwise

@Stepwise
@Integration
class RegisterSpec extends AbstractSecuritySpec {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ package spec
import grails.testing.mixin.integration.Integration
import page.registrationCode.RegistrationCodeEditPage
import page.registrationCode.RegistrationCodeSearchPage
import spock.lang.Stepwise

@Stepwise
@Integration
class RegistrationCodeSpec extends AbstractSecuritySpec {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import grails.testing.mixin.integration.Integration
import page.requestmap.RequestmapCreatePage
import page.requestmap.RequestmapEditPage
import page.requestmap.RequestmapSearchPage
import spock.lang.Stepwise

@Stepwise
@Integration
class RequestmapSpec extends AbstractSecuritySpec {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import grails.testing.mixin.integration.Integration
import page.role.RoleCreatePage
import page.role.RoleEditPage
import page.role.RoleSearchPage
import spock.lang.Stepwise

@Stepwise
@Integration
class RoleSpec extends AbstractSecuritySpec {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package test


import grails.gorm.transactions.Rollback
import grails.testing.mixin.integration.Integration
import grails.testing.services.ServiceUnitTest
import org.spockframework.runtime.model.SpecInfo
import spock.lang.Specification
import org.hibernate.SessionFactory
import spock.lang.Stepwise

@Stepwise
@Integration
@Rollback
class ProfileServiceSpec extends Specification {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package spec

import grails.testing.mixin.integration.Integration
import spock.lang.Stepwise

@Stepwise
@Integration
class DefaultMenuSpec extends AbstractSecuritySpec {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ package spec
import grails.testing.mixin.integration.Integration
import org.springframework.security.core.userdetails.User
import org.springframework.security.core.userdetails.UserCache
import spock.lang.Stepwise

@Stepwise
@Integration
class DefaultSecurityInfoSpec extends AbstractSecuritySpec {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ package spec
import grails.testing.mixin.integration.Integration
import page.registrationCode.RegistrationCodeEditPage
import page.registrationCode.RegistrationCodeSearchPage
import spock.lang.Stepwise

@Stepwise
@Integration
class RegistrationCodeSpec extends AbstractSecuritySpec {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import grails.testing.mixin.integration.Integration
import page.requestmap.RequestmapCreatePage
import page.requestmap.RequestmapEditPage
import page.requestmap.RequestmapSearchPage
import spock.lang.Stepwise

@Stepwise
@Integration
class RequestmapSpec extends AbstractSecuritySpec {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ import grails.testing.mixin.integration.Integration
import page.role.RoleCreatePage
import page.role.RoleEditPage
import page.role.RoleSearchPage
import spock.lang.Stepwise

@Integration
@Stepwise
class RoleSpec extends AbstractSecuritySpec {

void testFindAll() {
Expand Down

0 comments on commit 63c8c70

Please sign in to comment.