* Check that all input fields are retrieved from container.
*/
public void testGetInputFields() {
MockContext.initContext();
// set up the form
Form form = new Form("sample");
// HiddenField should be included
HiddenField hiddenField = new HiddenField("hidden", boolean.class);
form.add(hiddenField);
// TextField should be included
TextField idField = new TextField("id");
form.add(idField);
// FieldSet should NOT be included
FieldSet fieldset = new FieldSet("fieldset");
form.add(fieldset);
// Label should NOT be included
Label label = new Label("name");
form.add(label);
// Button should NOT be included
Button button = new Button("button");
form.add(button);
List fields = ContainerUtils.getInputFields(form);
// Total should be 3 consisting of the fields "hidden", "id" and the
// Forms internal HiddenFields "form_name".