1 package org.displaytag.jsptests; 2 3 import org.displaytag.test.DisplaytagCase; 4 5 import com.meterware.httpunit.GetMethodWebRequest; 6 import com.meterware.httpunit.WebLink; 7 import com.meterware.httpunit.WebRequest; 8 import com.meterware.httpunit.WebResponse; 9 10 11 16 public class ColumnPoolingTest extends DisplaytagCase 17 { 18 19 22 public String getJspName() 23 { 24 return "columnpooling.jsp"; 25 } 26 27 32 public void doTest(String jspName) throws Exception 33 { 34 35 WebRequest request = new GetMethodWebRequest(jspName); 36 37 WebResponse response = runner.getResponse(request); 38 39 WebLink[] links = response.getLinks(); 40 assertEquals("links should be generated for all the columns", 3, links.length); 41 42 } 43 } | Popular Tags |