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

        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.
        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development