1 16 package org.apache.myfaces.renderkit.html; 17 18 import javax.servlet.RequestDispatcher ; 19 20 import org.apache.cactus.ServletTestCase; 21 import com.meterware.httpunit.WebResponse; 22 23 24 27 public class Bug970747CactusTest extends ServletTestCase 28 { 29 30 public Bug970747CactusTest(String string) 31 { 32 super(string); 33 } 34 35 36 public void testBug970747() throws Exception 37 { 38 RequestDispatcher rd = config.getServletContext().getRequestDispatcher("/Bug970747CactusTest.jsf"); 39 rd.forward(request, response); 41 } 42 43 44 public void endBug970747(WebResponse response) 45 throws Exception 46 { 47 assertTrue(response.getText().indexOf("</select>") != -1); 48 } 49 } 50 | Popular Tags |