1 package org.displaytag.jsptests; 2 3 import org.displaytag.test.DisplaytagCase; 4 5 import com.meterware.httpunit.GetMethodWebRequest; 6 import com.meterware.httpunit.WebRequest; 7 import com.meterware.httpunit.WebResponse; 8 9 10 15 public class EmptyExportTest extends DisplaytagCase 16 { 17 18 21 public String getJspName() 22 { 23 return "emptyexport.jsp"; 24 } 25 26 31 public void doTest(String jspName) throws Exception 32 { 33 34 WebRequest request = new GetMethodWebRequest(jspName); 35 36 WebResponse response = runner.getResponse(request); 37 38 assertEquals("Export links should not be shown for an empty table", 0, response.getLinks().length); 39 40 } 41 } | Popular Tags |