1 5 package org.exoplatform.faces.test; 6 7 import org.exoplatform.faces.UIComponentFactory; 8 import org.exoplatform.faces.core.renderer.xhtmlmp.SimpleFormRenderer; 9 import org.exoplatform.test.BasicTestCase; 10 16 public class TestUIComponentFactory extends BasicTestCase { 17 18 public TestUIComponentFactory(String name) { 19 super(name); 20 } 21 22 public void setUp() throws Exception { 23 24 } 25 26 public void tearDown() throws Exception { 27 28 } 29 30 public void testFactory() throws Exception { 31 UIComponentFactory factory = new UIComponentFactory(null) ; 32 factory.createUIComponent("org.exoplatform.faces.test.UIComponent1$UIInnerComponent") ; 34 } 37 38 public void testGetLabel() throws Exception { 39 SimpleFormRenderer renderer = new SimpleFormRenderer() ; 40 String s = renderer.getLabel("<img SRC='/skin/blank.gif'/>test") ; 41 System.out.println("label = " + s) ; 42 } 43 } | Popular Tags |