I have defined a bean for Redis in my Document.xml.
<bean id="redisConfiguration" class="com.project.RedisConfiguration"/>
My tests are failing locally if I don't have a redis started, and in a pipeline the tests are failing due to the next errors:
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132 Caused by: org.springframework.beans.factory.BeanCreationException at BeanDefinitionValueResolver.java:342 Caused by: org.springframework.beans.factory.BeanCreationException at AbstractAutowireCapableBeanFactory.java:1804 Caused by: org.hibernate.MappingException at PersisterFactoryImpl.java:123 Caused by: org.hibernate.HibernateException at EntityTuplizerFactory.java:91 Caused by: java.lang.reflect.InvocationTargetException at NativeConstructorAccessorImpl.java:-2 Caused by: java.lang.IllegalArgumentException at TypeCache.java:155 Caused by: java.lang.IllegalStateException at ClassInjector.java:1777 Caused by: java.lang.OutOfMemoryError
My guess is that RedisConfiguration is loaded via XML on the classpath explicitly.How I can stop the spring env from requiring / getting a 'real' RedisConfig?