public void setUp() throws Exception {
super.setUp();
// Create mock DataAdaptor and childs.
adaptor = new MockDataAdaptor();
child = new UIInput() {
public void processDecodes(FacesContext context) {
childInvoked++;
super.processDecodes(context);
}
};
childInvoked = 0;
child.setId("child");
adaptor.getChildren().add(child);
facetChild = new UIInput() {
public void processDecodes(FacesContext context) {
facetInvoked++;
super.processDecodes(context);
}
};
facetInvoked = 0;
facetChild.setId("facetChild");
adaptor.getFacets().put("facet", facetChild);
childChild = new UIInput() {
public void processDecodes(FacesContext context) {
childChildInvoked++;
super.processDecodes(context);
}
};
;
childChildInvoked = 0;
childChild.setId("childChild");
child.getChildren().add(childChild);
childChildFacet = new UIInput() {
public void processDecodes(FacesContext context) {
childChildFacetInvoked++;
super.processDecodes(context);
}
};