我正在测试web-flow,我需要找到包含应用程序流的xml文件。但我真的不明白为什么有必要放文件:在路径之前,为什么这是必要的?
声明路径:
protected static final String ARREL_FLOWS = "file:src/main/webapp/WEB-INF/flow/";
protected static final String FLOW_CONSULTA_DEUTE = ARREL_FLOWS +"consultaDeutes/consultaDeutes.xml";
测试路径流的代码:
@Test
@Override
protected FlowDefinitionResource getResource(FlowDefinitionResourceFactory resourceFactory) {
FlowDefinitionResource resource = resourceFactory.createResource(FLOW_CONSULTA_DEUTE);
Assert.assertNotNull(resource);
return resource;
}
这是py项目的结构:
TY。
答案 0 :(得分:0)
好的,我找出原因!我觉得自己像个猴子.. 好吧:
如果不想把单词文件:我必须使用方法:
resource = resourceFactory.createFileResource(getPathRecursFlowProvatura());
不是
FlowDefinitionResource resource = resourceFactory.createResource(FLOW_CONSULTA_DEUTE);