1 5 package org.exoplatform.test.mocks.jsf; 6 7 import java.util.HashMap ; 8 import javax.faces.render.* ; 9 import javax.faces.context.FacesContext ; 10 16 public class MockRenderKitFactory extends RenderKitFactory { 17 private HashMap map_ ; 18 19 public MockRenderKitFactory() { 20 map_ = new HashMap () ; 21 } 22 23 public void addRenderKit(String renderKitId, RenderKit renderKit) { 24 map_.put(renderKitId, renderKit) ; 25 } 26 27 public RenderKit getRenderKit(FacesContext context, String renderKitId) { 28 return (RenderKit) map_.get(renderKitId) ; 29 } 30 31 public java.util.Iterator getRenderKitIds() { 32 return null ; 33 } 34 } 35 | Popular Tags |