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 PartialListMissingSizeTest extends DisplaytagCase 16 { 17 18 21 public String getJspName() 22 { 23 return "partialListMissingSize.jsp"; 24 } 25 26 32 public void doTest(String jspName) throws Exception 33 { 34 35 WebRequest request = new GetMethodWebRequest(jspName); 36 37 WebResponse response = null; 38 39 try 40 { 41 response = runner.getResponse(request); 42 fail("Should have thrown an exception, missing size attribute"); 43 } 44 catch (Throwable t) 45 { 46 } 47 48 if (log.isDebugEnabled() && response != null) 49 { 50 log.debug("RESPONSE: " + response.getText()); 51 } 52 } 53 } | Popular Tags |