Hi,

   I have spent some time on test case from Wicket-core source.
Wicket provides MockApplication and MockHttpServletRequest... etc. to help
testing without the need of container. However, It seems that such test is just related
to "rendering" of the page or component. I do not find any examples about "behavior" test,
for example:

    public ManageBookPage() {
        Form form = new Form("createBookForm") {
            protected void onSubmit() {
                // do some business logic.
                setResponsePage(CreateBook.class);
            }
        };
        add(form) ;
    }

Is it possible to unit test createBookForm submission on the ManageBookPage
without container ?

--
Ingram Chen
Java [EMAIL PROTECTED]
Institue of BioMedical Sciences Academia Sinica Taiwan
blog: http://www.javaworld.com.tw/roller/page/ingramchen

Reply via email to