}
public void testExpandIdSelector() {
String selector = ".class_form+#-Test .class2 #_aaaa";
UIComponent component = new UIComponentBase() {
public String getFamily() {
// TODO Auto-generated method stub
return null;
}
public UIComponent findComponent(String expr) {
if ("-Test".equals(expr)) {
return new UIComponentBase() {
public String getClientId(FacesContext context) {
return "component1";
}
public String getFamily() {
// TODO Auto-generated method stub
return null;
}
};
} else if ("_aaaa".equals(expr)) {
return new UIComponentBase() {
public String getClientId(FacesContext context) {
return "component2";
}
public String getFamily() {
// TODO Auto-generated method stub