Package org.araneaframework.uilib.form.control

Examples of org.araneaframework.uilib.form.control.MultiSelectControl


   * @throws Exception
   */
  public void testMultiSelectOnEmptyRequest() throws Exception {

    MockHttpServletRequest emptyRequest = new MockHttpServletRequest();
    MultiSelectControl ms = new MultiSelectControl();
    ms._getComponent().init(new MockEnviroment());
    MockUiLibUtil.emulateHandleRequest(ms, "myMultiSelect", emptyRequest);   
    ms.convertAndValidate();

    assertNotNull("MultiSelect must not return null if it's not present in request", ms.getRawValue());
    assertTrue("MultiSelect must return List if it's not present in request", ms.getRawValue() instanceof List);
    assertTrue("MultiSelect must return empty List if it's not present in request", ((List) ms.getRawValue()).size() == 0);
   
    ms._getComponent().destroy();
  }
View Full Code Here

TOP

Related Classes of org.araneaframework.uilib.form.control.MultiSelectControl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.