JBoss Tools SVN: r42671 - trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2012-07-23 07:45:31 -0400 (Mon, 23 Jul 2012)
New Revision: 42671
Added:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/PaletteView.java
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ViewBase.java
Log:
Added getToolbarButtonWitTooltip() method as workaround for SWTBot method not working with Eclipse Juno.
Added: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/PaletteView.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/PaletteView.java (rev 0)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/PaletteView.java 2012-07-23 11:45:31 UTC (rev 42671)
@@ -0,0 +1,26 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.ui.bot.ext.view;
+
+import org.apache.log4j.Logger;
+import org.jboss.tools.ui.bot.ext.gen.ActionItem;
+/**
+ * Represents JBoss Tools Palette View
+ * @author vpakan(a)redhat.com
+ *
+ */
+public class PaletteView extends ViewBase {
+ Logger log = Logger.getLogger(PaletteView.class);
+ public PaletteView() {
+ viewObject = ActionItem.View.JBossToolsWebJBossToolsPalette.LABEL;
+ }
+
+}
Property changes on: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/PaletteView.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ViewBase.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ViewBase.java 2012-07-23 10:50:31 UTC (rev 42670)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ViewBase.java 2012-07-23 11:45:31 UTC (rev 42671)
@@ -1,6 +1,7 @@
package org.jboss.tools.ui.bot.ext.view;
import java.util.ArrayList;
+import java.util.Iterator;
import java.util.List;
import org.apache.log4j.Logger;
@@ -65,7 +66,11 @@
public SWTBotView show() {
return open.viewOpen(viewObject);
}
-
+ /**
+ * Get toolbar buttons contained within view
+ * It's workaround for Eclipse Juno where SWTBot is not able to find toolbar buttons of view
+ * @return
+ */
public List<SWTBotToolbarButton> getToolbarButtons() {
return UIThreadRunnable.syncExec(new ListResult<SWTBotToolbarButton>() {
@@ -106,4 +111,46 @@
}
});
}
+ /**
+ * Get first toolbar button contained within view with toolTip
+ * It's workaround for Eclipse Juno where SWTBot is not able to find toolbar buttons of view
+ * @param toolTip
+ * @param index
+ * @return
+ */
+ public SWTBotToolbarButton getToolbarButtonWitTooltip (String toolTip){
+ return getToolbarButtonWitTooltip(toolTip,0);
+ }
+ /**
+ * Get toolbar button contained within view with toolTip and order specified by index
+ * It's workaround for Eclipse Juno where SWTBot is not able to find toolbar buttons of view
+ * @param toolTip
+ * @param index
+ * @return
+ */
+ public SWTBotToolbarButton getToolbarButtonWitTooltip (String toolTip, int index){
+ SWTBotToolbarButton result = null;
+ List<SWTBotToolbarButton> tbList = getToolbarButtons();
+ if (tbList != null && tbList.size() > 0){
+ int indexFound = -1;
+ Iterator<SWTBotToolbarButton> itToolbarButtons = tbList.iterator();
+ while (result == null && itToolbarButtons.hasNext()){
+ SWTBotToolbarButton tbItem = itToolbarButtons.next();
+ if (toolTip.equals(tbItem.getToolTipText())){
+ indexFound++;
+ if(indexFound >= index){
+ result = tbItem;
+ }
+ }
+ }
+ }
+ if (result != null){
+ return result;
+ }
+ else{
+ throw new WidgetNotFoundException("Unable to find toolbar button with tooltip " +
+ toolTip + " within view " + viewObject.getName());
+ }
+
+ }
}
13 years, 8 months
JBoss Tools SVN: r42670 - trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test.
by jbosstools-commits@lists.jboss.org
Author: jpeterka
Date: 2012-07-23 06:50:31 -0400 (Mon, 23 Jul 2012)
New Revision: 42670
Modified:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/.classpath
Log:
Removed hard link to hamcrest jar in hb ui bot test classpath
Modified: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/.classpath
===================================================================
--- trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/.classpath 2012-07-23 10:09:21 UTC (rev 42669)
+++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/.classpath 2012-07-23 10:50:31 UTC (rev 42670)
@@ -3,6 +3,5 @@
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
- <classpathentry kind="lib" path="/home/jpeterka/lib/hamcrest/hamcrest-core-1.2.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
13 years, 8 months
JBoss Tools SVN: r42669 - trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test.
by jbosstools-commits@lists.jboss.org
Author: jpeterka
Date: 2012-07-23 06:09:21 -0400 (Mon, 23 Jul 2012)
New Revision: 42669
Modified:
trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/.classpath
Log:
hard link to hamcrest jar removed from freemarker ui bot test classpah
Modified: trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/.classpath
===================================================================
--- trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/.classpath 2012-07-23 09:36:41 UTC (rev 42668)
+++ trunk/freemarker/tests/org.jboss.tools.freemarker.ui.bot.test/.classpath 2012-07-23 10:09:21 UTC (rev 42669)
@@ -4,6 +4,5 @@
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="ftl"/>
- <classpathentry kind="lib" path="/home/jpeterka/lib/hamcrest/hamcrest-core-1.2.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
13 years, 8 months
JBoss Tools SVN: r42668 - in trunk/hibernatetools/plugins: org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2012-07-23 05:36:41 -0400 (Mon, 23 Jul 2012)
New Revision: 42668
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/QueryParametersPage.java
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleQueryParameter.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate3_5/src/org/jboss/tools/hibernate3_5/HQLQueryPage.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate3_6/src/org/jboss/tools/hibernate3_6/HQLQueryPage.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/HQLQueryPage.java
Log:
https://issues.jboss.org/browse/JBIDE-12354
Use string type name to prevent class loading by other class loader
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleQueryParameter.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleQueryParameter.java 2012-07-23 09:30:23 UTC (rev 42667)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleQueryParameter.java 2012-07-23 09:36:41 UTC (rev 42668)
@@ -102,8 +102,8 @@
this.name = name;
}
- public NullableType getType() {
- return type;
+ public String getTypeName() {
+ return type.getName();
}
public void setType(NullableType type) {
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/QueryParametersPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/QueryParametersPage.java 2012-07-23 09:30:23 UTC (rev 42667)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/QueryParametersPage.java 2012-07-23 09:36:41 UTC (rev 42668)
@@ -213,7 +213,7 @@
while(iterator.hasNext()) {
NullableType type = (NullableType) iterator.next();
if(i==((Integer)value).intValue()) {
- if(cqp.getType()!=type) {
+ if(!cqp.getTypeName().equals(type.getName())) {
cqp.setType(type);
cqp.setNull(); // have to reset to ensure it's working
}
@@ -258,10 +258,10 @@
}
if ( TYPE_PROPERTY.equals( property ) ) {
Iterator<Type> iterator = possibleTypes.iterator();
- NullableType type = cqp.getType();
+ String type = cqp.getTypeName();
int i = 0;
while(iterator.hasNext()) {
- if (type == iterator.next()) {
+ if (type.equals(iterator.next().getName())) {
return Integer.valueOf(i);
}
i++;
@@ -360,7 +360,7 @@
case 0:
return cqp.getName();
case 1:
- return cqp.getType().getName();
+ return cqp.getTypeName();
case 2:
{
String label = cqp.getStringValues()[0];
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate3_5/src/org/jboss/tools/hibernate3_5/HQLQueryPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate3_5/src/org/jboss/tools/hibernate3_5/HQLQueryPage.java 2012-07-23 09:30:23 UTC (rev 42667)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate3_5/src/org/jboss/tools/hibernate3_5/HQLQueryPage.java 2012-07-23 09:36:41 UTC (rev 42668)
@@ -35,6 +35,7 @@
import org.hibernate.console.QueryInputModel;
import org.hibernate.console.ext.HibernateExtension;
import org.hibernate.type.Type;
+import org.hibernate.type.TypeFactory;
public class HQLQueryPage extends AbstractQueryPage {
@@ -84,14 +85,17 @@
try {
int pos = Integer.parseInt(parameter.getName());
//FIXME no method to set positioned list value
- query2.setParameter(pos, calcValue( parameter ), parameter.getType());
+ query2.setParameter(pos, calcValue( parameter ),
+ TypeFactory.heuristicType(parameter.getTypeName()));
} catch(NumberFormatException nfe) {
Object value = parameter.getValue();
if (value != null && value.getClass().isArray()){
Object[] values = (Object[])value;
- query2.setParameterList(parameter.getName(), Arrays.asList(values), parameter.getType());
+ query2.setParameterList(parameter.getName(), Arrays.asList(values),
+ TypeFactory.heuristicType(parameter.getTypeName()));
} else {
- query2.setParameter(parameter.getName(), calcValue( parameter ), parameter.getType());
+ query2.setParameter(parameter.getName(), calcValue( parameter ),
+ TypeFactory.heuristicType(parameter.getTypeName()));
}
}
}
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate3_6/src/org/jboss/tools/hibernate3_6/HQLQueryPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate3_6/src/org/jboss/tools/hibernate3_6/HQLQueryPage.java 2012-07-23 09:30:23 UTC (rev 42667)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate3_6/src/org/jboss/tools/hibernate3_6/HQLQueryPage.java 2012-07-23 09:36:41 UTC (rev 42668)
@@ -34,6 +34,7 @@
import org.hibernate.console.ConsoleQueryParameter;
import org.hibernate.console.QueryInputModel;
import org.hibernate.console.ext.HibernateExtension;
+import org.hibernate.type.BasicTypeRegistry;
import org.hibernate.type.Type;
@@ -41,6 +42,7 @@
private Query query;
private String queryString;
+ private BasicTypeRegistry defaultBasicTypeRegistry = new BasicTypeRegistry();
public List<Object> getList() {
if (query==null) return Collections.emptyList();
@@ -84,14 +86,17 @@
try {
int pos = Integer.parseInt(parameter.getName());
//FIXME no method to set positioned list value
- query2.setParameter(pos, calcValue( parameter ), parameter.getType());
+ query2.setParameter(pos, calcValue( parameter ),
+ defaultBasicTypeRegistry.getRegisteredType(parameter.getTypeName()));
} catch(NumberFormatException nfe) {
Object value = parameter.getValue();
if (value != null && value.getClass().isArray()){
Object[] values = (Object[])value;
- query2.setParameterList(parameter.getName(), Arrays.asList(values), parameter.getType());
+ query2.setParameterList(parameter.getName(), Arrays.asList(values),
+ defaultBasicTypeRegistry.getRegisteredType(parameter.getTypeName()));
} else {
- query2.setParameter(parameter.getName(), calcValue( parameter ), parameter.getType());
+ query2.setParameter(parameter.getName(), calcValue( parameter ),
+ defaultBasicTypeRegistry.getRegisteredType(parameter.getTypeName()));
}
}
}
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/HQLQueryPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/HQLQueryPage.java 2012-07-23 09:30:23 UTC (rev 42667)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/HQLQueryPage.java 2012-07-23 09:36:41 UTC (rev 42668)
@@ -35,6 +35,8 @@
import org.hibernate.console.ConsoleQueryParameter;
import org.hibernate.console.QueryInputModel;
import org.hibernate.console.ext.HibernateExtension;
+import org.hibernate.type.BasicType;
+import org.hibernate.type.BasicTypeRegistry;
import org.hibernate.type.Type;
@@ -42,6 +44,7 @@
private Query query;
private String queryString;
+ private BasicTypeRegistry defaultBasicTypeRegistry = new BasicTypeRegistry();
public List<Object> getList() {
if (query==null) return Collections.emptyList();
@@ -85,14 +88,17 @@
try {
int pos = Integer.parseInt(parameter.getName());
//FIXME no method to set positioned list value
- query2.setParameter(pos, calcValue( parameter ), parameter.getType());
+ query2.setParameter(pos, calcValue( parameter ),
+ defaultBasicTypeRegistry.getRegisteredType(parameter.getTypeName()));
} catch(NumberFormatException nfe) {
Object value = parameter.getValue();
if (value != null && value.getClass().isArray()){
Object[] values = (Object[])value;
- query2.setParameterList(parameter.getName(), Arrays.asList(values), parameter.getType());
+ query2.setParameterList(parameter.getName(), Arrays.asList(values),
+ defaultBasicTypeRegistry.getRegisteredType(parameter.getTypeName()));
} else {
- query2.setParameter(parameter.getName(), calcValue( parameter ), parameter.getType());
+ query2.setParameter(parameter.getName(), calcValue( parameter ),
+ defaultBasicTypeRegistry.getRegisteredType(parameter.getTypeName()));
}
}
}
13 years, 8 months
JBoss Tools SVN: r42667 - in trunk/hibernatetools/plugins: org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2012-07-23 05:30:23 -0400 (Mon, 23 Jul 2012)
New Revision: 42667
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationWizardPage.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/NewConfigurationWizard.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/NewConfigurationWizardPage.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConnectionProfileCtrl.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConsoleConfigurationMainTab.java
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConfigurationFactory.java
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConnectionProfileUtil.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate3_6/src/org/jboss/tools/hibernate3_6/ConfigurationFactory.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/ConfigurationFactory.java
Log:
https://issues.jboss.org/browse/JBIDE-7996
use DTP connection for database connection settings
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConfigurationFactory.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConfigurationFactory.java 2012-07-23 09:11:26 UTC (rev 42666)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConfigurationFactory.java 2012-07-23 09:30:23 UTC (rev 42667)
@@ -395,26 +395,7 @@
IConnectionProfile profile = ProfileManager.getInstance().getProfileByName(
connProfileName);
if (profile != null) {
- final Properties cpProperties = profile.getProperties(profile.getProviderId());
- // seems we should not setup dialect here
- //String dialect = "org.hibernate.dialect.HSQLDialect";
- //invoke.setProperty(Environment.DIALECT, dialect);
- String driverClass = ConnectionProfileUtil.getDriverClass(connProfileName);
- localCfg.setProperty(Environment.DRIVER, driverClass);
- //String driverJarPath = driverInstance != null ?
- // driverInstance.getJarList() : ""; //$NON-NLS-1$
- String url = cpProperties.getProperty(IJDBCDriverDefinitionConstants.URL_PROP_ID);
- // url += "/";// +
- // cpProperties.getProperty(IJDBCDriverDefinitionConstants.DATABASE_NAME_PROP_ID);
- localCfg.setProperty(Environment.URL, url);
- String user = cpProperties.getProperty(IJDBCDriverDefinitionConstants.USERNAME_PROP_ID);
- if (null != user && user.length() > 0) {
- localCfg.setProperty(Environment.USER, user);
- }
- String pass = cpProperties.getProperty(IJDBCDriverDefinitionConstants.PASSWORD_PROP_ID);
- if (null != pass && pass.length() > 0) {
- localCfg.setProperty(Environment.PASS, pass);
- }
+ localCfg.addProperties(ConnectionProfileUtil.getHibernateConnectionProperties(profile));
} else {
String out = NLS.bind(
ConsoleMessages.ConsoleConfiguration_connection_profile_not_found,
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConnectionProfileUtil.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConnectionProfileUtil.java 2012-07-23 09:11:26 UTC (rev 42666)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConnectionProfileUtil.java 2012-07-23 09:30:23 UTC (rev 42667)
@@ -21,11 +21,14 @@
*/
package org.hibernate.console;
+import java.util.Properties;
+
import org.eclipse.datatools.connectivity.ConnectionProfileConstants;
import org.eclipse.datatools.connectivity.IConnectionProfile;
import org.eclipse.datatools.connectivity.ProfileManager;
import org.eclipse.datatools.connectivity.drivers.DriverInstance;
import org.eclipse.datatools.connectivity.drivers.jdbc.IJDBCDriverDefinitionConstants;
+import org.hibernate.cfg.Environment;
/**
* @author Vitali Yemialyanchyk
@@ -71,4 +74,30 @@
di.getProperty(IJDBCDriverDefinitionConstants.DRIVER_CLASS_PROP_ID) : ""; //$NON-NLS-1$
return driverClass;
}
+
+ /**
+ * This method extracts connection properties from connection profile and convert them to
+ * hiberante properties (uses other "keys" for them)
+ * @param profile
+ * @return
+ */
+ public static Properties getHibernateConnectionProperties(IConnectionProfile profile){
+ Properties props = new Properties();
+ if (profile != null) {
+ final Properties cpProperties = profile.getProperties(profile.getProviderId());
+ String driverClass = ConnectionProfileUtil.getDriverClass(profile.getName());
+ props.setProperty(Environment.DRIVER, driverClass);
+ String url = cpProperties.getProperty(IJDBCDriverDefinitionConstants.URL_PROP_ID);
+ props.setProperty(Environment.URL, url);
+ String user = cpProperties.getProperty(IJDBCDriverDefinitionConstants.USERNAME_PROP_ID);
+ if (null != user && user.length() > 0) {
+ props.setProperty(Environment.USER, user);
+ }
+ String pass = cpProperties.getProperty(IJDBCDriverDefinitionConstants.PASSWORD_PROP_ID);
+ if (null != pass && pass.length() > 0) {
+ props.setProperty(Environment.PASS, pass);
+ }
+ }
+ return props;
+ }
}
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationWizardPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationWizardPage.java 2012-07-23 09:11:26 UTC (rev 42666)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationWizardPage.java 2012-07-23 09:30:23 UTC (rev 42667)
@@ -50,6 +50,7 @@
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.jface.wizard.IWizardPage;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
@@ -119,6 +120,8 @@
private boolean initializingTabs;
+ private boolean firstShow = true;
+
/**
* Constructor for SampleNewWizardPage.
*
@@ -586,5 +589,24 @@
dialogChanged();
}
+ @Override
+ public void setPreviousPage(IWizardPage page) {
+ if (page != null){
+ if (firstShow && page instanceof NewConfigurationWizardPage) {
+ NewConfigurationWizardPage newCfgFile = (NewConfigurationWizardPage) page;
+ String cpName = newCfgFile.getConnectionProfileName();
+ if (cpName != null){
+ for (ILaunchConfigurationTab tab : tabGroup.getTabs()) {
+ if (tab instanceof ConsoleConfigurationMainTab) {
+ ConsoleConfigurationMainTab main = (ConsoleConfigurationMainTab) tab;
+ main.selectConnectionProfile(cpName);
+ }
+ }
+ }
+ }
+ firstShow = false;
+ }
+ super.setPreviousPage(page);
+ }
}
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/NewConfigurationWizard.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/NewConfigurationWizard.java 2012-07-23 09:11:26 UTC (rev 42666)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/NewConfigurationWizard.java 2012-07-23 09:30:23 UTC (rev 42667)
@@ -36,6 +36,9 @@
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.datatools.connectivity.IConnectionProfile;
+import org.eclipse.datatools.connectivity.ProfileManager;
+import org.eclipse.datatools.connectivity.drivers.jdbc.IJDBCDriverDefinitionConstants;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.core.JavaCore;
@@ -56,6 +59,7 @@
import org.eclipse.ui.dialogs.WizardNewFileCreationPage;
import org.eclipse.ui.ide.IDE;
import org.hibernate.cfg.Environment;
+import org.hibernate.console.ConnectionProfileUtil;
import org.hibernate.console.ImageConstants;
import org.hibernate.eclipse.console.HibernateConsoleMessages;
import org.hibernate.eclipse.console.HibernateConsolePlugin;
@@ -183,14 +187,23 @@
*/
public boolean performFinish() {
final Properties props = new Properties();
- putIfNotNull(props, Environment.SESSION_FACTORY_NAME, connectionInfoPage.getSessionFactoryName() );
- putIfNotNull(props, Environment.DIALECT, connectionInfoPage.getDialect() );
- putIfNotNull(props, Environment.DRIVER, connectionInfoPage.getDriver() );
- putIfNotNull(props, Environment.URL, connectionInfoPage.getConnectionURL() );
- putIfNotNull(props, Environment.USER, connectionInfoPage.getUsername() );
- putIfNotNull(props, Environment.PASS, connectionInfoPage.getPassword() );
- putIfNotNull(props, Environment.DEFAULT_CATALOG, connectionInfoPage.getDefaultCatalog() );
+ putIfNotNull(props, Environment.SESSION_FACTORY_NAME, connectionInfoPage.getSessionFactoryName() );
+ putIfNotNull(props, Environment.DIALECT, connectionInfoPage.getDialect() );
+ putIfNotNull(props, Environment.DEFAULT_CATALOG, connectionInfoPage.getDefaultCatalog() );
putIfNotNull(props, Environment.DEFAULT_SCHEMA, connectionInfoPage.getDefaultSchema() );
+ if (connectionInfoPage.getConnectionProfileName() != null){
+ String cpName = connectionInfoPage.getConnectionProfileName();
+ IConnectionProfile profile = ProfileManager.getInstance().getProfileByName(cpName);
+ if (profile != null) {
+ props.putAll(ConnectionProfileUtil.getHibernateConnectionProperties(profile));
+ }
+ } else {
+ putIfNotNull(props, Environment.DRIVER, connectionInfoPage.getDriver() );
+ putIfNotNull(props, Environment.URL, connectionInfoPage.getConnectionURL() );
+ putIfNotNull(props, Environment.USER, connectionInfoPage.getUsername() );
+ putIfNotNull(props, Environment.PASS, connectionInfoPage.getPassword() );
+ }
+
final IFile file = cPage.createNewFile();
IRunnableWithProgress op = new IRunnableWithProgress() {
@@ -353,4 +366,6 @@
}
return super.canFinish();
}
+
+
}
\ No newline at end of file
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/NewConfigurationWizardPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/NewConfigurationWizardPage.java 2012-07-23 09:11:26 UTC (rev 42666)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/NewConfigurationWizardPage.java 2012-07-23 09:30:23 UTC (rev 42667)
@@ -38,11 +38,14 @@
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.dialogs.WizardNewFileCreationPage;
import org.hibernate.eclipse.console.HibernateConsoleMessages;
import org.hibernate.eclipse.console.utils.DriverClassHelpers;
+import org.hibernate.eclipse.launch.ConnectionProfileCtrl;
/**
* Wizard for creating basic hibernate.cfg.xml
@@ -56,6 +59,12 @@
private Label fileText;
private Text sessionFactoryNameText;
+
+ private Button useDTPConnection;
+
+ private Label dtpConnection;
+
+ private ConnectionProfileCtrl connectionProfileCtrl;
private Combo dialectCombo;
@@ -77,6 +86,8 @@
private final WizardNewFileCreationPage fileCreation;
private boolean beenShown = false;
+
+ private Group driverManagerTabContainer;
/**
* Constructor for SampleNewWizardPage.
@@ -146,7 +157,7 @@
gd = new GridData(GridData.FILL_HORIZONTAL);
sessionFactoryNameText.setLayoutData(gd);
sessionFactoryNameText.addModifyListener(listener);
-
+
label = new Label(container, SWT.NULL);
label.setText(HibernateConsoleMessages.NewConfigurationWizardPage_database_dialect);
dialectCombo = new Combo(container, SWT.NULL);
@@ -167,8 +178,41 @@
gd.horizontalAlignment = SWT.TOP;
gd.verticalAlignment = SWT.TOP;
label.setLayoutData(gd);
+
+
+
+ useDTPConnection = new Button(container, SWT.CHECK);
+ useDTPConnection.setText("Use DTP Connection");
+ useDTPConnection.addSelectionListener(selectionListener);
- Composite driverManagerTabContainer = container;
+ GridData gd2 = new GridData(SWT.NULL, SWT.NULL, false, false, 2, 1);
+ useDTPConnection.setLayoutData(gd2);
+
+ dtpConnection = new Label(container, SWT.NULL);
+ dtpConnection.setText("DTP Connection");
+ dtpConnection.setLayoutData(gd);
+ dtpConnection.setEnabled(false);
+
+ connectionProfileCtrl = new ConnectionProfileCtrl(container, 1, ""); //$NON-NLS-1$
+ connectionProfileCtrl.addModifyListener(new ModifyListener() {
+ @Override
+ public void modifyText(ModifyEvent e) {
+ if (connectionProfileCtrl.hasConnectionProfileSelected()){
+ setPageComplete(connectionProfileCtrl.hasConnectionProfileSelected());
+ }
+ }
+ });
+ connectionProfileCtrl.setEnabled(false);
+
+
+ driverManagerTabContainer = new Group(container, SWT.NONE);
+ driverManagerTabContainer.setText("Custom");
+ driverManagerTabContainer.setLayout(layout);
+ gd = new GridData(GridData.FILL_HORIZONTAL);
+ gd.horizontalSpan = 2;
+ driverManagerTabContainer.setLayoutData(gd);
+
+ //Composite driverManagerTabContainer = container;
label = new Label(driverManagerTabContainer, SWT.NULL);
label.setText(HibernateConsoleMessages.NewConfigurationWizardPage_driver_class);
driver_classCombo = new Combo(driverManagerTabContainer, SWT.NULL);
@@ -195,20 +239,6 @@
urlCombo.addModifyListener(listener);
label = new Label(driverManagerTabContainer, SWT.NULL);
- label.setText(HibernateConsoleMessages.NewConfigurationWizardPage_default_schema);
- defaultSchemaText = new Text(driverManagerTabContainer, SWT.BORDER | SWT.SINGLE);
- gd = new GridData(GridData.FILL_HORIZONTAL);
- defaultSchemaText.setLayoutData(gd);
- defaultSchemaText.addModifyListener(listener);
-
- label = new Label(driverManagerTabContainer, SWT.NULL);
- label.setText(HibernateConsoleMessages.NewConfigurationWizardPage_default_catalog);
- defaultCatalogText = new Text(driverManagerTabContainer, SWT.BORDER | SWT.SINGLE);
- gd = new GridData(GridData.FILL_HORIZONTAL);
- defaultCatalogText.setLayoutData(gd);
- defaultCatalogText.addModifyListener(listener);
-
- label = new Label(driverManagerTabContainer, SWT.NULL);
label.setText(HibernateConsoleMessages.NewConfigurationWizardPage_user_name);
usernameText = new Text(driverManagerTabContainer, SWT.BORDER | SWT.SINGLE);
gd = new GridData(GridData.FILL_HORIZONTAL);
@@ -221,10 +251,23 @@
gd = new GridData(GridData.FILL_HORIZONTAL);
passwordText.setLayoutData(gd);
passwordText.addModifyListener(listener);
+
+ label = new Label(container, SWT.NULL);
+ label.setText(HibernateConsoleMessages.NewConfigurationWizardPage_default_schema);
+ defaultSchemaText = new Text(container, SWT.BORDER | SWT.SINGLE);
+ gd = new GridData(GridData.FILL_HORIZONTAL);
+ defaultSchemaText.setLayoutData(gd);
+ defaultSchemaText.addModifyListener(listener);
+ label = new Label(container, SWT.NULL);
+ label.setText(HibernateConsoleMessages.NewConfigurationWizardPage_default_catalog);
+ defaultCatalogText = new Text(container, SWT.BORDER | SWT.SINGLE);
+ gd = new GridData(GridData.FILL_HORIZONTAL);
+ defaultCatalogText.setLayoutData(gd);
+ defaultCatalogText.addModifyListener(listener);
+
fillLabel(container);
fillLabel(container);
-
fillLabel(container);
createConsoleConfiguration = new Button(container, SWT.CHECK);
@@ -293,6 +336,19 @@
* Ensures that contents is ok.
*/
private void dialogChanged() {
+ dtpConnection.setEnabled(useDTPConnection.getSelection());
+ connectionProfileCtrl.setEnabled(useDTPConnection.getSelection());
+ if (useDTPConnection.getSelection()){
+ setPageComplete(connectionProfileCtrl.hasConnectionProfileSelected());
+ } else {
+ setPageComplete(true);
+ }
+
+ driverManagerTabContainer.setEnabled(!useDTPConnection.getSelection());
+ for (Control control : driverManagerTabContainer.getChildren()) {
+ control.setEnabled(!useDTPConnection.getSelection());
+ }
+
IResource container = ResourcesPlugin.getWorkspace().getRoot()
.findMember(new Path(getContainerName() ) );
String fileName = getFileName();
@@ -425,4 +481,18 @@
public String getDefaultSchema() {
return nullIfEmpty(defaultSchemaText.getText());
}
+
+ public void setConnectionProfileName(String cpName){
+ if (cpName != null){
+ useDTPConnection.setSelection(true);
+ connectionProfileCtrl.selectValue(cpName);
+ }
+ }
+
+ public String getConnectionProfileName(){
+ if (useDTPConnection.getSelection()){
+ return connectionProfileCtrl.getSelectedConnectionName();
+ }
+ return null;
+ }
}
\ No newline at end of file
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConnectionProfileCtrl.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConnectionProfileCtrl.java 2012-07-23 09:11:26 UTC (rev 42666)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConnectionProfileCtrl.java 2012-07-23 09:30:23 UTC (rev 42667)
@@ -56,6 +56,7 @@
protected ComboViewer comboControl;
protected Button buttonNew;
protected Button buttonEdit;
+ private boolean useSynteticValues = false;
static final String NO_CONNECTIN_NAME = HibernateConsoleMessages.ConnectionProfileCtrl_HibernateConfiguredConnection;
static final String JPA_CONNECTIN_NAME = HibernateConsoleMessages.ConnectionProfileCtrl_JPAConfiguredConnection;
@@ -102,6 +103,10 @@
createComboWithTwoButtons(comp, hspan, defaultValue,
new NewConnectionProfileAction(), new EditConnectionProfileAction());
}
+
+ public void setUseSynteticValue(boolean value){
+ this.useSynteticValues = value;
+ }
public class ButtonPressedAction extends Action implements SelectionListener {
@@ -235,7 +240,7 @@
public Composite createComboWithTwoButtons(Composite container, int hspan,
String defaultValue, ButtonPressedAction action1, ButtonPressedAction action2) {
- Composite comp = SWTFactory.createComposite(container, container.getFont(), 3, 1, GridData.FILL_BOTH, 0, 0);
+ Composite comp = SWTFactory.createComposite(container, container.getFont(), 3, 1, GridData.FILL_HORIZONTAL, 0, 0);
Combo combo;
combo = new Combo(comp, SWT.DROP_DOWN | SWT.READ_ONLY);
combo.setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WHITE));
@@ -339,8 +344,10 @@
IConnectionProfile[] profiles = ProfileManager.getInstance()
.getProfilesByCategory("org.eclipse.datatools.connectivity.db.category"); //$NON-NLS-1$
List<ConnectionWrapper> names = new ArrayList<ConnectionWrapper>();
- names.add(JPA_CONNECTION_PLACEHOLDER);
- names.add(NO_CONNECTION_PLACEHOLDER);
+ if (useSynteticValues){
+ names.add(JPA_CONNECTION_PLACEHOLDER);
+ names.add(NO_CONNECTION_PLACEHOLDER);
+ }
for (IConnectionProfile connectionProfile : profiles) {
names.add(new ConnectionWrapper(connectionProfile.getName(), connectionProfile));
}
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConsoleConfigurationMainTab.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConsoleConfigurationMainTab.java 2012-07-23 09:11:26 UTC (rev 42666)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConsoleConfigurationMainTab.java 2012-07-23 09:30:23 UTC (rev 42667)
@@ -213,6 +213,12 @@
}
}
+ public void selectConnectionProfile(String cpName){
+ if (cpName != null){
+ connectionProfileCtrl.selectValue(cpName);
+ }
+ }
+
public void initializeFrom(ILaunchConfiguration configuration) {
try {
@@ -376,6 +382,11 @@
IWizardPage configPage = wizard.getPage(HibernateConsoleMessages.ConsoleConfigurationMainTab_wizard_page);
if (configPage != null && configPage instanceof NewConfigurationWizardPage){
((NewConfigurationWizardPage)configPage).setCreateConsoleConfigurationVisible(false);
+ String cpName = nonEmptyTrimOrNull(connectionProfileCtrl.getSelectedConnectionName());
+ if (cpName != null
+ && !ConnectionProfileCtrl.JPA_CONNECTIN_NAME.equals(cpName)
+ && !ConnectionProfileCtrl.NO_CONNECTIN_NAME.equals(cpName))
+ ((NewConfigurationWizardPage)configPage).setConnectionProfileName(connectionProfileCtrl.getSelectedConnectionName());
}
// This opens a dialog
if (wdialog.open() == Window.OK){
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate3_6/src/org/jboss/tools/hibernate3_6/ConfigurationFactory.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate3_6/src/org/jboss/tools/hibernate3_6/ConfigurationFactory.java 2012-07-23 09:11:26 UTC (rev 42666)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate3_6/src/org/jboss/tools/hibernate3_6/ConfigurationFactory.java 2012-07-23 09:30:23 UTC (rev 42667)
@@ -31,7 +31,6 @@
import org.dom4j.io.DOMWriter;
import org.eclipse.datatools.connectivity.IConnectionProfile;
import org.eclipse.datatools.connectivity.ProfileManager;
-import org.eclipse.datatools.connectivity.drivers.jdbc.IJDBCDriverDefinitionConstants;
import org.eclipse.osgi.util.NLS;
import org.hibernate.HibernateException;
import org.hibernate.MappingException;
@@ -387,26 +386,7 @@
IConnectionProfile profile = ProfileManager.getInstance().getProfileByName(
connProfileName);
if (profile != null) {
- final Properties cpProperties = profile.getProperties(profile.getProviderId());
- // seems we should not setup dialect here
- //String dialect = "org.hibernate.dialect.HSQLDialect";
- //invoke.setProperty(Environment.DIALECT, dialect);
- String driverClass = ConnectionProfileUtil.getDriverClass(connProfileName);
- localCfg.setProperty(Environment.DRIVER, driverClass);
- //String driverJarPath = driverInstance != null ?
- // driverInstance.getJarList() : ""; //$NON-NLS-1$
- String url = cpProperties.getProperty(IJDBCDriverDefinitionConstants.URL_PROP_ID);
- // url += "/";// +
- // cpProperties.getProperty(IJDBCDriverDefinitionConstants.DATABASE_NAME_PROP_ID);
- localCfg.setProperty(Environment.URL, url);
- String user = cpProperties.getProperty(IJDBCDriverDefinitionConstants.USERNAME_PROP_ID);
- if (null != user && user.length() > 0) {
- localCfg.setProperty(Environment.USER, user);
- }
- String pass = cpProperties.getProperty(IJDBCDriverDefinitionConstants.PASSWORD_PROP_ID);
- if (null != pass && pass.length() > 0) {
- localCfg.setProperty(Environment.PASS, pass);
- }
+ localCfg.addProperties(ConnectionProfileUtil.getHibernateConnectionProperties(profile));
} else {
String out = NLS.bind(
ConsoleMessages.ConsoleConfiguration_connection_profile_not_found,
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/ConfigurationFactory.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/ConfigurationFactory.java 2012-07-23 09:11:26 UTC (rev 42666)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate4_0/src/org/jboss/tools/hibernate4_0/ConfigurationFactory.java 2012-07-23 09:30:23 UTC (rev 42667)
@@ -42,7 +42,6 @@
import org.dom4j.io.DOMWriter;
import org.eclipse.datatools.connectivity.IConnectionProfile;
import org.eclipse.datatools.connectivity.ProfileManager;
-import org.eclipse.datatools.connectivity.drivers.jdbc.IJDBCDriverDefinitionConstants;
import org.eclipse.osgi.util.NLS;
import org.hibernate.HibernateException;
import org.hibernate.MappingException;
@@ -402,26 +401,7 @@
IConnectionProfile profile = ProfileManager.getInstance().getProfileByName(
connProfileName);
if (profile != null) {
- final Properties cpProperties = profile.getProperties(profile.getProviderId());
- // seems we should not setup dialect here
- //String dialect = "org.hibernate.dialect.HSQLDialect";
- //invoke.setProperty(Environment.DIALECT, dialect);
- String driverClass = ConnectionProfileUtil.getDriverClass(connProfileName);
- localCfg.setProperty(Environment.DRIVER, driverClass);
- //String driverJarPath = driverInstance != null ?
- // driverInstance.getJarList() : ""; //$NON-NLS-1$
- String url = cpProperties.getProperty(IJDBCDriverDefinitionConstants.URL_PROP_ID);
- // url += "/";// +
- // cpProperties.getProperty(IJDBCDriverDefinitionConstants.DATABASE_NAME_PROP_ID);
- localCfg.setProperty(Environment.URL, url);
- String user = cpProperties.getProperty(IJDBCDriverDefinitionConstants.USERNAME_PROP_ID);
- if (null != user && user.length() > 0) {
- localCfg.setProperty(Environment.USER, user);
- }
- String pass = cpProperties.getProperty(IJDBCDriverDefinitionConstants.PASSWORD_PROP_ID);
- if (null != pass && pass.length() > 0) {
- localCfg.setProperty(Environment.PASS, pass);
- }
+ localCfg.addProperties(ConnectionProfileUtil.getHibernateConnectionProperties(profile));
} else {
String out = NLS.bind(
ConsoleMessages.ConsoleConfiguration_connection_profile_not_found,
13 years, 8 months
JBoss Tools SVN: r42666 - trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test.
by jbosstools-commits@lists.jboss.org
Author: apodhrad
Date: 2012-07-23 05:11:26 -0400 (Mon, 23 Jul 2012)
New Revision: 42666
Modified:
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/WizardTest.java
Log:
bpel bot test: updated some wizard tests
Modified: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/WizardTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/WizardTest.java 2012-07-23 08:55:00 UTC (rev 42665)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/WizardTest.java 2012-07-23 09:11:26 UTC (rev 42666)
@@ -25,90 +25,90 @@
public class WizardTest extends BPELTest {
-// @Test
-// public void createNewSyncProcess() throws Exception {
-// IProject project = createNewProject("SyncProcessProject");
-// IFile process = createNewProcess("SyncProcessProject", "SyncProcess", BPELConstants.SYNC_PROCESS_LABEL, false);
-//
-// process.getFileExtension();
-// String processContent = loadFile(process);
-//
-// Assert.assertTrue(processContent != null);
-// Assert.assertTrue(processContent.contains("http://docs.oasis-open.org/wsbpel/2.0/process/executable"));
-// Assert.assertTrue(processContent.contains("<bpel:import location=\"SyncProcessArtifacts.wsdl\""));
-// Assert.assertTrue(processContent.contains("<bpel:receive name=\"receiveInput\""));
-// Assert.assertTrue(processContent.contains("<bpel:reply name=\"replyOutput\""));
-// Assert.assertTrue(isRuntimeSet("SyncProcessProject"));
-// }
-//
-// @Test
-// public void createNewAsyncProcess() throws Exception {
-// IProject project = createNewProject("AsyncProcessProject");
-// IFile process = createNewProcess("AsyncProcessProject", "AsyncProcess", BPELConstants.ASYNC_PROCESS_LABEL, false);
-//
-// process.getFileExtension();
-// String processContent = loadFile(process);
-//
-// Assert.assertTrue(processContent != null);
-// Assert.assertTrue(processContent.contains("http://docs.oasis-open.org/wsbpel/2.0/process/executable"));
-// Assert.assertTrue(processContent.contains("<bpel:import location=\"AsyncProcessArtifacts.wsdl\""));
-// Assert.assertTrue(processContent.contains("<bpel:receive name=\"receiveInput\""));
-// Assert.assertTrue(processContent.contains("<bpel:invoke name=\"callbackClient\""));
-// Assert.assertTrue(isRuntimeSet("AsyncProcessProject"));
-// }
-//
-// @Test
-// public void createNewEmptyProcess() throws Exception {
-// IProject project = createNewProject("EmptyProcessProject");
-// IFile process = createNewProcess("EmptyProcessProject", "EmptyProcess", BPELConstants.EMPTY_PROCESS_LABEL, false);
-//
-// process.getFileExtension();
-// String processContent = loadFile(process);
-//
-// Assert.assertTrue(processContent != null);
-// Assert.assertTrue(processContent.contains("http://docs.oasis-open.org/wsbpel/2.0/process/executable"));
-// Assert.assertTrue(processContent.contains("<bpel:import location=\"EmptyProcessArtifacts.wsdl\""));
-// Assert.assertTrue(processContent.contains("<bpel:sequence name=\"main\">"));
-// Assert.assertTrue(processContent.contains("<bpel:empty name=\"Empty\"></bpel:empty>"));
-//
-// Assert.assertFalse(processContent.contains("<bpel:receive name=\"receiveInput\""));
-//
-// Assert.assertTrue(isRuntimeSet("EmptyProcessProject"));
-// }
-//
-// @Test
-// public void createNewAbstractSyncProcess() throws Exception {
-// IProject project = createNewProject("AbstractProcessProject");
-// IFile process = createNewProcess("AbstractProcessProject", "AbstractProcess", BPELConstants.SYNC_PROCESS_LABEL, true);
-//
-// process.getFileExtension();
-// String processContent = loadFile(process);
-//
-// Assert.assertTrue(processContent != null);
-// Assert.assertTrue(processContent.contains("http://docs.oasis-open.org/wsbpel/2.0/process/abstract"));
-// Assert.assertTrue(processContent.contains("<bpel:import location=\"AbstractProcessArtifacts.wsdl\""));
-// Assert.assertTrue(processContent.contains("<bpel:receive name=\"receiveInput\""));
-// Assert.assertTrue(processContent.contains("<bpel:reply name=\"replyOutput\""));
-// Assert.assertTrue(isRuntimeSet("AbstractProcessProject"));
-// }
-//
-//
-// /**
-// * @author psrna
-// * @throws Exception
-// */
-// @Test
-// public void createNewDeployDescriptor() throws Exception {
-//
-// IProject project = createNewProject("ODEProject");
-// IFile deploy = createNewDeployDescriptor("ODEProject");
-//
-// String deployContent = loadFile(deploy);
-// Assert.assertTrue(deployContent != null);
-//
-// }
-//
+ @Test
+ public void createNewSyncProcess() throws Exception {
+ IProject project = createNewProject("SyncProcessProject");
+ IFile process = createNewProcess("SyncProcessProject", "SyncProcess", BPELConstants.SYNC_PROCESS_LABEL, false);
+
+ process.getFileExtension();
+ String processContent = loadFile(process);
+
+ Assert.assertTrue(processContent != null);
+ Assert.assertTrue(processContent.contains("http://docs.oasis-open.org/wsbpel/2.0/process/executable"));
+ Assert.assertTrue(processContent.contains("<bpel:import location=\"SyncProcessArtifacts.wsdl\""));
+ Assert.assertTrue(processContent.contains("<bpel:receive name=\"receiveInput\""));
+ Assert.assertTrue(processContent.contains("<bpel:reply name=\"replyOutput\""));
+ Assert.assertTrue(isRuntimeSet("SyncProcessProject"));
+ }
+
+ @Test
+ public void createNewAsyncProcess() throws Exception {
+ IProject project = createNewProject("AsyncProcessProject");
+ IFile process = createNewProcess("AsyncProcessProject", "AsyncProcess", BPELConstants.ASYNC_PROCESS_LABEL, false);
+
+ process.getFileExtension();
+ String processContent = loadFile(process);
+
+ Assert.assertTrue(processContent != null);
+ Assert.assertTrue(processContent.contains("http://docs.oasis-open.org/wsbpel/2.0/process/executable"));
+ Assert.assertTrue(processContent.contains("<bpel:import location=\"AsyncProcessArtifacts.wsdl\""));
+ Assert.assertTrue(processContent.contains("<bpel:receive name=\"receiveInput\""));
+ Assert.assertTrue(processContent.contains("<bpel:invoke name=\"callbackClient\""));
+ Assert.assertTrue(isRuntimeSet("AsyncProcessProject"));
+ }
+
+ @Test
+ public void createNewEmptyProcess() throws Exception {
+ IProject project = createNewProject("EmptyProcessProject");
+ IFile process = createNewProcess("EmptyProcessProject", "EmptyProcess", BPELConstants.EMPTY_PROCESS_LABEL, false);
+
+ process.getFileExtension();
+ String processContent = loadFile(process);
+
+ Assert.assertTrue(processContent != null);
+ Assert.assertTrue(processContent.contains("http://docs.oasis-open.org/wsbpel/2.0/process/executable"));
+ Assert.assertTrue(processContent.contains("<bpel:import location=\"EmptyProcessArtifacts.wsdl\""));
+ Assert.assertTrue(processContent.contains("<bpel:sequence name=\"main\">"));
+ Assert.assertTrue(processContent.contains("<bpel:empty name=\"Empty\"></bpel:empty>"));
+
+ Assert.assertFalse(processContent.contains("<bpel:receive name=\"receiveInput\""));
+
+ Assert.assertTrue(isRuntimeSet("EmptyProcessProject"));
+ }
+
+ @Test
+ public void createNewAbstractSyncProcess() throws Exception {
+ IProject project = createNewProject("AbstractProcessProject");
+ IFile process = createNewProcess("AbstractProcessProject", "AbstractProcess", BPELConstants.SYNC_PROCESS_LABEL, true);
+
+ process.getFileExtension();
+ String processContent = loadFile(process);
+
+ Assert.assertTrue(processContent != null);
+ Assert.assertTrue(processContent.contains("http://docs.oasis-open.org/wsbpel/2.0/process/abstract"));
+ Assert.assertTrue(processContent.contains("<bpel:import location=\"AbstractProcessArtifacts.wsdl\""));
+ Assert.assertTrue(processContent.contains("<bpel:receive name=\"receiveInput\""));
+ Assert.assertTrue(processContent.contains("<bpel:reply name=\"replyOutput\""));
+ Assert.assertTrue(isRuntimeSet("AbstractProcessProject"));
+ }
+
+
/**
+ * @author psrna
+ * @throws Exception
+ */
+ @Test
+ public void createNewDeployDescriptor() throws Exception {
+
+ IProject project = createNewProject("ODEProject");
+ IFile deploy = createNewDeployDescriptor("ODEProject");
+
+ String deployContent = loadFile(deploy);
+ Assert.assertTrue(deployContent != null);
+
+ }
+
+ /**
* @author apodhrad
*
* Test for JBIDE-11536
13 years, 8 months
JBoss Tools SVN: r42665 - trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2012-07-23 04:55:00 -0400 (Mon, 23 Jul 2012)
New Revision: 42665
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTUtilExt.java
Log:
Handle errors from "widget".toString() method.
Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTUtilExt.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTUtilExt.java 2012-07-20 17:55:49 UTC (rev 42664)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTUtilExt.java 2012-07-23 08:55:00 UTC (rev 42665)
@@ -667,7 +667,13 @@
public static void displayAllBotWidgets (SWTBot bot){
List<?> widgets = bot.widgets(new SWTUtilExt.AlwaysMatchMatcher<Widget>());
for (Object object : widgets){
- System.out.println(object +
+ String objectToString;
+ try{
+ objectToString = object.toString();
+ } catch (Throwable t){
+ objectToString = "<null>";
+ }
+ System.out.println(objectToString +
" Text: " + SWTUtilExt.invokeMethod(object, "getText") +
" Tooltip: " + SWTUtilExt.invokeMethod(object, "getToolTipText"));
}
13 years, 8 months
JBoss Tools SVN: r42664 - in trunk/cdi/plugins: org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2012-07-20 13:55:49 -0400 (Fri, 20 Jul 2012)
New Revision: 42664
Added:
trunk/cdi/plugins/org.jboss.tools.cdi.core/images/wizard/CDIAnnotationWizBan.png
trunk/cdi/plugins/org.jboss.tools.cdi.core/images/wizard/CDIBeansXMLWizBan.png
trunk/cdi/plugins/org.jboss.tools.cdi.core/images/wizard/CDIClassWizBan.png
trunk/cdi/plugins/org.jboss.tools.cdi.core/images/wizard/CDIProjectWizBan.png
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDIImages.java
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/CDIProjectWizard.java
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewAnnotationLiteralWizardPage.java
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewBeanWizardPage.java
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewBeansXMLCreationWizard.java
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewCDIAnnotationWizardPage.java
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewDecoratorWizardPage.java
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewInterceptorWizardPage.java
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/facet/CDIInstallWizardPage.java
Log:
Different images for CDI wizards https://issues.jboss.org/browse/JBIDE-12349
Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/images/wizard/CDIAnnotationWizBan.png
===================================================================
(Binary files differ)
Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.core/images/wizard/CDIAnnotationWizBan.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/images/wizard/CDIBeansXMLWizBan.png
===================================================================
(Binary files differ)
Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.core/images/wizard/CDIBeansXMLWizBan.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/images/wizard/CDIClassWizBan.png
===================================================================
(Binary files differ)
Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.core/images/wizard/CDIClassWizBan.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/images/wizard/CDIProjectWizBan.png
===================================================================
(Binary files differ)
Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.core/images/wizard/CDIProjectWizBan.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDIImages.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDIImages.java 2012-07-20 14:18:50 UTC (rev 42663)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDIImages.java 2012-07-20 17:55:49 UTC (rev 42664)
@@ -48,7 +48,10 @@
public static final Image QUICKFIX_EDIT = getImage("quickfixes/cdi_edit.png"); //$NON-NLS-1$
public static final Image QUICKFIX_CHANGE = getImage("quickfixes/cdi_change.png"); //$NON-NLS-1$
- public static final String WELD_WIZARD_IMAGE_PATH = "wizard/WeldWizBan.gif"; //$NON-NLS-1$
+ public static final String CDI_PROJECT_IMAGE = "wizard/CDIProjectWizBan.png"; //$NON-NLS-1$
+ public static final String CDI_BEANS_XML_IMAGE = "wizard/CDIBeansXMLWizBan.png"; //$NON-NLS-1$
+ public static final String CDI_CLASS_IMAGE = "wizard/CDIClassWizBan.png"; //$NON-NLS-1$
+ public static final String CDI_ANNOTATION_IMAGE = "wizard/CDIAnnotationWizBan.png"; //$NON-NLS-1$
public static Image getImage(String key) {
return INSTANCE.createImageDescriptor(key).createImage();
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/CDIProjectWizard.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/CDIProjectWizard.java 2012-07-20 14:18:50 UTC (rev 42663)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/CDIProjectWizard.java 2012-07-20 17:55:49 UTC (rev 42664)
@@ -111,7 +111,7 @@
*/
@Override
protected ImageDescriptor getDefaultPageImageDescriptor() {
- return CDIImages.getImageDescriptor(CDIImages.WELD_WIZARD_IMAGE_PATH);
+ return CDIImages.getImageDescriptor(CDIImages.CDI_PROJECT_IMAGE);
}
/*
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewAnnotationLiteralWizardPage.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewAnnotationLiteralWizardPage.java 2012-07-20 14:18:50 UTC (rev 42663)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewAnnotationLiteralWizardPage.java 2012-07-20 17:55:49 UTC (rev 42664)
@@ -81,7 +81,7 @@
public NewAnnotationLiteralWizardPage() {
setTitle(CDIUIMessages.NEW_ANNOTATION_LITERAL_WIZARD_PAGE_NAME);
setDescription(CDIUIMessages.NEW_ANNOTATION_LITERAL_WIZARD_DESCRIPTION);
- setImageDescriptor(CDIImages.getImageDescriptor(CDIImages.WELD_WIZARD_IMAGE_PATH));
+ setImageDescriptor(CDIImages.getImageDescriptor(CDIImages.CDI_ANNOTATION_IMAGE));
qualifiersProvider.setMulti(false);
}
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewBeanWizardPage.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewBeanWizardPage.java 2012-07-20 14:18:50 UTC (rev 42663)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewBeanWizardPage.java 2012-07-20 17:55:49 UTC (rev 42664)
@@ -89,7 +89,7 @@
public NewBeanWizardPage() {
setTitle(CDIUIMessages.NEW_BEAN_WIZARD_PAGE_NAME);
setDescription(CDIUIMessages.NEW_BEAN_WIZARD_DESCRIPTION);
- setImageDescriptor(CDIImages.getImageDescriptor(CDIImages.WELD_WIZARD_IMAGE_PATH));
+ setImageDescriptor(CDIImages.getImageDescriptor(CDIImages.CDI_CLASS_IMAGE));
}
public void setMayBeRegisteredInBeansXML(boolean b) {
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewBeansXMLCreationWizard.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewBeansXMLCreationWizard.java 2012-07-20 14:18:50 UTC (rev 42663)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewBeansXMLCreationWizard.java 2012-07-20 17:55:49 UTC (rev 42664)
@@ -74,7 +74,7 @@
mainPage = new WizardNewBeansXMLFileCreationPage("newFilePage1", getSelection());//$NON-NLS-1$
mainPage.setTitle(CDIUIMessages.NEW_BEANS_XML_WIZARD_PAGE_NAME);
mainPage.setDescription(CDIUIMessages.NEW_BEANS_XML_WIZARD_DESCRIPTION);
- mainPage.setImageDescriptor(CDIImages.getImageDescriptor(CDIImages.WELD_WIZARD_IMAGE_PATH));
+ mainPage.setImageDescriptor(CDIImages.getImageDescriptor(CDIImages.CDI_BEANS_XML_IMAGE));
mainPage.setFileName("beans.xml");
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewCDIAnnotationWizardPage.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewCDIAnnotationWizardPage.java 2012-07-20 14:18:50 UTC (rev 42663)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewCDIAnnotationWizardPage.java 2012-07-20 17:55:49 UTC (rev 42664)
@@ -57,7 +57,7 @@
protected IFieldEditor target = null;
public NewCDIAnnotationWizardPage() {
- setImageDescriptor(CDIImages.getImageDescriptor(CDIImages.WELD_WIZARD_IMAGE_PATH));
+ setImageDescriptor(CDIImages.getImageDescriptor(CDIImages.CDI_ANNOTATION_IMAGE));
}
protected void createTypeMembers(IType newType, final ImportsManager imports, IProgressMonitor monitor) throws CoreException {
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewDecoratorWizardPage.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewDecoratorWizardPage.java 2012-07-20 14:18:50 UTC (rev 42663)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewDecoratorWizardPage.java 2012-07-20 17:55:49 UTC (rev 42664)
@@ -77,7 +77,7 @@
public NewDecoratorWizardPage() {
setTitle(CDIUIMessages.NEW_DECORATOR_WIZARD_PAGE_NAME);
setDescription(CDIUIMessages.NEW_DECORATOR_WIZARD_DESCRIPTION);
- setImageDescriptor(CDIImages.getImageDescriptor(CDIImages.WELD_WIZARD_IMAGE_PATH));
+ setImageDescriptor(CDIImages.getImageDescriptor(CDIImages.CDI_CLASS_IMAGE));
}
public void setMayBeRegisteredInBeansXML(boolean b) {
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewInterceptorWizardPage.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewInterceptorWizardPage.java 2012-07-20 14:18:50 UTC (rev 42663)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewInterceptorWizardPage.java 2012-07-20 17:55:49 UTC (rev 42664)
@@ -14,9 +14,7 @@
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.util.ArrayList;
-import java.util.HashSet;
import java.util.List;
-import java.util.Set;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
@@ -29,17 +27,9 @@
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.core.ISourceRange;
import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.dom.AST;
-import org.eclipse.jdt.core.dom.ASTParser;
-import org.eclipse.jdt.core.dom.CompilationUnit;
-import org.eclipse.jdt.core.dom.ITypeBinding;
import org.eclipse.jdt.core.formatter.CodeFormatter;
-import org.eclipse.jdt.internal.corext.codemanipulation.AddUnimplementedConstructorsOperation;
-import org.eclipse.jdt.internal.corext.codemanipulation.AddUnimplementedMethodsOperation;
import org.eclipse.jdt.internal.corext.codemanipulation.CodeGenerationSettings;
import org.eclipse.jdt.internal.corext.codemanipulation.StubUtility;
-import org.eclipse.jdt.internal.corext.codemanipulation.StubUtility2;
-import org.eclipse.jdt.internal.corext.dom.ASTNodes;
import org.eclipse.jdt.internal.corext.util.JavaConventionsUtil;
import org.eclipse.jdt.internal.corext.util.JavaModelUtil;
import org.eclipse.jdt.internal.ui.IJavaHelpContextIds;
@@ -47,9 +37,7 @@
import org.eclipse.jdt.internal.ui.dialogs.StatusUtil;
import org.eclipse.jdt.internal.ui.preferences.JavaPreferencesSettings;
import org.eclipse.jdt.ui.CodeGeneration;
-import org.eclipse.jdt.ui.PreferenceConstants;
import org.eclipse.jdt.ui.wizards.NewClassWizardPage;
-import org.eclipse.jdt.ui.wizards.NewTypeWizardPage.ImportsManager;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.osgi.util.NLS;
@@ -58,7 +46,6 @@
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.PlatformUI;
import org.jboss.tools.cdi.core.CDIConstants;
-import org.jboss.tools.cdi.core.CDICoreNature;
import org.jboss.tools.cdi.core.CDIImages;
import org.jboss.tools.cdi.core.ICDIAnnotation;
import org.jboss.tools.cdi.core.ICDIProject;
@@ -94,7 +81,7 @@
public NewInterceptorWizardPage() {
setTitle(CDIUIMessages.NEW_INTERCEPTOR_WIZARD_PAGE_NAME);
setDescription(CDIUIMessages.NEW_INTERCEPTOR_WIZARD_DESCRIPTION);
- setImageDescriptor(CDIImages.getImageDescriptor(CDIImages.WELD_WIZARD_IMAGE_PATH));
+ setImageDescriptor(CDIImages.getImageDescriptor(CDIImages.CDI_CLASS_IMAGE));
}
public void init(IStructuredSelection selection) {
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/facet/CDIInstallWizardPage.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/facet/CDIInstallWizardPage.java 2012-07-20 14:18:50 UTC (rev 42663)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/facet/CDIInstallWizardPage.java 2012-07-20 17:55:49 UTC (rev 42664)
@@ -44,7 +44,7 @@
public CDIInstallWizardPage() {
super(CDIUIMessages.CDI_INSTALL_WIZARD_PAGE_FACET);
setTitle(CDIUIMessages.CDI_INSTALL_WIZARD_PAGE_FACET);
- setImageDescriptor(CDIImages.getImageDescriptor(CDIImages.WELD_WIZARD_IMAGE_PATH));
+ setImageDescriptor(CDIImages.getImageDescriptor(CDIImages.CDI_PROJECT_IMAGE));
setDescription(CDIUIMessages.CDI_INSTALL_WIZARD_PAGE_CONFIGURE);
}
13 years, 8 months
JBoss Tools SVN: r42663 - trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/smoke.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2012-07-20 10:18:50 -0400 (Fri, 20 Jul 2012)
New Revision: 42663
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/smoke/CodeCompletionTest.java
Log:
Fixes for JBT 3.3.1
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/smoke/CodeCompletionTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/smoke/CodeCompletionTest.java 2012-07-20 10:48:46 UTC (rev 42662)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/smoke/CodeCompletionTest.java 2012-07-20 14:18:50 UTC (rev 42663)
@@ -10,6 +10,7 @@
******************************************************************************/
package org.jboss.tools.vpe.ui.bot.test.smoke;
+import java.awt.event.KeyEvent;
import java.util.LinkedList;
import java.util.List;
@@ -18,6 +19,7 @@
import org.jboss.tools.ui.bot.ext.SWTTestExt;
import org.jboss.tools.ui.bot.ext.Timing;
import org.jboss.tools.ui.bot.ext.helper.ContentAssistHelper;
+import org.jboss.tools.ui.bot.ext.helper.KeyboardHelper;
import org.jboss.tools.ui.bot.ext.parts.ContentAssistBot;
import org.jboss.tools.ui.bot.ext.parts.SWTBotEditorExt;
import org.jboss.tools.vpe.ui.bot.test.editor.VPEEditorTestCase;
@@ -73,6 +75,9 @@
// Check content assist insertion
String contentAssistToUse = "h:commandButton";
contentAssist.checkContentAssist(contentAssistToUse, true);
+ // close Content Assist window which is automatically opened after previous
+ // Content Assist choice were applied
+ KeyboardHelper.pressKeyCode(editor.bot().getDisplay(), KeyEvent.VK_ESCAPE);
editor.save();
String expectedInsertedText = textForSelection + "<" + contentAssistToUse + " action=\"\" value=\"\" />";
if (!editor.getText().contains(expectedInsertedText)){
13 years, 8 months
JBoss Tools SVN: r42662 - in trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test: messages/BluePrint1 and 21 other directories.
by jbosstools-commits@lists.jboss.org
Author: apodhrad
Date: 2012-07-20 06:48:46 -0400 (Fri, 20 Jul 2012)
New Revision: 42662
Added:
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint1/
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint1/BluePrint1_request_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint1/BluePrint1_request_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint1/BluePrint1_response_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint1/BluePrint1_response_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint2/
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint2/BluePrint2_request_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint2/BluePrint2_request_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint2/BluePrint2_response_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint2/BluePrint2_response_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_request_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_request_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_request_3.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_request_4xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_response_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_response_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_response_3.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_response_4.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint4/
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint4/BluePrint4_request_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint4/BluePrint4_request_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint4/BluePrint4_response_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint4/BluePrint4_response_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_request_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_request_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_request_3.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_response_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_response_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_response_3.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_request_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_request_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_request_3.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_response_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_response_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_response_3.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/HelloWorld/
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/HelloWorld/HelloWorld_request.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/HelloWorld/HelloWorld_response.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_Ode/
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_Ode/Hello_World_Header_Ode_request.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_Ode/Hello_World_Header_Ode_response.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_WSDL/
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_WSDL/Hello_World_Header_WSDL_request.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_WSDL/Hello_World_Header_WSDL_response.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_request_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_request_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_request_3.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_response_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_response_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_response_3.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Math/
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Math/Math_request.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Math/Math_response.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Salutations/
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Salutations/Salutations_request_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Salutations/Salutations_request_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Salutations/Salutations_response_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Salutations/Salutations_response_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Say_Hello/
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Say_Hello/Say_Hello_request.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Say_Hello/Say_Hello_response.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Service_Handler/
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Service_Handler/Service_Handler_request.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Service_Handler/Service_Handler_response.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Correlation/
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Correlation/Simple_Correlation_request_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Correlation/Simple_Correlation_request_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Correlation/Simple_Correlation_response_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Correlation/Simple_Correlation_response_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Invoke/
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Invoke/Simple_Invoke_request.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Invoke/Simple_Invoke_response.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Pick/
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Pick/Simple_Pick_request_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Pick/Simple_Pick_request_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Pick/Simple_Pick_response_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Pick/Simple_Pick_response_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/While_Wait/
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/While_Wait/While_Wait_request.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/While_Wait/While_Wait_response.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BluePrint1ExampleTest.java
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BluePrint2ExampleTest.java
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BluePrint3ExampleTest.java
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BluePrint4ExampleTest.java
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BluePrint5ExampleTest.java
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/CorrelationExampleTest.java
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/FaultCompensationExampleTest.java
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/HelloWorldWsdlExampleTest.java
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/SalutationsExampleTest.java
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/SayHelloExampleTest.java
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/ServiceHandlerExampleTest.java
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/SimpleInvokeExampleTest.java
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/SimplePickExampleTest.java
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/WhileWaitExampleTest.java
Removed:
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/HelloWorld_request.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/HelloWorld_response.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_Ode_request.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_Ode_response.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_WSDL_request.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_WSDL_response.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_request_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_request_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_request_3.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_response_1.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_response_2.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_response_3.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Math_request.xml
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Math_response.xml
Modified:
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/OdeDeployTest.java
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/ToolingCompatibilityTest.java
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BPELExampleTest.java
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/HelloWorldExampleTest.java
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/HelloWorldOdeExampleTest.java
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/LoanApprovalExampleTest.java
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/MathExampleTest.java
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/suite/BPELAllTest.java
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/util/SendSoapMessage.java
Log:
Bpel bot tests: add tests for bpel examples
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint1/BluePrint1_request_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint1/BluePrint1_request_1.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint1/BluePrint1_request_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pur="http://manufacturing.org/xsd/purchase">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <pur:purchaseOrder>
+ <pur:orderId>123</pur:orderId>
+ <pur:customerId>456</pur:customerId>
+ <pur:orderDescription>OrderValid: Purchase an item that is in stock</pur:orderDescription>
+ <pur:price>0</pur:price>
+ </pur:purchaseOrder>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint1/BluePrint1_request_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint1/BluePrint1_request_2.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint1/BluePrint1_request_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pur="http://manufacturing.org/xsd/purchase">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <pur:purchaseOrder>
+ <pur:orderId>321</pur:orderId>
+ <pur:customerId>456</pur:customerId>
+ <pur:orderDescription>OrderInvalid: Attempt to purchase an out of stock item</pur:orderDescription>
+ <pur:price>0</pur:price>
+ </pur:purchaseOrder>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint1/BluePrint1_response_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint1/BluePrint1_response_1.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint1/BluePrint1_response_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <pur:purchaseOrder xmlns:pur="http://manufacturing.org/xsd/purchase">
+ <pur:orderId>123</pur:orderId>
+ <pur:customerId>456</pur:customerId>
+ <pur:orderDescription>OrderValid: Purchase an item that is in stock</pur:orderDescription>
+ <pur:price>49.97</pur:price>
+ </pur:purchaseOrder>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint1/BluePrint1_response_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint1/BluePrint1_response_2.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint1/BluePrint1_response_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,14 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <env:Fault>
+ <faultcode xmlns:valueNS="http://manufacturing.org/wsdl/purchase/bp1">valueNS:cannotCompleteOrder</faultcode>
+ <detail>
+ <purchaseOrderFault xmlns="http://manufacturing.org/xsd/purchase">
+ <tns:FaultCode xmlns:tns="http://manufacturing.org/xsd/purchase">404</tns:FaultCode>
+ <tns:FaultMessage xmlns:tns="http://manufacturing.org/xsd/purchase">currently out of stock</tns:FaultMessage>
+ </purchaseOrderFault>
+ </detail>
+ </env:Fault>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint2/BluePrint2_request_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint2/BluePrint2_request_1.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint2/BluePrint2_request_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+ <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pur="http://manufacturing.org/xsd/purchase">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <pur:purchaseOrder>
+ <pur:orderId>2002</pur:orderId>
+ <pur:customerId>100656</pur:customerId>
+ <pur:orderDescription>OrderValid: Purchase an item that is in stock</pur:orderDescription>
+ <pur:price>0</pur:price>
+ </pur:purchaseOrder>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint2/BluePrint2_request_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint2/BluePrint2_request_2.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint2/BluePrint2_request_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+ <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pur="http://manufacturing.org/xsd/purchase">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <pur:purchaseOrder>
+ <pur:orderId>2001</pur:orderId>
+ <pur:customerId>100656</pur:customerId>
+ <pur:orderDescription>OrderInvalid: Attempt to purchase an out of stock item</pur:orderDescription>
+ <pur:price>0</pur:price>
+ </pur:purchaseOrder>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint2/BluePrint2_response_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint2/BluePrint2_response_1.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint2/BluePrint2_response_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <pur:purchaseOrder xmlns:pur="http://manufacturing.org/xsd/purchase">
+ <pur:orderId>2002</pur:orderId>
+ <pur:customerId>100656</pur:customerId>
+ <pur:orderDescription>OrderValid: Purchase an item that is in stock</pur:orderDescription>
+ <pur:price>49.98</pur:price>
+ </pur:purchaseOrder>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint2/BluePrint2_response_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint2/BluePrint2_response_2.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint2/BluePrint2_response_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,14 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <env:Fault>
+ <faultcode xmlns:valueNS="http://manufacturing.org/wsdl/purchase/bp2">valueNS:cannotCompleteOrder</faultcode>
+ <detail>
+ <purchaseOrderFault xmlns="http://manufacturing.org/xsd/purchase">
+ <tns:FaultCode xmlns:tns="http://manufacturing.org/xsd/purchase">404</tns:FaultCode>
+ <tns:FaultMessage xmlns:tns="http://manufacturing.org/xsd/purchase">currently out of stock</tns:FaultMessage>
+ </purchaseOrderFault>
+ </detail>
+ </env:Fault>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_request_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_request_1.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_request_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pur="http://manufacturing.org/xsd/purchase">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <pur:purchaseOrder>
+ <pur:orderId>123</pur:orderId>
+ <pur:customerId>456</pur:customerId>
+ <pur:orderDescription>OrderInvalid: Attempt to purchase an out of stock item</pur:orderDescription>
+ <pur:price>0</pur:price>
+ </pur:purchaseOrder>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_request_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_request_2.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_request_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pur="http://manufacturing.org/xsd/purchase">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <pur:purchaseOrder>
+ <pur:orderId>321</pur:orderId>
+ <pur:customerId>456</pur:customerId>
+ <pur:orderDescription>ThrowPOServiceFault: Cause a POService fault</pur:orderDescription>
+ <pur:price>0</pur:price>
+ </pur:purchaseOrder>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_request_3.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_request_3.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_request_3.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pur="http://manufacturing.org/xsd/purchase">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <pur:purchaseOrder>
+ <pur:orderId>123</pur:orderId>
+ <pur:customerId>456</pur:customerId>
+ <pur:orderDescription>OrderValid: Purchase an item that is in stock</pur:orderDescription>
+ <pur:price>0</pur:price>
+ </pur:purchaseOrder>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_request_4xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_request_4xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_request_4xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pur="http://manufacturing.org/xsd/purchase">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <pur:purchaseOrder>
+ <pur:orderId>321</pur:orderId>
+ <pur:customerId>456</pur:customerId>
+ <pur:orderDescription>ThrowInventoryFault: Cause an Inventory Service fault</pur:orderDescription>
+ <pur:price>0</pur:price>
+ </pur:purchaseOrder>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_response_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_response_1.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_response_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,14 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <env:Fault>
+ <faultcode xmlns:valueNS="http://manufacturing.org/wsdl/purchase/bp3">valueNS:cannotCompleteOrder</faultcode>
+ <detail>
+ <purchaseOrderFault xmlns="http://manufacturing.org/xsd/purchase">
+ <tns:FaultCode xmlns:tns="http://manufacturing.org/xsd/purchase">404</tns:FaultCode>
+ <tns:FaultMessage xmlns:tns="http://manufacturing.org/xsd/purchase">currently out of stock</tns:FaultMessage>
+ </purchaseOrderFault>
+ </detail>
+ </env:Fault>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_response_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_response_2.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_response_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,14 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <env:Fault>
+ <faultcode xmlns:valueNS="http://manufacturing.org/wsdl/purchase/bp3">valueNS:cannotCompleteOrder</faultcode>
+ <detail>
+ <purchaseOrderFault xmlns="http://manufacturing.org/xsd/purchase">
+ <tns:FaultCode xmlns:tns="http://manufacturing.org/xsd/purchase">500</tns:FaultCode>
+ <tns:FaultMessage xmlns:tns="http://manufacturing.org/xsd/purchase">throwing purchase order fault</tns:FaultMessage>
+ </purchaseOrderFault>
+ </detail>
+ </env:Fault>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_response_3.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_response_3.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_response_3.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <pur:purchaseOrder xmlns:pur="http://manufacturing.org/xsd/purchase">
+ <pur:orderId>123</pur:orderId>
+ <pur:customerId>456</pur:customerId>
+ <pur:orderDescription>OrderValid: Purchase an item that is in stock</pur:orderDescription>
+ <pur:price>49.98</pur:price>
+ </pur:purchaseOrder>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_response_4.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_response_4.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint3/BluePrint3_response_4.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,14 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <env:Fault>
+ <faultcode xmlns:valueNS="http://manufacturing.org/wsdl/inventory/bp3">valueNS:inventoryFaultType</faultcode>
+ <detail>
+ <inventoryFault xmlns="http://manufacturing.org/xsd/inventory">
+ <tns:FaultCode xmlns:tns="http://manufacturing.org/xsd/inventory"/>
+ <tns:FaultMessage xmlns:tns="http://manufacturing.org/xsd/inventory">Inventory Fault thrown for PurchaseOrder ID 456 customer ID</tns:FaultMessage>
+ </inventoryFault>
+ </detail>
+ </env:Fault>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint4/BluePrint4_request_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint4/BluePrint4_request_1.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint4/BluePrint4_request_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pur="http://manufacturing.org/xsd/purchase">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <pur:purchaseOrder>
+ <pur:orderId>123</pur:orderId>
+ <pur:customerId>456</pur:customerId>
+ <pur:orderDescription>OrderValid: Purchase an item that is in stock</pur:orderDescription>
+ <pur:price>0</pur:price>
+ </pur:purchaseOrder>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint4/BluePrint4_request_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint4/BluePrint4_request_2.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint4/BluePrint4_request_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pur="http://manufacturing.org/xsd/purchase">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <pur:purchaseOrder>
+ <pur:orderId>321</pur:orderId>
+ <pur:customerId>456</pur:customerId>
+ <pur:orderDescription>OrderInvalid: Attempt to purchase an out of stock item</pur:orderDescription>
+ <pur:price>0</pur:price>
+ </pur:purchaseOrder>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint4/BluePrint4_response_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint4/BluePrint4_response_1.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint4/BluePrint4_response_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <pur:purchaseOrder xmlns:pur="http://manufacturing.org/xsd/purchase">
+ <pur:orderId>123</pur:orderId>
+ <pur:customerId>456</pur:customerId>
+ <pur:orderDescription>OrderValid: Purchase an item that is in stock</pur:orderDescription>
+ <pur:price>49.98</pur:price>
+ </pur:purchaseOrder>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint4/BluePrint4_response_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint4/BluePrint4_response_2.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint4/BluePrint4_response_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,14 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <env:Fault>
+ <faultcode xmlns:valueNS="http://manufacturing.org/wsdl/purchase/bp4">valueNS:cannotCompleteOrder</faultcode>
+ <detail>
+ <purchaseOrderFault xmlns="http://manufacturing.org/xsd/purchase">
+ <tns:FaultCode xmlns:tns="http://manufacturing.org/xsd/purchase"/>
+ <tns:FaultMessage xmlns:tns="http://manufacturing.org/xsd/purchase">currently out of stock</tns:FaultMessage>
+ </purchaseOrderFault>
+ </detail>
+ </env:Fault>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_request_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_request_1.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_request_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,9 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:res="http://ReservationSystem.org/xsd/reserve">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <res:reserve>
+ <res:reservationID>2100</res:reservationID>
+ <res:description>book_airline</res:description>
+ </res:reserve>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_request_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_request_2.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_request_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,9 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:res="http://ReservationSystem.org/xsd/reserve">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <res:reserve>
+ <res:reservationID>2010</res:reservationID>
+ <res:description>book_car</res:description>
+ </res:reserve>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_request_3.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_request_3.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_request_3.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,9 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:res="http://ReservationSystem.org/xsd/reserve">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <res:reserve>
+ <res:reservationID>2001</res:reservationID>
+ <res:description>book_hotel</res:description>
+ </res:reserve>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_response_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_response_1.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_response_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,10 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <reservationStatusOfAll xmlns="http://ReservationSystem.org/xsd/reserve">
+ <tns:airlineStatus xmlns:tns="http://ReservationSystem.org/xsd/reserve">true</tns:airlineStatus>
+ <tns:hotelStatus xmlns:tns="http://ReservationSystem.org/xsd/reserve">false</tns:hotelStatus>
+ <tns:carStatus xmlns:tns="http://ReservationSystem.org/xsd/reserve">false</tns:carStatus>
+ </reservationStatusOfAll>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_response_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_response_2.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_response_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,10 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <reservationStatusOfAll xmlns="http://ReservationSystem.org/xsd/reserve">
+ <tns:airlineStatus xmlns:tns="http://ReservationSystem.org/xsd/reserve">false</tns:airlineStatus>
+ <tns:hotelStatus xmlns:tns="http://ReservationSystem.org/xsd/reserve">false</tns:hotelStatus>
+ <tns:carStatus xmlns:tns="http://ReservationSystem.org/xsd/reserve">true</tns:carStatus>
+ </reservationStatusOfAll>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_response_3.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_response_3.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/BluePrint5/BluePrint5_response_3.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,10 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <reservationStatusOfAll xmlns="http://ReservationSystem.org/xsd/reserve">
+ <tns:airlineStatus xmlns:tns="http://ReservationSystem.org/xsd/reserve">false</tns:airlineStatus>
+ <tns:hotelStatus xmlns:tns="http://ReservationSystem.org/xsd/reserve">true</tns:hotelStatus>
+ <tns:carStatus xmlns:tns="http://ReservationSystem.org/xsd/reserve">false</tns:carStatus>
+ </reservationStatusOfAll>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_request_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_request_1.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_request_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:exam="http://www.jboss.org/bpel/examples">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <exam:processRequest>
+ <payload>
+ <simulateException>false</simulateException>
+ <compensate>false</compensate>
+ </payload>
+ </exam:processRequest>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_request_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_request_2.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_request_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:exam="http://www.jboss.org/bpel/examples">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <exam:processRequest>
+ <payload>
+ <simulateException>true</simulateException>
+ <compensate>false</compensate>
+ </payload>
+ </exam:processRequest>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_request_3.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_request_3.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_request_3.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:exam="http://www.jboss.org/bpel/examples">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <exam:processRequest>
+ <payload>
+ <simulateException>true</simulateException>
+ <compensate>true</compensate>
+ </payload>
+ </exam:processRequest>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_response_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_response_1.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_response_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,8 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <odens:processRequestResponse xmlns:odens="http://www.jboss.org/bpel/examples">
+ <result>Inner scope value</result>
+ </odens:processRequestResponse>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_response_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_response_2.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_response_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,8 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <env:Fault>
+ <faultcode xmlns:valueNS="http://www.jboss.org/bpel/examples">valueNS:propagatedFault</faultcode>
+ </env:Fault>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_response_3.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_response_3.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Fault_Compensation/Fault_Compensation_response_3.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,8 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <odens:processRequestResponse xmlns:odens="http://www.jboss.org/bpel/examples">
+ <result>Compensated value</result>
+ </odens:processRequestResponse>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/HelloWorld/HelloWorld_request.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/HelloWorld/HelloWorld_request.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/HelloWorld/HelloWorld_request.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,9 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <soapenv:Header />
+ <soapenv:Body>
+ <wsdl:hello>
+ <TestPart>Test</TestPart>
+ </wsdl:hello>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/HelloWorld/HelloWorld_response.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/HelloWorld/HelloWorld_response.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/HelloWorld/HelloWorld_response.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,8 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <odens:helloResponse xmlns:odens="http://www.jboss.org/bpel/examples/wsdl">
+ <TestPart>Test World</TestPart>
+ </odens:helloResponse>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Deleted: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/HelloWorld_request.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/HelloWorld_request.xml 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/HelloWorld_request.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -1,9 +0,0 @@
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
- <soapenv:Header />
- <soapenv:Body>
- <wsdl:hello>
- <TestPart>Test</TestPart>
- </wsdl:hello>
- </soapenv:Body>
-</soapenv:Envelope>
\ No newline at end of file
Deleted: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/HelloWorld_response.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/HelloWorld_response.xml 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/HelloWorld_response.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -1,8 +0,0 @@
-<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
- <env:Header/>
- <env:Body>
- <odens:helloResponse xmlns:odens="http://www.jboss.org/bpel/examples/wsdl">
- <TestPart>Test World</TestPart>
- </odens:helloResponse>
- </env:Body>
-</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_Ode/Hello_World_Header_Ode_request.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_Ode/Hello_World_Header_Ode_request.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_Ode/Hello_World_Header_Ode_request.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,10 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <soapenv:Header>
+ <ns:conversationId xmlns:ns="http://www.jboss.org/cid">12345</ns:conversationId>
+ </soapenv:Header>
+ <soapenv:Body>
+ <wsdl:hello>
+ <TestPart>Test</TestPart>
+ </wsdl:hello>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_Ode/Hello_World_Header_Ode_response.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_Ode/Hello_World_Header_Ode_response.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_Ode/Hello_World_Header_Ode_response.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,10 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header>
+ <ns:conversationId xmlns:ns="http://www.jboss.org/cid">12345</ns:conversationId>
+ </env:Header>
+ <env:Body>
+ <odens:helloResponse xmlns:odens="http://www.jboss.org/bpel/examples/wsdl">
+ <TestPart>Test World conversationId=12345</TestPart>
+ </odens:helloResponse>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Deleted: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_Ode_request.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_Ode_request.xml 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_Ode_request.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -1,10 +0,0 @@
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
- <soapenv:Header>
- <ns:conversationId xmlns:ns="http://www.jboss.org/cid">12345</ns:conversationId>
- </soapenv:Header>
- <soapenv:Body>
- <wsdl:hello>
- <TestPart>Test</TestPart>
- </wsdl:hello>
- </soapenv:Body>
-</soapenv:Envelope>
\ No newline at end of file
Deleted: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_Ode_response.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_Ode_response.xml 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_Ode_response.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -1,10 +0,0 @@
-<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
- <env:Header>
- <ns:conversationId xmlns:ns="http://www.jboss.org/cid">12345</ns:conversationId>
- </env:Header>
- <env:Body>
- <odens:helloResponse xmlns:odens="http://www.jboss.org/bpel/examples/wsdl">
- <TestPart>Test World conversationId=12345</TestPart>
- </odens:helloResponse>
- </env:Body>
-</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_WSDL/Hello_World_Header_WSDL_request.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_WSDL/Hello_World_Header_WSDL_request.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_WSDL/Hello_World_Header_WSDL_request.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,10 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cid="http://www.jboss.org/cid" xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <soapenv:Header>
+ <cid:conversationId>666</cid:conversationId>
+ </soapenv:Header>
+ <soapenv:Body>
+ <wsdl:hello>
+ <TestPart>Test</TestPart>
+ </wsdl:hello>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_WSDL/Hello_World_Header_WSDL_response.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_WSDL/Hello_World_Header_WSDL_response.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_WSDL/Hello_World_Header_WSDL_response.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,10 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header>
+ <cid:conversationId xmlns:cid="http://www.jboss.org/cid">6666789</cid:conversationId>
+ </env:Header>
+ <env:Body>
+ <odens:helloResponse xmlns:odens="http://www.jboss.org/bpel/examples/wsdl">
+ <TestPart>Test World conversationId=666</TestPart>
+ </odens:helloResponse>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Deleted: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_WSDL_request.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_WSDL_request.xml 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_WSDL_request.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -1,10 +0,0 @@
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cid="http://www.jboss.org/cid" xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
- <soapenv:Header>
- <cid:conversationId>666</cid:conversationId>
- </soapenv:Header>
- <soapenv:Body>
- <wsdl:hello>
- <TestPart>Test</TestPart>
- </wsdl:hello>
- </soapenv:Body>
-</soapenv:Envelope>
\ No newline at end of file
Deleted: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_WSDL_response.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_WSDL_response.xml 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Hello_World_Header_WSDL_response.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -1,10 +0,0 @@
-<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
- <env:Header>
- <cid:conversationId xmlns:cid="http://www.jboss.org/cid">6666789</cid:conversationId>
- </env:Header>
- <env:Body>
- <odens:helloResponse xmlns:odens="http://www.jboss.org/bpel/examples/wsdl">
- <TestPart>Test World conversationId=666</TestPart>
- </odens:helloResponse>
- </env:Body>
-</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_request_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_request_1.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_request_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,10 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://example.com/loan-approval/wsdl/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <wsdl:request>
+ <firstName>Test</firstName>
+ <name>Name</name>
+ <amount>9000</amount>
+ </wsdl:request>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_request_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_request_2.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_request_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,10 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://example.com/loan-approval/wsdl/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <wsdl:request>
+ <firstName>Test</firstName>
+ <name>Name</name>
+ <amount>10000</amount>
+ </wsdl:request>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_request_3.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_request_3.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_request_3.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,10 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://example.com/loan-approval/wsdl/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <wsdl:request>
+ <firstName>Test</firstName>
+ <name>Name</name>
+ <amount>20000</amount>
+ </wsdl:request>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_response_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_response_1.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_response_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,8 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <odens:requestResponse xmlns:odens="http://example.com/loan-approval/wsdl/">
+ <accept>yes</accept>
+ </odens:requestResponse>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_response_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_response_2.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_response_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,8 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <odens:requestResponse xmlns:odens="http://example.com/loan-approval/wsdl/">
+ <accept>Evaluated and Approved</accept>
+ </odens:requestResponse>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_response_3.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_response_3.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval/Loan_Approval_response_3.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <env:Fault>
+ <faultcode xmlns:valueNS="http://example.com/loan-approval/wsdl/">valueNS:unableToHandleRequest</faultcode>
+ <detail>
+ <ns1:integer xmlns:ns1="http://example.com/loan-approval/xsd/error-messages/">20000</ns1:integer>
+ </detail>
+ </env:Fault>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Deleted: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_request_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_request_1.xml 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_request_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -1,10 +0,0 @@
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://example.com/loan-approval/wsdl/">
- <soapenv:Header/>
- <soapenv:Body>
- <wsdl:request>
- <firstName>Test</firstName>
- <name>Name</name>
- <amount>9000</amount>
- </wsdl:request>
- </soapenv:Body>
-</soapenv:Envelope>
\ No newline at end of file
Deleted: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_request_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_request_2.xml 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_request_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -1,10 +0,0 @@
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://example.com/loan-approval/wsdl/">
- <soapenv:Header/>
- <soapenv:Body>
- <wsdl:request>
- <firstName>Test</firstName>
- <name>Name</name>
- <amount>10000</amount>
- </wsdl:request>
- </soapenv:Body>
-</soapenv:Envelope>
\ No newline at end of file
Deleted: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_request_3.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_request_3.xml 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_request_3.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -1,10 +0,0 @@
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://example.com/loan-approval/wsdl/">
- <soapenv:Header/>
- <soapenv:Body>
- <wsdl:request>
- <firstName>Test</firstName>
- <name>Name</name>
- <amount>20000</amount>
- </wsdl:request>
- </soapenv:Body>
-</soapenv:Envelope>
\ No newline at end of file
Deleted: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_response_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_response_1.xml 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_response_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -1,8 +0,0 @@
-<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
- <env:Header/>
- <env:Body>
- <odens:requestResponse xmlns:odens="http://example.com/loan-approval/wsdl/">
- <accept>yes</accept>
- </odens:requestResponse>
- </env:Body>
-</env:Envelope>
\ No newline at end of file
Deleted: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_response_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_response_2.xml 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_response_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -1,8 +0,0 @@
-<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
- <env:Header/>
- <env:Body>
- <odens:requestResponse xmlns:odens="http://example.com/loan-approval/wsdl/">
- <accept>Evaluated and Approved</accept>
- </odens:requestResponse>
- </env:Body>
-</env:Envelope>
\ No newline at end of file
Deleted: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_response_3.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_response_3.xml 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Loan_Approval_response_3.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -1,11 +0,0 @@
-<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
- <env:Header/>
- <env:Body>
- <env:Fault>
- <faultcode xmlns:valueNS="http://example.com/loan-approval/wsdl/">valueNS:unableToHandleRequest</faultcode>
- <detail>
- <ns1:integer xmlns:ns1="http://example.com/loan-approval/xsd/error-messages/">20000</ns1:integer>
- </detail>
- </env:Fault>
- </env:Body>
-</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Math/Math_request.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Math/Math_request.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Math/Math_request.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,10 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:exam="http://www.jboss.org/bpel/examples">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <exam:MathRequest>
+ <exam:a>13</exam:a>
+ <exam:b>2</exam:b>
+ <exam:operator>/</exam:operator>
+ </exam:MathRequest>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Math/Math_response.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Math/Math_response.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Math/Math_response.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,8 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <MathResponse xmlns="http://www.jboss.org/bpel/examples">
+ <tns:result xmlns:tns="http://www.jboss.org/bpel/examples">6.5</tns:result>
+ </MathResponse>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Deleted: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Math_request.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Math_request.xml 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Math_request.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -1,10 +0,0 @@
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:exam="http://www.jboss.org/bpel/examples">
- <soapenv:Header/>
- <soapenv:Body>
- <exam:MathRequest>
- <exam:a>13</exam:a>
- <exam:b>2</exam:b>
- <exam:operator>/</exam:operator>
- </exam:MathRequest>
- </soapenv:Body>
-</soapenv:Envelope>
\ No newline at end of file
Deleted: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Math_response.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Math_response.xml 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Math_response.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -1,8 +0,0 @@
-<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
- <env:Header/>
- <env:Body>
- <MathResponse xmlns="http://www.jboss.org/bpel/examples">
- <tns:result xmlns:tns="http://www.jboss.org/bpel/examples">6.5</tns:result>
- </MathResponse>
- </env:Body>
-</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Salutations/Salutations_request_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Salutations/Salutations_request_1.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Salutations/Salutations_request_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,10 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:exam="http://www.jboss.org/bpel/examples">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <exam:SalutationsRequest>
+ <exam:name>Test</exam:name>
+ <exam:hours>4</exam:hours>
+ <exam:minutes>0</exam:minutes>
+ </exam:SalutationsRequest>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Salutations/Salutations_request_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Salutations/Salutations_request_2.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Salutations/Salutations_request_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,10 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:exam="http://www.jboss.org/bpel/examples">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <exam:SalutationsRequest>
+ <exam:name>Test</exam:name>
+ <exam:hours>12</exam:hours>
+ <exam:minutes>0</exam:minutes>
+ </exam:SalutationsRequest>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Salutations/Salutations_response_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Salutations/Salutations_response_1.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Salutations/Salutations_response_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,8 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <SalutationsResponse xmlns="http://www.jboss.org/bpel/examples">
+ <tns:result xmlns:tns="http://www.jboss.org/bpel/examples">Good Morning, Test</tns:result>
+ </SalutationsResponse>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Salutations/Salutations_response_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Salutations/Salutations_response_2.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Salutations/Salutations_response_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,8 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <SalutationsResponse xmlns="http://www.jboss.org/bpel/examples">
+ <tns:result xmlns:tns="http://www.jboss.org/bpel/examples">Good Afternoon, Test</tns:result>
+ </SalutationsResponse>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Say_Hello/Say_Hello_request.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Say_Hello/Say_Hello_request.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Say_Hello/Say_Hello_request.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,8 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:exam="http://www.jboss.org/bpel/examples">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <exam:SayHelloRequest>
+ <exam:input>test</exam:input>
+ </exam:SayHelloRequest>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Say_Hello/Say_Hello_response.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Say_Hello/Say_Hello_response.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Say_Hello/Say_Hello_response.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,8 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <SayHelloResponse xmlns="http://www.jboss.org/bpel/examples">
+ <tns:result xmlns:tns="http://www.jboss.org/bpel/examples">Hello test</tns:result>
+ </SayHelloResponse>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Service_Handler/Service_Handler_request.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Service_Handler/Service_Handler_request.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Service_Handler/Service_Handler_request.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,8 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <wsdl:hello>
+ <TestPart>Hello</TestPart>
+ </wsdl:hello>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Service_Handler/Service_Handler_response.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Service_Handler/Service_Handler_response.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Service_Handler/Service_Handler_response.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,8 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <odens:helloResponse xmlns:odens="http://www.jboss.org/bpel/examples/wsdl">
+ <TestPart>Hello World</TestPart>
+ </odens:helloResponse>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Correlation/Simple_Correlation_request_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Correlation/Simple_Correlation_request_1.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Correlation/Simple_Correlation_request_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <wsdl:hello>
+ <ID>
+ <id>999</id>
+ </ID>
+ <Message>hi</Message>
+ </wsdl:hello>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Correlation/Simple_Correlation_request_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Correlation/Simple_Correlation_request_2.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Correlation/Simple_Correlation_request_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <wsdl:hello>
+ <ID>
+ <id>999</id>
+ </ID>
+ <Message>hi</Message>
+ </wsdl:hello>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Correlation/Simple_Correlation_response_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Correlation/Simple_Correlation_response_1.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Correlation/Simple_Correlation_response_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <odens:helloResponse xmlns:odens="http://www.jboss.org/bpel/examples/wsdl">
+ <ID>
+ <id>999</id>
+ </ID>
+ <Message>hi World</Message>
+ </odens:helloResponse>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Correlation/Simple_Correlation_response_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Correlation/Simple_Correlation_response_2.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Correlation/Simple_Correlation_response_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <odens:helloResponse xmlns:odens="http://www.jboss.org/bpel/examples/wsdl">
+ <ID>
+ <id>999</id>
+ </ID>
+ <Message>hi World</Message>
+ </odens:helloResponse>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Invoke/Simple_Invoke_request.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Invoke/Simple_Invoke_request.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Invoke/Simple_Invoke_request.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,8 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <wsdl:sayHelloTo>
+ <ToWhom>Andrej</ToWhom>
+ </wsdl:sayHelloTo>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Invoke/Simple_Invoke_response.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Invoke/Simple_Invoke_response.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Invoke/Simple_Invoke_response.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,8 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <odens:sayHelloToResponse xmlns:odens="http://www.jboss.org/bpel/examples/wsdl">
+ <ToWhom>Hello Andrej. Sincerely, JBossWS and BPEL</ToWhom>
+ </odens:sayHelloToResponse>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Pick/Simple_Pick_request_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Pick/Simple_Pick_request_1.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Pick/Simple_Pick_request_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <wsdl:hello>
+ <ID>
+ <id>1</id>
+ </ID>
+ <Message>Hi</Message>
+ </wsdl:hello>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Pick/Simple_Pick_request_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Pick/Simple_Pick_request_2.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Pick/Simple_Pick_request_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <wsdl:goodbye>
+ <ID>
+ <id>1</id>
+ </ID>
+ <Message>Bye</Message>
+ </wsdl:goodbye>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Pick/Simple_Pick_response_1.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Pick/Simple_Pick_response_1.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Pick/Simple_Pick_response_1.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <odens:helloResponse xmlns:odens="http://www.jboss.org/bpel/examples/wsdl">
+ <ID>
+ <id>1</id>
+ </ID>
+ <Message>Hi World</Message>
+ </odens:helloResponse>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Pick/Simple_Pick_response_2.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Pick/Simple_Pick_response_2.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/Simple_Pick/Simple_Pick_response_2.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,11 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <odens:goodbyeResponse xmlns:odens="http://www.jboss.org/bpel/examples/wsdl">
+ <ID>
+ <id>1</id>
+ </ID>
+ <Message>Bye World</Message>
+ </odens:goodbyeResponse>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/While_Wait/While_Wait_request.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/While_Wait/While_Wait_request.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/While_Wait/While_Wait_request.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,8 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:exam="http://www.jboss.org/bpel/examples">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <exam:fibonacci>
+ <n>5</n>
+ </exam:fibonacci>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/While_Wait/While_Wait_response.xml
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/While_Wait/While_Wait_response.xml (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/messages/While_Wait/While_Wait_response.xml 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,8 @@
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Header/>
+ <env:Body>
+ <odens:fibonacciResponse xmlns:odens="http://www.jboss.org/bpel/examples">
+ <response>1: 1: 2: 3: 5</response>
+ </odens:fibonacciResponse>
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Modified: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/OdeDeployTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/OdeDeployTest.java 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/OdeDeployTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -100,7 +100,7 @@
@Test
public void requestResponseTest() throws Exception {
// Test the process
- String response = SendSoapMessage.sendMessage(ENDPOINT, MESSAGE, "simple");
+ String response = SendSoapMessage.sendMessage(ENDPOINT, MESSAGE);
XMLUnit.setIgnoreWhitespace(true);
Diff diff = new Diff(response, EXPECTED_RESPONSE);
Modified: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/ToolingCompatibilityTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/ToolingCompatibilityTest.java 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/ToolingCompatibilityTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -73,7 +73,7 @@
public void requestResponseTest() throws Exception {
// Test the process
- String response = SendSoapMessage.sendMessage(ENDPOINT, MESSAGE, "simple");
+ String response = SendSoapMessage.sendMessage(ENDPOINT, MESSAGE);
Assert.assertTrue(response != null);
@@ -150,7 +150,7 @@
public void requestResponseEditedTest() throws Exception {
// Test the process
- String response = SendSoapMessage.sendMessage(ENDPOINT, MESSAGE, "simple");
+ String response = SendSoapMessage.sendMessage(ENDPOINT, MESSAGE);
Assert.assertTrue(response != null);
Modified: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BPELExampleTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BPELExampleTest.java 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BPELExampleTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -1,9 +1,14 @@
package org.jboss.tools.bpel.ui.bot.test.examples;
import java.io.BufferedReader;
+import java.io.File;
import java.io.FileReader;
import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.soap.SOAPException;
+
import org.custommonkey.xmlunit.Diff;
import org.custommonkey.xmlunit.XMLUnit;
import org.eclipse.swtbot.swt.finder.SWTBot;
@@ -28,6 +33,8 @@
*/
public class BPELExampleTest extends ExampleTest {
+ public static final String MESSAGE_DIR = "messages";
+
@Override
public String getExampleCategory() {
return "BPEL";
@@ -48,7 +55,7 @@
try {
String requestMessage = getMessageFromFile(requestFile);
String responseMessage = getMessageFromFile(responseFile);
- String response = SendSoapMessage.sendMessage(url, requestMessage, "simple");
+ String response = SendSoapMessage.sendMessage(url, requestMessage);
Diff diff = new Diff(response, responseMessage);
assertTrue("Expected response is\n" + responseMessage + "\nbut it was\n" + response,
diff.similar());
@@ -60,18 +67,54 @@
e.printStackTrace();
throw new AssertionFailedException(getExampleName()
+ ": SAXException during testing response.");
+ } catch (SOAPException e) {
+ e.printStackTrace();
+ throw new AssertionFailedException(getExampleName()
+ + ": SOAPException during testing response.");
}
}
+ protected void testResponses(String url, String dir) {
+ try {
+ List<String> requests = getRequestMessages(dir);
+ for(String request: requests) {
+ request = dir + "/" + request;
+ String response = request.replace("request", "response");
+ testResponse(url, request, response);
+ }
+ } catch (IOException e) {
+ e.printStackTrace();
+ throw new AssertionFailedException(getExampleName()
+ + ": IOException during testing response.");
+ }
+ }
+
+ private static List<String> getRequestMessages(String dir) throws IOException {
+ List<String> messages = new ArrayList<String>();
+ File messages_dir = new File(ResourceHelper.getPath(BPELTest.BUNDLE, MESSAGE_DIR + "/"
+ + dir));
+ String[] file = messages_dir.list();
+ for (int i = 0; i < file.length; i++) {
+ if (file[i].endsWith(".xml") && file[i].contains("request")) {
+ messages.add(file[i]);
+ }
+ }
+ return messages;
+ }
+
private static String getMessageFromFile(String fileName) throws IOException {
- String path = "messages/" + fileName;
+ return getMessageFromFile(fileName, MESSAGE_DIR);
+ }
+
+ private static String getMessageFromFile(String fileName, String dir) throws IOException {
+ String path = dir + "/" + fileName;
String message = readFile(ResourceHelper.getPath(BPELTest.BUNDLE, path));
assertNotNull("Couldn't get message from " + path, message);
return message;
}
private static String readFile(String file) throws IOException {
- if(file == null) {
+ if (file == null) {
throw new NullPointerException("Couldn't read from null");
}
BufferedReader reader = new BufferedReader(new FileReader(file));
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BluePrint1ExampleTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BluePrint1ExampleTest.java (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BluePrint1ExampleTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,41 @@
+package org.jboss.tools.bpel.ui.bot.test.examples;
+
+import org.jboss.tools.bpel.ui.bot.test.BPELTest;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+
+/**
+ *
+ * @author apodhrad
+ *
+ */
+@Require(server = @Server(type = ServerType.ALL, state = ServerState.Running), perspective = "BPEL")
+public class BluePrint1ExampleTest extends BPELExampleTest {
+
+ private static final String PROJECT_NAME = "BluePrint1";
+ private static final String WSDL_URL = "http://localhost:8080/BPEL_BluePrint1_PurchaseOrderService?wsdl";
+
+ @Override
+ public String[] getProjectNames() {
+ return new String[] { PROJECT_NAME };
+ }
+
+ @Override
+ public String getExampleName() {
+ return "A Synchronous Web Service Interactions BPEL example";
+ }
+
+ @Override
+ protected void executeExample() {
+ deployExamples(PROJECT_NAME);
+ assertTrue(BPELTest.isProjectDeployed(PROJECT_NAME));
+
+ testResponses(WSDL_URL, PROJECT_NAME);
+
+ servers.removeAllProjectsFromServer();
+ }
+
+
+}
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BluePrint2ExampleTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BluePrint2ExampleTest.java (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BluePrint2ExampleTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,41 @@
+package org.jboss.tools.bpel.ui.bot.test.examples;
+
+import org.jboss.tools.bpel.ui.bot.test.BPELTest;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+
+/**
+ *
+ * @author apodhrad
+ *
+ */
+@Require(server = @Server(type = ServerType.ALL, state = ServerState.Running), perspective = "BPEL")
+public class BluePrint2ExampleTest extends BPELExampleTest {
+
+ private static final String PROJECT_NAME = "BluePrint2";
+ private static final String WSDL_URL = "http://localhost:8080/BPEL_BluePrint2_PurchaseOrderService?wsdl";
+
+ @Override
+ public String[] getProjectNames() {
+ return new String[] { PROJECT_NAME };
+ }
+
+ @Override
+ public String getExampleName() {
+ return "A Asynchronous Web Service Interactions BPEL example";
+ }
+
+ @Override
+ protected void executeExample() {
+ deployExamples(PROJECT_NAME);
+ assertTrue(BPELTest.isProjectDeployed(PROJECT_NAME));
+
+ testResponses(WSDL_URL, PROJECT_NAME);
+
+ servers.removeAllProjectsFromServer();
+ }
+
+
+}
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BluePrint3ExampleTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BluePrint3ExampleTest.java (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BluePrint3ExampleTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,41 @@
+package org.jboss.tools.bpel.ui.bot.test.examples;
+
+import org.jboss.tools.bpel.ui.bot.test.BPELTest;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+
+/**
+ *
+ * @author apodhrad
+ *
+ */
+@Require(server = @Server(type = ServerType.ALL, state = ServerState.Running), perspective = "BPEL")
+public class BluePrint3ExampleTest extends BPELExampleTest {
+
+ private static final String PROJECT_NAME = "BluePrint3";
+ private static final String WSDL_URL = "http://localhost:8080/BPEL_BluePrint3_PurchaseOrderService?wsdl";
+
+ @Override
+ public String[] getProjectNames() {
+ return new String[] { PROJECT_NAME };
+ }
+
+ @Override
+ public String getExampleName() {
+ return "A Fault Handling BPEL example";
+ }
+
+ @Override
+ protected void executeExample() {
+ deployExamples(PROJECT_NAME);
+ assertTrue(BPELTest.isProjectDeployed(PROJECT_NAME));
+
+ testResponses(WSDL_URL, PROJECT_NAME);
+
+ servers.removeAllProjectsFromServer();
+ }
+
+
+}
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BluePrint4ExampleTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BluePrint4ExampleTest.java (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BluePrint4ExampleTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,41 @@
+package org.jboss.tools.bpel.ui.bot.test.examples;
+
+import org.jboss.tools.bpel.ui.bot.test.BPELTest;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+
+/**
+ *
+ * @author apodhrad
+ *
+ */
+@Require(server = @Server(type = ServerType.ALL, state = ServerState.Running), perspective = "BPEL")
+public class BluePrint4ExampleTest extends BPELExampleTest {
+
+ private static final String PROJECT_NAME = "BluePrint4";
+ private static final String WSDL_URL = "http://localhost:8080/BPEL_BluePrint4_PurchaseOrderService?wsdl";
+
+ @Override
+ public String[] getProjectNames() {
+ return new String[] { PROJECT_NAME };
+ }
+
+ @Override
+ public String getExampleName() {
+ return "A Message-Based Coordination of Events BPEL example";
+ }
+
+ @Override
+ protected void executeExample() {
+ deployExamples(PROJECT_NAME);
+ assertTrue(BPELTest.isProjectDeployed(PROJECT_NAME));
+
+ testResponses(WSDL_URL, PROJECT_NAME);
+
+ servers.removeAllProjectsFromServer();
+ }
+
+
+}
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BluePrint5ExampleTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BluePrint5ExampleTest.java (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/BluePrint5ExampleTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,41 @@
+package org.jboss.tools.bpel.ui.bot.test.examples;
+
+import org.jboss.tools.bpel.ui.bot.test.BPELTest;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+
+/**
+ *
+ * @author apodhrad
+ *
+ */
+@Require(server = @Server(type = ServerType.ALL, state = ServerState.Running), perspective = "BPEL")
+public class BluePrint5ExampleTest extends BPELExampleTest {
+
+ private static final String PROJECT_NAME = "BluePrint5";
+ private static final String WSDL_URL = "http://localhost:8080/BPEL_BluePrint5_ReservationService?wsdl";
+
+ @Override
+ public String[] getProjectNames() {
+ return new String[] { PROJECT_NAME };
+ }
+
+ @Override
+ public String getExampleName() {
+ return "A Concurrent Asynchronous Coordination Events BPEL example";
+ }
+
+ @Override
+ protected void executeExample() {
+ deployExamples(PROJECT_NAME);
+ assertTrue(BPELTest.isProjectDeployed(PROJECT_NAME));
+
+ testResponses(WSDL_URL, PROJECT_NAME);
+
+ servers.removeAllProjectsFromServer();
+ }
+
+
+}
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/CorrelationExampleTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/CorrelationExampleTest.java (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/CorrelationExampleTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,41 @@
+package org.jboss.tools.bpel.ui.bot.test.examples;
+
+import org.jboss.tools.bpel.ui.bot.test.BPELTest;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+
+/**
+ *
+ * @author apodhrad
+ *
+ */
+@Require(server = @Server(type = ServerType.ALL, state = ServerState.Running), perspective = "BPEL")
+public class CorrelationExampleTest extends BPELExampleTest {
+
+ private static final String PROJECT_NAME = "Simple_Correlation";
+ private static final String WSDL_URL = "http://localhost:8080/Quickstart_bpel_simple_correlationWS?wsdl";
+
+ @Override
+ public String[] getProjectNames() {
+ return new String[] { PROJECT_NAME };
+ }
+
+ @Override
+ public String getExampleName() {
+ return "A correlation BPEL example";
+ }
+
+ @Override
+ protected void executeExample() {
+ deployExamples(PROJECT_NAME);
+ assertTrue(BPELTest.isProjectDeployed(PROJECT_NAME));
+
+ testResponses(WSDL_URL, PROJECT_NAME);
+
+ servers.removeAllProjectsFromServer();
+ }
+
+
+}
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/FaultCompensationExampleTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/FaultCompensationExampleTest.java (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/FaultCompensationExampleTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,41 @@
+package org.jboss.tools.bpel.ui.bot.test.examples;
+
+import org.jboss.tools.bpel.ui.bot.test.BPELTest;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+
+/**
+ *
+ * @author apodhrad
+ *
+ */
+@Require(server = @Server(type = ServerType.ALL, state = ServerState.Running), perspective = "BPEL")
+public class FaultCompensationExampleTest extends BPELExampleTest {
+
+ private static final String PROJECT_NAME = "Fault_Compensation";
+ private static final String WSDL_URL = "http://localhost:8080/Quickstart_bpel_fault_compensationWS?wsdl";
+
+ @Override
+ public String[] getProjectNames() {
+ return new String[] { PROJECT_NAME };
+ }
+
+ @Override
+ public String getExampleName() {
+ return "A Fault Compensation BPEL example";
+ }
+
+ @Override
+ protected void executeExample() {
+ deployExamples(PROJECT_NAME);
+ assertTrue(BPELTest.isProjectDeployed(PROJECT_NAME));
+
+ testResponses(WSDL_URL, PROJECT_NAME);
+
+ servers.removeAllProjectsFromServer();
+ }
+
+
+}
Modified: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/HelloWorldExampleTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/HelloWorldExampleTest.java 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/HelloWorldExampleTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -15,6 +15,7 @@
public class HelloWorldExampleTest extends BPELExampleTest {
private static final String PROJECT_NAME = "HelloWorld";
+ private static final String WSDL_URL = "http://localhost:8080/bpel/processes/helloWorld?wsdl";
@Override
public String[] getProjectNames() {
@@ -31,10 +32,7 @@
deployExamples(PROJECT_NAME);
assertTrue(BPELTest.isProjectDeployed(PROJECT_NAME));
- String url = "http://localhost:8080/bpel/processes/helloWorld";
- String requestFile = "HelloWorld_request.xml";
- String responseFile = "HelloWorld_response.xml";
- testResponse(url, requestFile, responseFile);
+ testResponses(WSDL_URL, PROJECT_NAME);
servers.removeAllProjectsFromServer();
}
Modified: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/HelloWorldOdeExampleTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/HelloWorldOdeExampleTest.java 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/HelloWorldOdeExampleTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -1,5 +1,6 @@
package org.jboss.tools.bpel.ui.bot.test.examples;
+import org.jboss.tools.bpel.ui.bot.test.BPELTest;
import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
@@ -14,6 +15,7 @@
public class HelloWorldOdeExampleTest extends BPELExampleTest {
private static final String PROJECT_NAME = "Hello_World_Header_Ode";
+ private static final String WSDL_URL = "http://localhost:8080/Quickstart_bpel_hello_world_header_odeWS?wsdl";
@Override
public String[] getProjectNames() {
@@ -28,12 +30,9 @@
@Override
protected void executeExample() {
deployExamples(PROJECT_NAME);
- testDeployment(PROJECT_NAME);
+ assertTrue(BPELTest.isProjectDeployed(PROJECT_NAME));
- String url = "http://localhost:8080/Quickstart_bpel_hello_world_header_odeWS";
- String requestFile = "Hello_World_Header_Ode_request.xml";
- String responseFile = "Hello_World_Header_Ode_response.xml";
- testResponse(url, requestFile, responseFile);
+ testResponses(WSDL_URL, PROJECT_NAME);
servers.removeAllProjectsFromServer();
}
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/HelloWorldWsdlExampleTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/HelloWorldWsdlExampleTest.java (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/HelloWorldWsdlExampleTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,39 @@
+package org.jboss.tools.bpel.ui.bot.test.examples;
+
+import org.jboss.tools.bpel.ui.bot.test.BPELTest;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+
+/**
+ *
+ * @author apodhrad
+ *
+ */
+@Require(server = @Server(type = ServerType.ALL, state = ServerState.Running), perspective = "BPEL")
+public class HelloWorldWsdlExampleTest extends BPELExampleTest {
+
+ private static final String PROJECT_NAME = "Hello_World_Header_WSDL";
+ private static final String WSDL_URL = "http://localhost:8080/Quickstart_bpel_hello_world_header_wsdlWS?wsdl";
+
+ @Override
+ public String[] getProjectNames() {
+ return new String[] { PROJECT_NAME };
+ }
+
+ @Override
+ public String getExampleName() {
+ return "A Hello World Header WSDL BPEL example";
+ }
+
+ @Override
+ protected void executeExample() {
+ deployExamples(PROJECT_NAME);
+ assertTrue(BPELTest.isProjectDeployed(PROJECT_NAME));
+
+ testResponses(WSDL_URL, PROJECT_NAME);
+
+ servers.removeAllProjectsFromServer();
+ }
+}
Modified: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/LoanApprovalExampleTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/LoanApprovalExampleTest.java 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/LoanApprovalExampleTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -16,6 +16,7 @@
private static final String PROJECT_NAME = "Loan_Approval";
private static final String PROJECT_NAME_WS = "Loan_Approval_WS";
+ private static final String WSDL_URL = "http://localhost:8080/Quickstart_bpel_loan_approvalWS?wsdl";
@Override
public String[] getProjectNames() {
@@ -39,17 +40,7 @@
deployExamples(PROJECT_NAME);
assertTrue(BPELTest.isProjectDeployed(PROJECT_NAME));
- String url = "http://localhost:8080/Quickstart_bpel_loan_approvalWS?wsdl";
- String requestFile = "Loan_Approval_request_1.xml";
- String responseFile = "Loan_Approval_response_1.xml";
- testResponse(url, requestFile, responseFile);
- requestFile = "Loan_Approval_request_2.xml";
- responseFile = "Loan_Approval_response_2.xml";
- testResponse(url, requestFile, responseFile);
- requestFile = "Loan_Approval_request_3.xml";
- responseFile = "Loan_Approval_response_3.xml";
- // get http response 500, why?
- // testResponse(url, requestFile, responseFile);
+ testResponses(WSDL_URL, PROJECT_NAME);
servers.removeAllProjectsFromServer();
}
Modified: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/MathExampleTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/MathExampleTest.java 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/MathExampleTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -15,6 +15,7 @@
public class MathExampleTest extends BPELExampleTest {
private static final String PROJECT_NAME = "Math";
+ private static final String WSDL_URL = "http://localhost:8080/MathProcess?wsdl";
@Override
public String[] getProjectNames() {
@@ -31,12 +32,10 @@
deployExamples(PROJECT_NAME);
assertTrue(BPELTest.isProjectDeployed(PROJECT_NAME));
- String url = "http://localhost:8080/MathProcess?wsdl";
- String requestFile = "Math_request.xml";
- String responseFile = "Math_response.xml";
- testResponse(url, requestFile, responseFile);
+ testResponses(WSDL_URL, PROJECT_NAME);
servers.removeAllProjectsFromServer();
+ servers.removeAllProjectsFromServer();
}
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/SalutationsExampleTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/SalutationsExampleTest.java (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/SalutationsExampleTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,41 @@
+package org.jboss.tools.bpel.ui.bot.test.examples;
+
+import org.jboss.tools.bpel.ui.bot.test.BPELTest;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+
+/**
+ *
+ * @author apodhrad
+ *
+ */
+@Require(server = @Server(type = ServerType.ALL, state = ServerState.Running), perspective = "BPEL")
+public class SalutationsExampleTest extends BPELExampleTest {
+
+ private static final String PROJECT_NAME = "Salutations";
+ private static final String WSDL_URL = "http://localhost:8080/SalutationsProcess?wsdl";
+
+ @Override
+ public String[] getProjectNames() {
+ return new String[] { PROJECT_NAME };
+ }
+
+ @Override
+ public String getExampleName() {
+ return "A Salutations BPEL example";
+ }
+
+ @Override
+ protected void executeExample() {
+ deployExamples(PROJECT_NAME);
+ assertTrue(BPELTest.isProjectDeployed(PROJECT_NAME));
+
+ testResponses(WSDL_URL, PROJECT_NAME);
+
+ servers.removeAllProjectsFromServer();
+ }
+
+
+}
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/SayHelloExampleTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/SayHelloExampleTest.java (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/SayHelloExampleTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,41 @@
+package org.jboss.tools.bpel.ui.bot.test.examples;
+
+import org.jboss.tools.bpel.ui.bot.test.BPELTest;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+
+/**
+ *
+ * @author apodhrad
+ *
+ */
+@Require(server = @Server(type = ServerType.ALL, state = ServerState.Running), perspective = "BPEL")
+public class SayHelloExampleTest extends BPELExampleTest {
+
+ private static final String PROJECT_NAME = "Say_Hello";
+ private static final String WSDL_URL = "http://localhost:8080/SayHelloProcess?wsdl";
+
+ @Override
+ public String[] getProjectNames() {
+ return new String[] { PROJECT_NAME };
+ }
+
+ @Override
+ public String getExampleName() {
+ return "A Say Hello BPEL example";
+ }
+
+ @Override
+ protected void executeExample() {
+ deployExamples(PROJECT_NAME);
+ assertTrue(BPELTest.isProjectDeployed(PROJECT_NAME));
+
+ testResponses(WSDL_URL, PROJECT_NAME);
+
+ servers.removeAllProjectsFromServer();
+ }
+
+
+}
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/ServiceHandlerExampleTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/ServiceHandlerExampleTest.java (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/ServiceHandlerExampleTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,41 @@
+package org.jboss.tools.bpel.ui.bot.test.examples;
+
+import org.jboss.tools.bpel.ui.bot.test.BPELTest;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+
+/**
+ *
+ * @author apodhrad
+ *
+ */
+@Require(server = @Server(type = ServerType.ALL, state = ServerState.Running), perspective = "BPEL")
+public class ServiceHandlerExampleTest extends BPELExampleTest {
+
+ private static final String PROJECT_NAME = "Service_Handler";
+ private static final String WSDL_URL = "http://localhost:8080/Quickstart_bpel_service_handlerWS?wsdl";
+
+ @Override
+ public String[] getProjectNames() {
+ return new String[] { PROJECT_NAME };
+ }
+
+ @Override
+ public String getExampleName() {
+ return "A Service Handler BPEL example";
+ }
+
+ @Override
+ protected void executeExample() {
+ deployExamples(PROJECT_NAME);
+ assertTrue(BPELTest.isProjectDeployed(PROJECT_NAME));
+
+ testResponses(WSDL_URL, PROJECT_NAME);
+
+ servers.removeAllProjectsFromServer();
+ }
+
+
+}
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/SimpleInvokeExampleTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/SimpleInvokeExampleTest.java (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/SimpleInvokeExampleTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,61 @@
+package org.jboss.tools.bpel.ui.bot.test.examples;
+
+import org.jboss.tools.bpel.ui.bot.test.BPELTest;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+
+/**
+ *
+ * @author apodhrad
+ *
+ */
+@Require(server = @Server(type = ServerType.ALL, state = ServerState.Running), perspective = "BPEL")
+public class SimpleInvokeExampleTest extends BPELExampleTest {
+
+ private static final String PROJECT_NAME = "Simple_Invoke";
+ private static final String PROJECT_NAME_WS = "Simple_Invoke_WS";
+ private static final String WSDL_URL = "http://localhost:8080/Quickstart_bpel_simple_invokeWS?wsdl";
+
+ @Override
+ public String[] getProjectNames() {
+ return new String[] { PROJECT_NAME_WS };
+ }
+
+ @Override
+ public String getExampleName() {
+ return "A Web Service project called by Simple Invoke BPEL example";
+ }
+
+ @Override
+ protected void postImport() {
+ new SimpleInvokeExample().exampleTest();
+ }
+
+ @Override
+ protected void executeExample() {
+ deployExamples(PROJECT_NAME_WS);
+ assertTrue(BPELTest.isProjectDeployed(PROJECT_NAME_WS));
+ deployExamples(PROJECT_NAME);
+ assertTrue(BPELTest.isProjectDeployed(PROJECT_NAME));
+
+ testResponses(WSDL_URL, PROJECT_NAME);
+
+ servers.removeAllProjectsFromServer();
+ }
+
+ private class SimpleInvokeExample extends BPELExampleTest {
+
+ @Override
+ public String[] getProjectNames() {
+ return new String[] { PROJECT_NAME };
+ }
+
+ @Override
+ public String getExampleName() {
+ return "A Simple Invoke BPEL example";
+ }
+ }
+
+}
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/SimplePickExampleTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/SimplePickExampleTest.java (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/SimplePickExampleTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,41 @@
+package org.jboss.tools.bpel.ui.bot.test.examples;
+
+import org.jboss.tools.bpel.ui.bot.test.BPELTest;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+
+/**
+ *
+ * @author apodhrad
+ *
+ */
+@Require(server = @Server(type = ServerType.ALL, state = ServerState.Running), perspective = "BPEL")
+public class SimplePickExampleTest extends BPELExampleTest {
+
+ private static final String PROJECT_NAME = "Simple_Pick";
+ private static final String WSDL_URL = "http://localhost:8080/Quickstart_bpel_simple_pickWS?wsdl";
+
+ @Override
+ public String[] getProjectNames() {
+ return new String[] { PROJECT_NAME };
+ }
+
+ @Override
+ public String getExampleName() {
+ return "A Simple Pick BPEL example";
+ }
+
+ @Override
+ protected void executeExample() {
+ deployExamples(PROJECT_NAME);
+ assertTrue(BPELTest.isProjectDeployed(PROJECT_NAME));
+
+ testResponses(WSDL_URL, PROJECT_NAME);
+
+ servers.removeAllProjectsFromServer();
+ }
+
+
+}
Added: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/WhileWaitExampleTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/WhileWaitExampleTest.java (rev 0)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/examples/WhileWaitExampleTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -0,0 +1,60 @@
+package org.jboss.tools.bpel.ui.bot.test.examples;
+
+import org.jboss.tools.bpel.ui.bot.test.BPELTest;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+
+/**
+ *
+ * @author apodhrad
+ *
+ */
+@Require(server = @Server(type = ServerType.ALL, state = ServerState.Running), perspective = "BPEL")
+public class WhileWaitExampleTest extends BPELExampleTest {
+
+ private static final String PROJECT_NAME = "While_Wait";
+ private static final String PROJECT_NAME_WS = "While_Wait_WS";
+ private static final String WSDL_URL = "http://localhost:8080/Quickstart_bpel_while_waitWS?wsdl";
+
+ @Override
+ public String[] getProjectNames() {
+ return new String[] { PROJECT_NAME_WS };
+ }
+
+ @Override
+ public String getExampleName() {
+ return "A Web Service project called by While_Wait example";
+ }
+
+ @Override
+ protected void postImport() {
+ new WhileWaitExample().exampleTest();
+ }
+
+ @Override
+ protected void executeExample() {
+ deployExamples(PROJECT_NAME_WS);
+ assertTrue(BPELTest.isProjectDeployed(PROJECT_NAME_WS));
+ deployExamples(PROJECT_NAME);
+ assertTrue(BPELTest.isProjectDeployed(PROJECT_NAME));
+
+ testResponses(WSDL_URL, PROJECT_NAME);
+
+ servers.removeAllProjectsFromServer();
+ }
+
+ private class WhileWaitExample extends BPELExampleTest {
+
+ @Override
+ public String[] getProjectNames() {
+ return new String[] { PROJECT_NAME };
+ }
+
+ @Override
+ public String getExampleName() {
+ return "A While Wait BPEL example";
+ }
+ }
+}
Modified: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/suite/BPELAllTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/suite/BPELAllTest.java 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/suite/BPELAllTest.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -11,10 +11,24 @@
import org.jboss.tools.bpel.ui.bot.test.SimpleModelingTest;
import org.jboss.tools.bpel.ui.bot.test.ToolingCompatibilityTest;
import org.jboss.tools.bpel.ui.bot.test.WizardTest;
+import org.jboss.tools.bpel.ui.bot.test.examples.BluePrint1ExampleTest;
+import org.jboss.tools.bpel.ui.bot.test.examples.BluePrint2ExampleTest;
+import org.jboss.tools.bpel.ui.bot.test.examples.BluePrint3ExampleTest;
+import org.jboss.tools.bpel.ui.bot.test.examples.BluePrint4ExampleTest;
+import org.jboss.tools.bpel.ui.bot.test.examples.BluePrint5ExampleTest;
+import org.jboss.tools.bpel.ui.bot.test.examples.CorrelationExampleTest;
+import org.jboss.tools.bpel.ui.bot.test.examples.FaultCompensationExampleTest;
import org.jboss.tools.bpel.ui.bot.test.examples.HelloWorldExampleTest;
import org.jboss.tools.bpel.ui.bot.test.examples.HelloWorldOdeExampleTest;
+import org.jboss.tools.bpel.ui.bot.test.examples.HelloWorldWsdlExampleTest;
import org.jboss.tools.bpel.ui.bot.test.examples.LoanApprovalExampleTest;
import org.jboss.tools.bpel.ui.bot.test.examples.MathExampleTest;
+import org.jboss.tools.bpel.ui.bot.test.examples.SalutationsExampleTest;
+import org.jboss.tools.bpel.ui.bot.test.examples.SayHelloExampleTest;
+import org.jboss.tools.bpel.ui.bot.test.examples.ServiceHandlerExampleTest;
+import org.jboss.tools.bpel.ui.bot.test.examples.SimpleInvokeExampleTest;
+import org.jboss.tools.bpel.ui.bot.test.examples.SimplePickExampleTest;
+import org.jboss.tools.bpel.ui.bot.test.examples.WhileWaitExampleTest;
import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
import org.junit.AfterClass;
import org.junit.BeforeClass;
@@ -22,20 +36,33 @@
import org.junit.runners.Suite.SuiteClasses;
@SuiteClasses({
- OdeDeployTest.class,
- WizardTest.class,
- ActivityModelingTest.class,
- AssignActivityTest.class,
- SimpleModelingTest.class,
- FaultModelingTest.class,
- ToolingCompatibilityTest.class,
- AssociateRuntimeTest.class,
- HelloWorldExampleTest.class,
- HelloWorldOdeExampleTest.class,
- LoanApprovalExampleTest.class,
- MathExampleTest.class
- })
-
+ OdeDeployTest.class,
+ WizardTest.class,
+ ActivityModelingTest.class,
+ AssignActivityTest.class,
+ SimpleModelingTest.class,
+ FaultModelingTest.class,
+ ToolingCompatibilityTest.class,
+ AssociateRuntimeTest.class,
+ HelloWorldExampleTest.class,
+ HelloWorldOdeExampleTest.class,
+ HelloWorldWsdlExampleTest.class,
+ LoanApprovalExampleTest.class,
+ MathExampleTest.class,
+ SalutationsExampleTest.class,
+ SayHelloExampleTest.class,
+ ServiceHandlerExampleTest.class,
+ CorrelationExampleTest.class,
+ SimpleInvokeExampleTest.class,
+ SimplePickExampleTest.class,
+ BluePrint1ExampleTest.class,
+ BluePrint2ExampleTest.class,
+ BluePrint3ExampleTest.class,
+ BluePrint4ExampleTest.class,
+ BluePrint5ExampleTest.class,
+ FaultCompensationExampleTest.class,
+ WhileWaitExampleTest.class
+ })
@RunWith(RequirementAwareSuite.class)
public class BPELAllTest extends TestSuite {
Modified: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/util/SendSoapMessage.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/util/SendSoapMessage.java 2012-07-19 23:49:16 UTC (rev 42661)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/util/SendSoapMessage.java 2012-07-20 10:48:46 UTC (rev 42662)
@@ -1,19 +1,20 @@
package org.jboss.tools.bpel.util;
-import java.io.BufferedReader;
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
import java.io.IOException;
-import java.io.InputStreamReader;
-import java.io.PrintWriter;
-import java.io.Reader;
-import java.io.StringWriter;
-import java.io.Writer;
-import java.net.HttpURLConnection;
import java.net.URL;
+import javax.xml.soap.MessageFactory;
+import javax.xml.soap.SOAPConnection;
+import javax.xml.soap.SOAPConnectionFactory;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPMessage;
+
/**
* Temporary class.
*
- * @author mbaluch
+ * @author mbaluch, apodhrad
*
*/
public class SendSoapMessage {
@@ -22,43 +23,22 @@
*
* @param url URL string
* @param message SOAP message
- * @param soapAction SOAP action name. This may be {@code null}. For more info see
- * {@link http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#Toc478383528}
*
* @return response
* @throws IOException in case of an I/O error;
+ * @throws SOAPException in case of a SOAP error
*/
- public static String sendMessage(String url, String message, String soapAction) throws IOException {
- // setup connection
+ public static String sendMessage(String url, String message) throws SOAPException, IOException {
URL endpoint = new URL(url);
- HttpURLConnection httpConnection = (HttpURLConnection) endpoint.openConnection();
- httpConnection.setDoInput(true);
- httpConnection.setDoOutput(true);
- httpConnection.setUseCaches(false);
- httpConnection.setRequestMethod("POST");
- httpConnection.setRequestProperty("Content-Type", "text/xml");
- httpConnection.setRequestProperty("SOAPAction", soapAction);
- httpConnection.connect();
- // send the SOAP message
- PrintWriter pw = new PrintWriter(httpConnection.getOutputStream());
- pw.write(message);
- pw.flush();
- pw.close();
+ MessageFactory factory = MessageFactory.newInstance();
+ SOAPMessage soapRequest = factory.createMessage(null, new ByteArrayInputStream(message.getBytes()));
+ SOAPConnection connection = SOAPConnectionFactory.newInstance().createConnection();
+ SOAPMessage soapResponse = connection.call(soapRequest, endpoint);
- // get the response
- Writer w = new StringWriter();
- Reader r = new BufferedReader(new InputStreamReader(
- httpConnection.getInputStream()));
-
- char[] b = new char[4096];
- int size;
- while ((size = r.read(b)) != -1) {
- w.write(b, 0, size);
- }
-
- // return responses
- return w.toString();
+ ByteArrayOutputStream out = new ByteArrayOutputStream();
+ soapResponse.writeTo(out);
+ return out.toString();
}
}
13 years, 8 months