use of cn.taketoday.beans.DirectFieldAccessor in project today-framework by TAKETODAY.
the class DefaultLifecycleProcessorTests method defaultLifecycleProcessorInstance.
@Test
public void defaultLifecycleProcessorInstance() {
StaticApplicationContext context = new StaticApplicationContext();
context.refresh();
Object lifecycleProcessor = new DirectFieldAccessor(context).getPropertyValue("lifecycleProcessor");
assertThat(lifecycleProcessor).isNotNull();
assertThat(lifecycleProcessor.getClass()).isEqualTo(DefaultLifecycleProcessor.class);
}
Aggregations