public ControlModuleMappingTest(String arg0) {
super(arg0);
}
public void testPattern() throws ConfigException {
ControlModuleMapping mapping = null;
mapping = new ControlModuleMapping("/test/*");
assertEquals("/test", mapping.getPrefix());
assertNull(mapping.getExtension());
mapping = new ControlModuleMapping("*.test");
assertEquals(".test", mapping.getExtension());
assertNull(mapping.getPrefix());
mapping = new ControlModuleMapping("/");
assertEquals("", mapping.getPrefix());
assertNull(mapping.getExtension());
mapping = new ControlModuleMapping("/*");
assertEquals("", mapping.getPrefix());
assertNull(mapping.getExtension());
}