1 16 package org.apache.myfaces.taglib.core; 17 18 import javax.servlet.RequestDispatcher ; 19 20 import org.apache.cactus.ServletTestCase; 21 22 import com.meterware.httpunit.WebForm; 23 import com.meterware.httpunit.WebResponse; 24 25 45 public class Bug979039CactusTest 46 extends ServletTestCase 47 { 48 public Bug979039CactusTest(String name) { 49 super(name); 50 } 51 52 public void testBug() throws Exception 53 { 54 RequestDispatcher rd = config.getServletContext().getRequestDispatcher( 55 "/Bug979039CactusTest.jsf"); 56 rd.forward(request, response); 58 } 59 60 public void endBug948626(WebResponse response) 61 throws Exception 62 { 63 assertEquals(-1, response.getText().indexOf("Cannot get NumberFormat, either type or pattern needed.")); 64 WebForm form = response.getFormWithID("testForm"); 65 assertEquals("0", form.getParameterValue("testForm:input")); 66 } 67 } 68 | Popular Tags |