Package de.odysseus.calyxo.forms.conf

Examples of de.odysseus.calyxo.forms.conf.FormsRootConfig


  public void test0() throws Exception {
    URL[] inputs = new URL[]{
      getClass().getResource(VALIDATORS)
    };
    FormsRootConfig config = parser.parse(inputs);
    assertNotNull(config.getValidatorsConfig().getMatcherConfig("regexp"));
    assertEquals(false, config.getFormsConfigs().hasNext());
  }
View Full Code Here


        list.add(url);
      }
    }
    URL[] urls = (URL[])list.toArray(new URL[list.size()]);

    FormsRootConfig formsConfig = null;
    FormsRootConfigParser parser =
      new FormsRootConfigParser(context);
    formsConfig = parser.parse(urls);
    support.init(context, formsConfig, factory);
View Full Code Here

  public void test1() throws Exception {
    URL[] inputs = new URL[]{
      getClass().getResource(VALIDATORS),
      getClass().getResource("test1.xml")
    };
    FormsRootConfig config = parser.parse(inputs);
    assertNotNull(config.getValidatorsConfig().getMatcherConfig("regexp"));
    assertEquals(true, config.getFormsConfigs().hasNext());
  }
View Full Code Here

  public void test2() throws Exception {
    URL[] inputs = new URL[]{
      getClass().getResource(VALIDATORS),
      getClass().getResource("test2.xml")
    };
    FormsRootConfig config = parser.parse(inputs);
    FormConfig form = config.findFormConfig("LoginForm", null);
    FieldConfig field = form.getFieldConfig("password");
    Iterator matchers = field.getMatchConfigs();

    MatchConfig notEmpty = (MatchConfig)matchers.next();
    assertEquals("notEmpty", notEmpty.getMatcherConfig().getId());
View Full Code Here

TOP

Related Classes of de.odysseus.calyxo.forms.conf.FormsRootConfig

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.