1 16 package org.apache.myfaces.taglib.html; 17 18 import com.meterware.httpunit.HTMLElement; 19 import com.meterware.httpunit.WebResponse; 20 21 import org.apache.cactus.ServletTestCase; 22 23 import javax.servlet.RequestDispatcher ; 24 25 45 public class HtmlSelectBooleanCheckboxTagCactusTest 46 extends ServletTestCase 47 { 48 50 public HtmlSelectBooleanCheckboxTagCactusTest(String name) { 51 super(name); 52 } 53 54 public void testSimpleRender() throws Exception { 55 RequestDispatcher rd = config.getServletContext().getRequestDispatcher( 56 "/HtmlSelectBooleanCheckboxTagCactusTest.jsf"); 57 rd.forward(request, response); 59 } 60 61 public void endSimpleRender(WebResponse response) 62 throws Exception 63 { 64 HTMLElement element = response.getElementWithID("testForm:selectBooleanCheckbox1"); 65 assertNotNull(element); 66 } 67 } 68 | Popular Tags |