@Override
public void handle() {
assertEquals(getVarValue(), data.get(getAndIncrement()));
}
};
UIComponent child = createCallbackComponent(childCallback);
child.setId("child");
TestCallback facetCallback = new TestCallback() {
@Override
public void handle() {
assertEquals(getVarValue(), data.get(getAndIncrement()));
}
};
UIComponent facet = createCallbackComponent(facetCallback);
child.getFacets().put("f", facet);
facet.setId("facet");
TestCallback immediateFacetCallback = new TestCallback() {
@Override
public void handle() {
getAndIncrement();
assertNull(getVarValue());
}
};
UIComponent immediateFacet = createCallbackComponent(immediateFacetCallback);
immediateFacet.setId("immediateFacet");
mockDataAdaptor.getChildren().add(child);
mockDataAdaptor.getFacets().put("facet", immediateFacet);
mockDataAdaptor.processDecodes(facesContext);