1 15 package org.apache.tapestry.web; 16 17 import java.util.ArrayList ; 18 import java.util.Collections ; 19 import java.util.Enumeration ; 20 import java.util.List ; 21 22 import org.apache.hivemind.test.HiveMindTestCase; 23 24 30 public abstract class BaseWebTestCase extends HiveMindTestCase 31 { 32 33 protected Enumeration newEnumeration() 34 { 35 List l = new ArrayList (); 36 l.add("fred"); 37 l.add("barney"); 38 39 return Collections.enumeration(l); 40 } 41 42 protected void checkList(List l) 43 { 44 assertEquals("barney", l.get(0)); 45 assertEquals("fred", l.get(1)); 46 } 47 48 } | Popular Tags |