How to prevent spring realods its context in tests

Viewed 3151

I have a problem running my tests, because in a certain moment, the spring reloads the context, searching the config-server settings again, i noticed that it always reloads after the second message:

2017-08-13 15:05:54.411  INFO [payment,,,] 3360 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@76c548f: startup date [Sun Aug 13 15:05:54 BRT 2017]; root of context hierarchy
2017-08-13 15:05:54.681  INFO [payment,,,] 3360 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$719706d0] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

During the execution of my 40 tests this message appears 4 times, making the spring reload the context 4 times as well. I'm using Spring Cloud ecosystem (Config, Hystrix) does anyone know what it can be?

In fact, i would also like to know what causes spring reloads the context

Note: im not using @DirtiesContext

4 Answers
Related