57585960616263
} @Override protected UIComponent createComponentToTest() { return new HtmlBody(); }
5253545556575859606162
public void setUp() throws Exception { super.setUp(); body = new HtmlBody(); writer = new MockResponseWriter(new StringWriter(), null, null); facesContext.setResponseWriter(writer); facesContext.getViewRoot().setRenderKitId(MockRenderKitFactory.HTML_BASIC_RENDER_KIT);
56575859606162
135136137138139140141142143144145
} Assert.assertEquals(1, linksFound); Assert.assertEquals(1, scriptsFound); HtmlBody body = (HtmlBody) root.findComponent("idBody"); Assert.assertNotNull(body); UIForm form = (UIForm) root.findComponent("myForm"); Assert.assertNotNull(form);
125126127128129130131132133134135
5152535455565758596061