Package de.odysseus.calyxo.control.base

Examples of de.odysseus.calyxo.control.base.ControlModuleMappings


  public ControlModuleMappingsTest(String arg0) {
    super(arg0);
  }

  public void testParseMappingsExtension() throws ServletException {
    ControlModuleMappings mappings =
      new ControlModuleMappings(getClass().getResourceAsStream("web.xml"));

    List list = mappings.getMappings("module1");
    assertEquals(1, list.size());
    ControlModuleMapping mapping = (ControlModuleMapping)list.get(0);
    assertNull(mapping.getPrefix());
    assertEquals(".module1", mapping.getExtension());
  }
View Full Code Here


    assertNull(mapping.getPrefix());
    assertEquals(".module1", mapping.getExtension());
  }

  public void testParseMappingsPrefix() throws ServletException {
    ControlModuleMappings mappings =
      new ControlModuleMappings(getClass().getResourceAsStream("web.xml"));

    List list = mappings.getMappings("module2");
    assertEquals(1, list.size());
    ControlModuleMapping mapping = (ControlModuleMapping)list.get(0);
    assertEquals("/module2", mapping.getPrefix());
    assertNull(mapping.getExtension());
  }
View Full Code Here

    assertEquals("/module2", mapping.getPrefix());
    assertNull(mapping.getExtension());
  }

  public void testParseMappingsPrefixExtension() throws ServletException {
    ControlModuleMappings mappings =
      new ControlModuleMappings(getClass().getResourceAsStream("web.xml"));

    List list = mappings.getMappings("module3");
    assertEquals(2, list.size());
    ControlModuleMapping mapping1 = (ControlModuleMapping)list.get(0);
    ControlModuleMapping mapping2 = (ControlModuleMapping)list.get(1);
    assertEquals("/module3", mapping1.getPrefix());
    assertNull(mapping1.getExtension());
View Full Code Here

TOP

Related Classes of de.odysseus.calyxo.control.base.ControlModuleMappings

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.