8a9,10 > import static junit.framework.Assert.assertTrue; > 53a56,57 > bot.sleep(60000l); > 64a69,110 > > public static ESBAction bpm5Processor() { > return new ESBAction("BPM 5 Processor","BPM","org.jboss.soa.esb.services.jbpm5.actions.Bpm5Processor") { > > @Override > public String getMenuLabel() { > return this.uiName; > } > @Override > public String getSectionTitle() { > return "Bpm 5 Processor Action"; > } > @Override > protected void doEditing(SWTBotEditor editor, String... path) { > SWTBotSection section = bot.section(editor.bot(),getSectionTitle()); > //org.jboss.tools.ui.bot.ext.SWTUtilExt.displayAllBotWidgets(bot); > editTextProperty(editor, section.bot(), "Process Definition Name:", "process-definition-name", "edited process definition name"); > editTextProperty(editor, section.bot(), "Process ID:", "process-id", "edited processID"); > editProcess(editor,false); > } > @Override > protected void doFillForm(SWTBotShell shell) { > Assertions.assertButtonEnabled(shell.bot().button(getFinishButton()), false); > shell.bot().text(0).setText(this.uiName); > shell.bot().text(1).setText(this.uiName + "processDefName"); > shell.bot().text(2).setText(this.uiName + "processID"); > shell.bot().comboBox().setSelection(1); > > /* Added for - https://issues.jboss.org/browse/JBQA-6529 - ESB Editor : create template for BPM5Processor action */ > assertTrue (shell.bot().comboBox().selectionIndex() == 1); > assertTrue (shell.bot().comboBox().itemCount() == 3); > String [] theItems = shell.bot().comboBox().items(); > assertTrue (theItems.length == 3); > assertTrue (theItems[0].equals("startProcess")); > assertTrue (theItems[1].equals("signalEvent")); > assertTrue (theItems[2].equals("abortProcessInstance")); > Assertions.assertButtonEnabled(shell.bot().button(getFinishButton()), true); > } > > }; > } > 388,390c434,435 < System.out.println ("DEBUG - this.uiName " + this.uiName); < < org.jboss.tools.ui.bot.ext.SWTUtilExt.displayAllBotWidgets(shell.bot()); --- > //System.out.println ("DEBUG - this.uiName " + this.uiName); > //org.jboss.tools.ui.bot.ext.SWTUtilExt.displayAllBotWidgets(shell.bot());