I'm getting following error when running my test. It seems like somehow its not finding my webflow xml defination file. But it does exist in the classpath. May be its something else.

org.springframework.webflow.engine.builder.FlowBui lderException: Unable to get the model for this flow at org.springframework.webflow.engine.builder.model.F lowModelFlowBuilder.doInit(FlowModelFlowBuilder.ja va:149)

Here is my code :

@Override
protected FlowDefinitionResource getResource(FlowDefinitionResourceFactory resourceFactory) {
return resourceFactory.createFileResource("/WEB-INF/flows/test/test-flow.xml");
}

public void testStartTestFlow() {
TestDto testDto = createTestDto();
pciFormDto = pciScanService.getTestDto();

startFlow(context); ----> it throws error here

assertCurrentStateEquals("testPage1");
assertResponseWrittenEquals("testPage1", context);
assertTrue(getRequiredFlowAttribute("testDto") instanceof TestDto);
assertCurrentStateEquals("testPage1");
}

It does hit my testStartTestFlow() method. However when I try to call startFlow (context), its throwing above error.

Any help is appreciated.

Thanks

Manoj