This is an automated email from the ASF dual-hosted git repository. jdaugherty pushed a commit to branch 7.0.x in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit a0e1b37bff6169851d455860406af6c63f8427f3 Merge: bcca4dd2ba 8dd5dc3fa5 Author: James Daugherty <[email protected]> AuthorDate: Wed Feb 25 12:40:10 2026 -0500 Merge pull request #15436 from apache/database-cleanup-feature feature - add `@DatabaseCleanup` test annoation to facilicate cleaning up after a test or tests gradle/publish-root-config.gradle | 3 + .../src/en/guide/testing/integrationTesting.adoc | 143 ++++++ grails-test-examples/database-cleanup/build.gradle | 53 +++ .../grails-app/conf/application.yml | 36 ++ .../database-cleanup/grails-app/conf/logback.xml | 37 ++ .../controllers/dbcleanup/UrlMappings.groovy | 35 ++ .../grails-app/domain/dbcleanup/Author.groovy | 33 ++ .../grails-app/domain/dbcleanup/Book.groovy | 37 ++ .../grails-app/init/dbcleanup/Application.groovy | 29 ++ .../database-cleanup/grails-app/views/error.gsp | 27 ++ .../groovy/dbcleanup/ClassLevelCleanupSpec.groovy | 74 +++ .../groovy/dbcleanup/MethodLevelCleanupSpec.groovy | 87 ++++ grails-testing-support-dbcleanup-core/README.md | 79 ++++ grails-testing-support-dbcleanup-core/build.gradle | 58 +++ .../cleanup/core/ApplicationContextResolver.groovy | 50 ++ .../testing/cleanup/core/DatabaseCleaner.groovy | 91 ++++ .../testing/cleanup/core/DatabaseCleanup.groovy | 106 +++++ .../cleanup/core/DatabaseCleanupContext.groovy | 220 +++++++++ .../cleanup/core/DatabaseCleanupExtension.groovy | 203 ++++++++ .../cleanup/core/DatabaseCleanupInterceptor.groovy | 176 +++++++ .../cleanup/core/DatabaseCleanupStats.groovy | 200 ++++++++ .../cleanup/core/DatasourceCleanupMapping.groovy | 156 +++++++ .../core/DefaultApplicationContextResolver.groovy | 67 +++ .../cleanup/core/TestContextHolderListener.groovy | 59 +++ ...ockframework.runtime.extension.IGlobalExtension | 1 + .../src/main/resources/META-INF/spring.factories | 1 + .../cleanup/core/DatabaseCleanupContextSpec.groovy | 478 +++++++++++++++++++ .../core/DatabaseCleanupExtensionSpec.groovy | 382 +++++++++++++++ .../core/DatabaseCleanupInterceptorSpec.groovy | 516 +++++++++++++++++++++ .../cleanup/core/DatabaseCleanupStatsSpec.groovy | 297 ++++++++++++ .../core/DatasourceCleanupMappingSpec.groovy | 175 +++++++ .../DefaultApplicationContextResolverSpec.groovy | 96 ++++ grails-testing-support-dbcleanup-h2/README.md | 28 ++ grails-testing-support-dbcleanup-h2/build.gradle | 59 +++ .../testing/cleanup/h2/H2DatabaseCleaner.groovy | 103 ++++ .../cleanup/h2/H2DatabaseCleanupHelper.groovy | 121 +++++ ...che.grails.testing.cleanup.core.DatabaseCleaner | 1 + .../cleanup/h2/H2DatabaseCleanerSpec.groovy | 229 +++++++++ .../cleanup/h2/H2DatabaseCleanupHelperSpec.groovy | 137 ++++++ .../README.md | 32 ++ .../build.gradle | 60 +++ .../postgresql/PostgresDatabaseCleaner.groovy | 132 ++++++ .../PostgresDatabaseCleanupHelper.groovy | 100 ++++ .../postgresql/PostgresContainerHolder.groovy | 66 +++ .../PostgresDatabaseCleanerFunctionalSpec.groovy | 318 +++++++++++++ .../postgresql/PostgresDatabaseCleanerSpec.groovy | 114 +++++ .../PostgresDatabaseCleanupHelperSpec.groovy | 83 ++++ settings.gradle | 5 + 48 files changed, 5593 insertions(+)
