public class TestFlowBuilderServicesFactory {
private TestFlowBuilderServicesFactory() {
}
public static FlowBuilderServices getServices() {
FlowBuilderServices services = new FlowBuilderServices() {
// The SpEL parser must use the currently configured conversion service.
public void setConversionService(ConversionService conversionService) {
super.setConversionService(conversionService);
setExpressionParser(new WebFlowSpringELExpressionParser(new SpelExpressionParser(), conversionService));
}
};
services.setViewFactoryCreator(new MockViewFactoryCreator());
services.setConversionService(new DefaultConversionService());
services.setApplicationContext(createTestApplicationContext());
return services;
}