public void addManagedBean( ProjectType testProjectType, String facesConfigFileName, String beanName, String beanClass) { selectManagedBeansNode(facesConfigFileName); // Add managed bean new PushButton("Add...").click(); new DefaultShell(FacesConfigEditor.getAddManagedBeanDialogTitle(testProjectType)); new DefaultText(0).setText(beanClass); new DefaultText(1).setText(beanName); new FinishButton().click(); new WaitWhile( new ShellWithTextIsActive(FacesConfigEditor.getAddManagedBeanDialogTitle(testProjectType))); }
public void addRenderKit( ProjectType testProjectType, String facesConfigFileName, String renderKitId, String renderKitClass) { selectRenderKitsNode(facesConfigFileName); // Add Render Kit new PushButton("Add...").click(); new DefaultShell(FacesConfigEditor.getAddRenderKitDialogTitle(testProjectType)); new DefaultText(0).setText(renderKitId); new DefaultText(1).setText(renderKitClass); new FinishButton().click(); new WaitWhile( new ShellWithTextIsActive(FacesConfigEditor.getAddRenderKitDialogTitle(testProjectType))); }