use of org.springframework.data.spel.EvaluationContextProvider in project spring-data-mongodb by spring-projects.
the class AbstractReactiveMongoConfigurationUnitTests method lifecycleCallbacksAreInvokedInAppropriateOrder.
// DATAMONGO-1444
@Test
public void lifecycleCallbacksAreInvokedInAppropriateOrder() {
AbstractApplicationContext context = new AnnotationConfigApplicationContext(SampleMongoConfiguration.class);
MongoMappingContext mappingContext = context.getBean(MongoMappingContext.class);
MongoPersistentEntity<?> entity = mappingContext.getRequiredPersistentEntity(Entity.class);
EvaluationContextProvider provider = (EvaluationContextProvider) ReflectionTestUtils.getField(entity, "evaluationContextProvider");
assertThat(provider).isInstanceOf(ExtensionAwareEvaluationContextProvider.class);
context.close();
}
use of org.springframework.data.spel.EvaluationContextProvider in project spring-data-mongodb by spring-projects.
the class AbstractMongoConfigurationUnitTests method lifecycleCallbacksAreInvokedInAppropriateOrder.
// DATAMONGO-717
@Test
public void lifecycleCallbacksAreInvokedInAppropriateOrder() {
AbstractApplicationContext context = new AnnotationConfigApplicationContext(SampleMongoConfiguration.class);
MongoMappingContext mappingContext = context.getBean(MongoMappingContext.class);
MongoPersistentEntity<?> entity = mappingContext.getRequiredPersistentEntity(Entity.class);
EvaluationContextProvider provider = (EvaluationContextProvider) ReflectionTestUtils.getField(entity, "evaluationContextProvider");
assertThat(provider).isInstanceOf(ExtensionAwareEvaluationContextProvider.class);
context.close();
}
Aggregations