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 Bug973025CactusTest extends ServletTestCase 28 { 29 30 public Bug973025CactusTest(String string) 31 { 32 super(string); 33 } 34 35 36 public void testBug() throws Exception 37 { 38 RequestDispatcher rd = config.getServletContext().getRequestDispatcher("/Bug973025CactusTest.jsf"); 39 rd.forward(request, response); 41 } 42 43 44 public void endBug(WebResponse response) 45 throws Exception 46 { 47 assertTrue(response.getText().indexOf("<img id=\"header_logo\" SRC=\"/myfaces-cactus-tests/bug973025/image.png;jsessionid=") != -1); 48 } 49 } 50 | Popular Tags |