Prepare for Milestone Release
Change all the `BUILD-SNAPSHOT`s to their latest Milestones Fix compatibility with those Milestones Upgrade to Spring AMQP 2.0.0.M1 Upgrade to Spring Data Kay Gemfire now is based on the Apache Geode, so changed all the imports to proper new packages MongoDB now is based on the Mongo 3 Driver, therefore many breaking changes. Mostly to the mapping part Fix Checkstyle violation Fix race condition in the `MongoDbInboundChannelAdapterIntegrationTests` around `QueueChannel` and tx commit Add `-s` to Travis Gradle command to see stack trace about `MongoDbMetadataStoreTests` problem Test only MongoDB module on Travis with -d Add addon to Travis to pull MongoDB-3.0 Fix `MongoDbAvailableRule` for MongoDB 3.0 Driver style Increase `serverSelectionTimeout` to `100` in the `MongoDbAvailableRule`. Looks like `0` isn't good value to get immediate answer
This commit is contained in:
committed by
Gary Russell
parent
9945d04edd
commit
c0a507c36c
@@ -86,7 +86,7 @@ public class LambdaMessageProcessor implements MessageProcessor<Object>, BeanFac
|
||||
public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
|
||||
ConversionService conversionService = IntegrationUtils.getConversionService(beanFactory);
|
||||
if (conversionService == null) {
|
||||
conversionService = DefaultConversionService.getSharedInstance();
|
||||
conversionService = new DefaultConversionService();
|
||||
}
|
||||
this.conversionService = conversionService;
|
||||
}
|
||||
|
||||
@@ -17,16 +17,13 @@
|
||||
package org.springframework.integration.expression;
|
||||
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertNotSame;
|
||||
import static org.junit.Assert.assertNull;
|
||||
import static org.junit.Assert.assertSame;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.beans.factory.support.RootBeanDefinition;
|
||||
import org.springframework.context.support.ConversionServiceFactoryBean;
|
||||
import org.springframework.context.support.GenericApplicationContext;
|
||||
import org.springframework.core.convert.support.DefaultConversionService;
|
||||
import org.springframework.expression.TypeConverter;
|
||||
import org.springframework.expression.spel.support.StandardEvaluationContext;
|
||||
import org.springframework.integration.config.IntegrationEvaluationContextFactoryBean;
|
||||
@@ -36,8 +33,8 @@ import org.springframework.integration.test.util.TestUtils;
|
||||
|
||||
/**
|
||||
* @author Gary Russell
|
||||
* @since 3.0
|
||||
*
|
||||
* @since 3.0
|
||||
*/
|
||||
public class ExpressionUtilsTests {
|
||||
|
||||
@@ -52,8 +49,9 @@ public class ExpressionUtilsTests {
|
||||
StandardEvaluationContext evalContext = ExpressionUtils.createStandardEvaluationContext(context);
|
||||
assertNotNull(evalContext.getBeanResolver());
|
||||
assertNotNull(evalContext.getTypeConverter());
|
||||
IntegrationEvaluationContextFactoryBean factory = context.getBean("&" + IntegrationContextUtils.INTEGRATION_EVALUATION_CONTEXT_BEAN_NAME,
|
||||
IntegrationEvaluationContextFactoryBean.class);
|
||||
IntegrationEvaluationContextFactoryBean factory =
|
||||
context.getBean("&" + IntegrationContextUtils.INTEGRATION_EVALUATION_CONTEXT_BEAN_NAME,
|
||||
IntegrationEvaluationContextFactoryBean.class);
|
||||
assertSame(evalContext.getTypeConverter(), TestUtils.getPropertyValue(factory, "typeConverter"));
|
||||
}
|
||||
|
||||
@@ -68,8 +66,6 @@ public class ExpressionUtilsTests {
|
||||
assertNotNull(evalContext.getBeanResolver());
|
||||
TypeConverter typeConverter = evalContext.getTypeConverter();
|
||||
assertNotNull(typeConverter);
|
||||
assertSame(DefaultConversionService.getSharedInstance(),
|
||||
TestUtils.getPropertyValue(typeConverter, "conversionService"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -82,8 +78,6 @@ public class ExpressionUtilsTests {
|
||||
assertNotNull(evalContext.getBeanResolver());
|
||||
TypeConverter typeConverter = evalContext.getTypeConverter();
|
||||
assertNotNull(typeConverter);
|
||||
assertNotSame(DefaultConversionService.getSharedInstance(),
|
||||
TestUtils.getPropertyValue(typeConverter, "conversionService"));
|
||||
assertSame(context.getBean(IntegrationUtils.INTEGRATION_CONVERSION_SERVICE_BEAN_NAME),
|
||||
TestUtils.getPropertyValue(typeConverter, "conversionService"));
|
||||
}
|
||||
@@ -94,7 +88,5 @@ public class ExpressionUtilsTests {
|
||||
assertNull(evalContext.getBeanResolver());
|
||||
TypeConverter typeConverter = evalContext.getTypeConverter();
|
||||
assertNotNull(typeConverter);
|
||||
assertSame(DefaultConversionService.getSharedInstance(),
|
||||
TestUtils.getPropertyValue(typeConverter, "conversionService"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user