Results 1 to 4 of 4

Thread: Firing validators with flow tests

  1. #1
    Join Date
    Jul 2009
    Posts
    15

    Default Firing validators with flow tests

    I am using the AbstractXmlFlowExecutionTests class to do some webflow testing. I don't see my validator being fired. Does anyone know if validators are properly called when using AbstractXmlFlowExecutionTests for flow testing? Thanks for any info.

  2. #2
    Join Date
    Jul 2009
    Posts
    15

    Default

    I am getting closer to something. I see that MockViewFactoryCreator is used in the test environment and it creates MockViews that do not call validators on processUserEvent. I'm trying to see if there is a way I can hook into this...

  3. #3
    Join Date
    Aug 2008
    Location
    Redmond, WA
    Posts
    14

    Default

    Nick,
    If you find a solution it would be great if you could share it here!

    Since we are trusting the flow to kick off those validators in the right spot, it makes sense to me that the flow execution tests should be able to simulate that to verify the integration.

  4. #4
    Join Date
    Jun 2007
    Posts
    14

    Default

    ditto. This has been a thorn with using webflow for me and something I've been meaning to look at to develop some sort of workaround/solution, but just haven't found the time.

    Any knowledge you can share would be greatly appreciated.

    Bob

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •