1 16 package org.apache.myfaces.renderkit.html; 17 18 import junit.framework.TestCase; 19 20 34 public class HtmlRendererUtilsTest 35 extends TestCase 36 { 37 39 public HtmlRendererUtilsTest(String s) 40 { 41 super(s); 42 } 43 44 public void testGetClearHiddenCommandFormParamsFunctionName() 45 { 46 String s, r; 47 48 s = "form1"; 50 r = HtmlRendererUtils.getClearHiddenCommandFormParamsFunctionName(s); 51 System.out.println(s + " --> " + r); 52 assertEquals("clear_form1", r); 53 54 s = "container:form1"; 55 r = HtmlRendererUtils.getClearHiddenCommandFormParamsFunctionName(s); 56 System.out.println(s + " --> " + r); 57 assertEquals("clear_container_3Aform1", r); 58 } 59 60 } 61 | Popular Tags |