I'm trying to write a unit test for a form. I have a form with 2 submit buttons. The 1st submit button is an AjaxSubmitButton which allows the user to enter a ID, that then shows all the products associated with that ID (it requires validators to run which is why it's a submit button). The 2nd submit button will validate the entire form and checkout. However, I can't do this unit test in Wicket because a FormTester can only submit once. I can't resetup the FormTester data because the 2nd submit button (checkout) requires a state that the 1st submit button sets.
How can I make my unit test work? Thanks, Tony
