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