grails / grails-testing-support

Trait-based testing library for Grails framework
http://testing.grails.org
Apache License 2.0
11 stars 21 forks source link

Grails 7: grails-testing-support remove beanExcludes #432

Closed jamesfredley closed 1 week ago

jamesfredley commented 1 week ago

beanExcludes isn't used anymore, and can be removed. It was used for configuring the Micronaut context.

https://github.com/grails/grails-testing-support/pull/430#issuecomment-2381139708

codeconsole commented 1 week ago
        def beanExcludes = [ConversionService, Environment, PropertyResolver, ConfigurableEnvironment]
        def objectMapper = ClassUtils.forName('com.fasterxml.jackson.databind.ObjectMapper', context.getClassLoader())
        if (objectMapper) {
            beanExcludes.add(objectMapper)
        }
codeconsole commented 1 week ago

https://github.com/grails/grails-testing-support/pull/435