public void testCanHandleZeroOrMore() throws Exception {
  Dtd dtd=new Dtd("http://java.sun.com/dtd/web-app_2_3.dtd");
  List<DescriptorTag> elementOrder=dtd.getElementOrder("web-resource-collection");
  assertEquals(4,elementOrder.size());
  DescriptorTag tag=elementOrder.get(0);
  assertEquals("web-resource-name",tag.getTagName());
  assertFalse(tag.isMultipleAllowed());
  tag=elementOrder.get(1);
  assertEquals("description",tag.getTagName());
  assertFalse(tag.isMultipleAllowed());
  tag=elementOrder.get(2);
  assertEquals("url-pattern",tag.getTagName());
  assertTrue(tag.isMultipleAllowed());
  tag=elementOrder.get(3);
  assertEquals("http-method",tag.getTagName());
  assertTrue(tag.isMultipleAllowed());
}

public void testCanHandleZeroOrMore ( ) throws Exception { Dtd dtd = new Dtd ( "http://java.sun.com/dtd/web-app_2_3.dtd" ) ; List < DescriptorTag > elementOrder = dtd . getElementOrder ( "web-resource-collection" ) ; assertEquals ( 4 , elementOrder . size ( ) ) ; DescriptorTag tag = elementOrder . get ( 0 ) ; assertEquals ( "web-resource-name" , tag . getTagName ( ) ) ; assertFalse ( tag . isMultipleAllowed ( ) ) ; tag = elementOrder . get ( 1 ) ; assertEquals ( "description" , tag . getTagName ( ) ) ; assertFalse ( tag . isMultipleAllowed ( ) ) ; tag = elementOrder . get ( 2 ) ; assertEquals ( "url-pattern" , tag . getTagName ( ) ) ; assertTrue ( tag . isMultipleAllowed ( ) ) ; tag = elementOrder . get ( 3 ) ; assertEquals ( "http-method" , tag . getTagName ( ) ) ; assertTrue ( tag . isMultipleAllowed ( ) ) ; }
test that we can handle " zero or more " type .
