Wicket
  1. Wicket
  2. WICKET-3973

onValidate() not called by FormTester.submit()

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Not A Problem
    • Affects Version/s: 1.4.17
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Validation of FileUploadField works well when test it manually, but not when test it with WicketTester and FormTester.
      Follow this link to see discussion about this problem on mailing list : http://markmail.org/message/lu7kumpbkxh4zilr

        Activity

        Mathilde Pellerin created issue -
        Hide
        Mathilde Pellerin added a comment -

        Quickstart project that show this issue : unit test 2 and 3 failed, but you can successfully test application with start.java.

        Show
        Mathilde Pellerin added a comment - Quickstart project that show this issue : unit test 2 and 3 failed, but you can successfully test application with start.java.
        Mathilde Pellerin made changes -
        Field Original Value New Value
        Attachment quickstart_validation_problem_with_wicketTester.tar.gz [ 12490778 ]
        Hide
        Martin Grigorov added a comment -

        You should use org.apache.wicket.util.tester.FormTester.setFile(String, File, String) instead of setValue() for testing this.

        Show
        Martin Grigorov added a comment - You should use org.apache.wicket.util.tester.FormTester.setFile(String, File, String) instead of setValue() for testing this.
        Martin Grigorov made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Not A Problem [ 8 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1h 6m 1 Martin Grigorov 18/Aug/11 11:48

          People

          • Assignee:
            Unassigned
            Reporter:
            Mathilde Pellerin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development