TeStereo report
InternalCallVerifier EqualityVerifier NullVerifier HybridVerifier
@Test public void testSimpleClientBehaviorDefault() throws Exception {
HelloWorld helloWorld=new HelloWorld();
facesContext.getExternalContext().getRequestMap().put("helloWorldBean",helloWorld);
UIViewRoot root=facesContext.getViewRoot();
vdl.buildView(facesContext,root,"testSimpleClientBehaviorDefault.xhtml");
UIComponent form=root.findComponent("testForm1");
Assert.assertNotNull(form);
UINamingContainer compositeComponent=(UINamingContainer)form.getChildren().get(0);
Assert.assertNotNull(compositeComponent);
UICommand button=(UICommand)compositeComponent.findComponent("button");
Assert.assertNotNull(button);
Assert.assertNotNull(button.getClientBehaviors().get("dblclick"));
Assert.assertEquals(1,button.getClientBehaviors().get("dblclick").size());
}