Package javango.forms.fields

Examples of javango.forms.fields.EmailField


import junit.framework.TestCase;

public class EmailFieldTest extends InjectedTestCaseBase {

  public void testNotRequired() throws Exception {
    Field<String> field = new EmailField(injector.getInstance(WidgetFactory.class));
    field.setName("fieldName");
    field.setRequired(false);

    Map<String, String> errors = new HashMap<String, String>();
   
    String value = field.clean(new String[]{""}, errors);
    assertTrue(errors.isEmpty());
  }
View Full Code Here

TOP

Related Classes of javango.forms.fields.EmailField

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.