[jboss-svn-commits] JBL Code SVN: r25093 - in labs/jbossesb/workspace/mlittle/legstar: IDE/JBossIDE/services/soap and 12 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Feb 4 03:55:31 EST 2009
Author: jim.ma
Date: 2009-02-04 03:55:30 -0500 (Wed, 04 Feb 2009)
New Revision: 25093
Added:
labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/aop/
labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/aop/META-INF/
labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/aop/META-INF/jboss-service.xml
labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/aop/
labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/aop/AOPServer.java
labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/aop/AOPServerMBean.java
labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/aop/AOPUnitTest.java
Modified:
labs/jbossesb/workspace/mlittle/legstar/IDE/JBossIDE/product/.classpath
labs/jbossesb/workspace/mlittle/legstar/IDE/JBossIDE/services/soap/.classpath
labs/jbossesb/workspace/mlittle/legstar/product/rosetta/src/org/jboss/internal/soa/esb/addressing/helpers/EPRHelper.java
labs/jbossesb/workspace/mlittle/legstar/product/rosetta/src/org/jboss/internal/soa/esb/couriers/TwoWayCourierImpl.java
labs/jbossesb/workspace/mlittle/legstar/product/samples/quickstarts/helloworld/src/org/jboss/soa/esb/samples/quickstart/helloworld/MyJMSListenerAction.java
labs/jbossesb/workspace/mlittle/legstar/product/samples/quickstarts/helloworld/src/org/jboss/soa/esb/samples/quickstart/helloworld/test/SendEsbMessage.java
labs/jbossesb/workspace/mlittle/legstar/qa/base-cp.xml
labs/jbossesb/workspace/mlittle/legstar/qa/junit/build.xml
labs/jbossesb/workspace/mlittle/legstar/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WebServiceProducerTest.java
Log:
Added the files missed during merge from trunk to branch
Modified: labs/jbossesb/workspace/mlittle/legstar/IDE/JBossIDE/product/.classpath
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/IDE/JBossIDE/product/.classpath 2009-02-04 07:17:57 UTC (rev 25092)
+++ labs/jbossesb/workspace/mlittle/legstar/IDE/JBossIDE/product/.classpath 2009-02-04 08:55:30 UTC (rev 25093)
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="lib" path="build/jbossesb/lib/jbossesb-config-model-1.0.1.jar"/>
+ <classpathentry kind="lib" path="build/jbossesb/lib/jbossesb-config-model-1.1.0.jar"/>
<classpathentry excluding="**/.svn/" kind="src" path="rosetta/src"/>
<classpathentry kind="src" path="build/schema-model/src"/>
<classpathentry excluding="**/.svn/" kind="src" path="rosetta/tests/src"/>
Modified: labs/jbossesb/workspace/mlittle/legstar/IDE/JBossIDE/services/soap/.classpath
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/IDE/JBossIDE/services/soap/.classpath 2009-02-04 07:17:57 UTC (rev 25092)
+++ labs/jbossesb/workspace/mlittle/legstar/IDE/JBossIDE/services/soap/.classpath 2009-02-04 08:55:30 UTC (rev 25093)
@@ -6,6 +6,7 @@
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="var" path="ESB_HOME/jbossesb-rosetta.jar"/>
<classpathentry kind="var" path="ESB_HOME/jbossesb-config-model-1.0.1.jar"/>
+ <classpathentry kind="var" path="ESB_HOME/jbossesb-config-model-1.1.0.jar"/>
<classpathentry kind="var" path="ESB_HOME/test-util.jar"/>
<classpathentry kind="lib" path="lib/ext/jaxb-api.jar"/>
<classpathentry kind="lib" path="lib/ext/jaxb-impl.jar"/>
Modified: labs/jbossesb/workspace/mlittle/legstar/product/rosetta/src/org/jboss/internal/soa/esb/addressing/helpers/EPRHelper.java
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/product/rosetta/src/org/jboss/internal/soa/esb/addressing/helpers/EPRHelper.java 2009-02-04 07:17:57 UTC (rev 25092)
+++ labs/jbossesb/workspace/mlittle/legstar/product/rosetta/src/org/jboss/internal/soa/esb/addressing/helpers/EPRHelper.java 2009-02-04 08:55:30 UTC (rev 25093)
@@ -148,7 +148,7 @@
throw new UnmarshalException("Unable to parse EPR XML.", xmlse);
}
}
-
+
private final static void setSpecificEPR(EPR epr)
{
String eprType = null;
@@ -236,7 +236,7 @@
*/
public static EPR copyEPR(final EPR epr, final List<Extension> extensions)
{
- final EPR copyEPR = getSpecificEPR(epr) ;
+ final EPR copyEPR = new EPR(epr.getAddr().copy()) ;
final PortReference addr = copyEPR.getAddr() ;
if (extensions != null)
{
Modified: labs/jbossesb/workspace/mlittle/legstar/product/rosetta/src/org/jboss/internal/soa/esb/couriers/TwoWayCourierImpl.java
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/product/rosetta/src/org/jboss/internal/soa/esb/couriers/TwoWayCourierImpl.java 2009-02-04 07:17:57 UTC (rev 25092)
+++ labs/jbossesb/workspace/mlittle/legstar/product/rosetta/src/org/jboss/internal/soa/esb/couriers/TwoWayCourierImpl.java 2009-02-04 08:55:30 UTC (rev 25093)
@@ -30,7 +30,6 @@
import org.jboss.soa.esb.addressing.eprs.JDBCEpr;
import org.jboss.soa.esb.addressing.eprs.JMSEpr;
import org.jboss.soa.esb.couriers.*;
-
import org.jboss.soa.esb.filter.FilterManager;
import org.jboss.soa.esb.message.Message;
import org.jboss.soa.esb.message.util.Type;
@@ -126,11 +125,11 @@
if (null == epr)
return null;
if (epr instanceof InVMEpr)
- return CourierFactory.getInstance().getInVMCourier((InVMEpr) epr);
- if (epr instanceof JMSEpr)
+ return CourierFactory.getInstance().getInVMCourier((InVMEpr) epr);
+ if (epr instanceof JMSEpr)
return new JmsCourier((JMSEpr) epr, pickUpOnly);
if (epr instanceof FileEpr)
- return new FileCourier((FileEpr) epr, pickUpOnly);
+ return new FileCourier((FileEpr) epr, pickUpOnly);
if (epr instanceof JDBCEpr)
return new SqlTableCourier((JDBCEpr) epr, pickUpOnly);
@@ -146,9 +145,9 @@
String addr = null;
addr = epr.getAddr().getAddress();
- if (addr.startsWith(InVMEpr.INVM_PROTOCOL))
+ if (addr.startsWith(InVMEpr.INVM_PROTOCOL))
return CourierFactory.getInstance().getInVMCourier(new InVMEpr(epr));
- if (addr.startsWith(JMSEpr.JMS_PROTOCOL))
+ if (addr.startsWith(JMSEpr.JMS_PROTOCOL))
return new JmsCourier(new JMSEpr(epr), pickUpOnly);
if (addr.startsWith(JDBCEpr.JDBC_PROTOCOL))
return new SqlTableCourier(new JDBCEpr(epr), pickUpOnly);
Modified: labs/jbossesb/workspace/mlittle/legstar/product/samples/quickstarts/helloworld/src/org/jboss/soa/esb/samples/quickstart/helloworld/MyJMSListenerAction.java
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/product/samples/quickstarts/helloworld/src/org/jboss/soa/esb/samples/quickstart/helloworld/MyJMSListenerAction.java 2009-02-04 07:17:57 UTC (rev 25092)
+++ labs/jbossesb/workspace/mlittle/legstar/product/samples/quickstarts/helloworld/src/org/jboss/soa/esb/samples/quickstart/helloworld/MyJMSListenerAction.java 2009-02-04 08:55:30 UTC (rev 25093)
@@ -42,4 +42,4 @@
}
-}
+}
\ No newline at end of file
Modified: labs/jbossesb/workspace/mlittle/legstar/product/samples/quickstarts/helloworld/src/org/jboss/soa/esb/samples/quickstart/helloworld/test/SendEsbMessage.java
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/product/samples/quickstarts/helloworld/src/org/jboss/soa/esb/samples/quickstart/helloworld/test/SendEsbMessage.java 2009-02-04 07:17:57 UTC (rev 25092)
+++ labs/jbossesb/workspace/mlittle/legstar/product/samples/quickstarts/helloworld/src/org/jboss/soa/esb/samples/quickstart/helloworld/test/SendEsbMessage.java 2009-02-04 08:55:30 UTC (rev 25093)
@@ -57,4 +57,3 @@
}
}
-
Modified: labs/jbossesb/workspace/mlittle/legstar/qa/base-cp.xml
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/qa/base-cp.xml 2009-02-04 07:17:57 UTC (rev 25092)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/base-cp.xml 2009-02-04 08:55:30 UTC (rev 25093)
@@ -54,6 +54,7 @@
<pathelement location="${org.jboss.esb.server.home}/lib/commons-codec.jar" />
<pathelement location="${org.jboss.esb.server.home}/lib/jboss-system.jar" />
<pathelement location="${org.jboss.esb.server.home}/lib/jboss-xml-binding.jar" />
+ <pathelement location="${org.jboss.esb.server.home}/lib/commons-httpclient.jar" />
<pathelement location="${org.jboss.esb.server.server}/lib/log4j.jar" />
<fileset dir="${product.dir}/../testlib">
<include name="emma*.jar" />
@@ -62,4 +63,4 @@
<pathelement location="${org.jboss.esb.server.home}/client/jbossall-client.jar" />
<pathelement location="${pwd}" />
</path>
-</project>
\ No newline at end of file
+</project>
Modified: labs/jbossesb/workspace/mlittle/legstar/qa/junit/build.xml
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/qa/junit/build.xml 2009-02-04 07:17:57 UTC (rev 25092)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/build.xml 2009-02-04 08:55:30 UTC (rev 25093)
@@ -161,6 +161,12 @@
<include name="META-INF/*.xml"/>
</fileset>
</jar>
+ <jar jarfile="${qa.build.lib}/aop-test.sar">
+ <fileset dir="${qa.junit.classes}">
+ <include name="org/jboss/soa/esb/server/aop/*.class"/>
+ </fileset>
+ <fileset dir="${qa.junit.resources}/server/aop"/>
+ </jar>
<jar jarfile="${qa.build.lib}/ebws-test.esb">
<fileset dir="${qa.junit.classes}">
<include name="org/jboss/soa/esb/server/ebws/*.class"/>
@@ -191,6 +197,7 @@
<sysproperty key="jbosstest.threadcount" value="${jbosstest.threadcount}"/>
<sysproperty key="jbosstest.iterationcount" value="${jbosstest.iterationcount}"/>
<sysproperty key="jbosstest.beancount" value="${jbosstest.beancount}"/>
+ <sysproperty key="javax.xml.registry.ConnectionFactoryClass" value="org.apache.ws.scout.registry.ConnectionFactoryImpl"/>
<sysproperty key="org.jboss.esb.test.ftp.hostname" value="${org.jboss.esb.test.ftp.hostname}"/>
<sysproperty key="org.jboss.esb.test.ftp.user" value="${org.jboss.esb.test.ftp.user}"/>
@@ -273,6 +280,7 @@
<sysproperty key="jbosstest.threadcount" value="${jbosstest.threadcount}"/>
<sysproperty key="jbosstest.iterationcount" value="${jbosstest.iterationcount}"/>
<sysproperty key="jbosstest.beancount" value="${jbosstest.beancount}"/>
+ <sysproperty key="javax.xml.registry.ConnectionFactoryClass" value="org.apache.ws.scout.registry.ConnectionFactoryImpl"/>
<!-- Listener Sys Props... -->
<sysproperty key="org.jboss.soa.esb.paramsRepository.file.root"
Added: labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/aop/META-INF/jboss-service.xml
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/aop/META-INF/jboss-service.xml (rev 0)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/aop/META-INF/jboss-service.xml 2009-02-04 08:55:30 UTC (rev 25093)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+ <mbean name="jboss.esb:test=AOPServer" code="org.jboss.soa.esb.server.aop.AOPServer"/>
+</server>
Added: labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/aop/AOPServer.java
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/aop/AOPServer.java (rev 0)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/aop/AOPServer.java 2009-02-04 08:55:30 UTC (rev 25093)
@@ -0,0 +1,189 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006, JBoss Inc.
+ */
+package org.jboss.soa.esb.server.aop;
+
+import java.io.PrintWriter;
+import java.io.StringWriter;
+import java.util.Collection;
+
+import javax.xml.registry.BulkResponse;
+import javax.xml.registry.BusinessQueryManager;
+import javax.xml.registry.Connection;
+import javax.xml.registry.JAXRException;
+import javax.xml.registry.JAXRResponse;
+import javax.xml.registry.RegistryService;
+import javax.xml.registry.infomodel.Service;
+import javax.xml.registry.infomodel.ServiceBinding;
+
+import org.jboss.internal.soa.esb.addressing.helpers.EPRHelper;
+import org.jboss.internal.soa.esb.services.registry.JAXRConnectionFactory;
+import org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl;
+import org.jboss.soa.esb.ConfigurationException;
+import org.jboss.soa.esb.MarshalException;
+import org.jboss.soa.esb.addressing.eprs.LogicalEPR;
+import org.jboss.soa.esb.services.registry.Registry;
+import org.jboss.soa.esb.services.registry.RegistryException;
+import org.jboss.soa.esb.services.registry.RegistryFactory;
+import org.jboss.soa.esb.services.registry.ServiceNotFoundException;
+
+
+/**
+ * MBean to manage AOP tests.
+ *
+ * @author <a href='mailto:kevin.conner at jboss.com'>Kevin Conner</a>
+ */
+public class AOPServer implements AOPServerMBean
+{
+ public AOPServer()
+ {
+ System.out.println("AOP test MBean deployed") ;
+ }
+
+ public String verifyScoutPerformanceIssue()
+ throws JAXRException, ConfigurationException
+ {
+ return new TestScoutRegistryImpl().checkService() ;
+ }
+
+ public String verifyJUDDICDataIssue()
+ throws RegistryException, MarshalException, ServiceNotFoundException
+ {
+ final Registry registry = RegistryFactory.getRegistry() ;
+ final String category = "DummyAOPCategory" ;
+ final String serviceName = "DummyAOPServiceName" ;
+ final String serviceDescription = "Dummy AOP Service Description" ;
+ final LogicalEPR epr = new LogicalEPR(category, serviceName) ;
+ for (char name = 'a' ; name <= 'z' ; name++)
+ {
+ final String val = new String(new char[] {name}) ;
+ epr.getAddr().addExtension(val, val) ;
+ }
+ final String eprAsXML = EPRHelper.toXMLString(epr) ;
+ final String heuristic = verifyHeuristic(eprAsXML) ;
+ if (heuristic != null)
+ {
+ return null ;
+ }
+
+ final String eprDescription = "Dummy AOP EPR Description" ;
+
+ registry.registerEPR(category, serviceName, serviceDescription, epr, eprDescription) ;
+ try
+ {
+ registry.findEPR(category, serviceName) ;
+ }
+ catch (final Throwable th)
+ {
+ final StringWriter sw = new StringWriter() ;
+ final PrintWriter pw = new PrintWriter(sw) ;
+ th.printStackTrace(pw) ;
+ pw.flush() ;
+ return sw.toString() ;
+ }
+
+ return null ;
+ }
+
+ private String verifyHeuristic(final String value)
+ {
+ final char[] contents = value.toCharArray() ;
+ final int numChars = contents.length ;
+ int counter = 0 ;
+ for(int index = 0 ; index < numChars ; index++)
+ {
+ final char ch = contents[index] ;
+ if ((ch == '<') || (ch == '&'))
+ {
+ counter++;
+ }
+ }
+ if ((numChars > 32) && (counter > 5) &&
+ (((counter * 100) / numChars) > 1))
+ {
+ return null ;
+ }
+ else
+ {
+ return "Heuristic failure" ;
+ }
+ }
+
+ private static final class TestScoutRegistryImpl extends JAXRRegistryImpl
+ {
+ public TestScoutRegistryImpl()
+ throws ConfigurationException
+ {
+ }
+
+ public String checkService()
+ throws JAXRException, ConfigurationException
+ {
+ final Service service = findService("JBossESB-Internal", "DeadLetterService") ;
+
+ if (service == null)
+ {
+ return "Service not found" ;
+ }
+
+ final ScoutConnectionFactory scoutConnectionFactory = new ScoutConnectionFactory() ;
+ final Connection connection = scoutConnectionFactory.getConnection();
+ final RegistryService rs = connection.getRegistryService();
+ final BusinessQueryManager bqm = rs.getBusinessQueryManager();
+ final BulkResponse bulkResponse = bqm.findServiceBindings(service.getKey(),null,null,null);
+ if (bulkResponse.getStatus()!=JAXRResponse.STATUS_SUCCESS)
+ {
+ return "findServiceBindings failed" ;
+ }
+ final Collection<ServiceBinding> serviceBindings = (Collection<ServiceBinding>)bulkResponse.getCollection();
+ if ((serviceBindings == null) || (serviceBindings.size() == 0))
+ {
+ return "could not find service bindings for DeadLetterService" ;
+ }
+
+ for(ServiceBinding serviceBinding: serviceBindings)
+ {
+ final Service bindingService = serviceBinding.getService() ;
+ if (bindingService == null)
+ {
+ return "Could not find service associated with binding" ;
+ }
+ if (bindingService.getProvidingOrganization() != null)
+ {
+ return "FAILED: Organization is present in service binding" ;
+ }
+ }
+
+ return null ;
+ }
+ }
+
+ private static class ScoutConnectionFactory extends JAXRConnectionFactory
+ {
+ public ScoutConnectionFactory()
+ throws ConfigurationException
+ {
+ }
+
+ public Connection getConnection()
+ {
+ return super.getConnection() ;
+ }
+ }
+}
Added: labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/aop/AOPServerMBean.java
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/aop/AOPServerMBean.java (rev 0)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/aop/AOPServerMBean.java 2009-02-04 08:55:30 UTC (rev 25093)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006, JBoss Inc.
+ */
+package org.jboss.soa.esb.server.aop;
+
+import javax.xml.registry.JAXRException;
+
+import org.jboss.soa.esb.ConfigurationException;
+import org.jboss.soa.esb.MarshalException;
+import org.jboss.soa.esb.services.registry.RegistryException;
+import org.jboss.soa.esb.services.registry.ServiceNotFoundException;
+
+/**
+ * MBean to manage AOP tests.
+ *
+ * @author <a href='mailto:kevin.conner at jboss.com'>Kevin Conner</a>
+ */
+public interface AOPServerMBean
+{
+ public static final String OBJECT_NAME="jboss.esb:test=AOPServer" ;
+
+ public String verifyScoutPerformanceIssue()
+ throws JAXRException, ConfigurationException ;
+
+ public String verifyJUDDICDataIssue()
+ throws RegistryException, MarshalException, ServiceNotFoundException ;
+}
Added: labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/aop/AOPUnitTest.java
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/aop/AOPUnitTest.java (rev 0)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/aop/AOPUnitTest.java 2009-02-04 08:55:30 UTC (rev 25093)
@@ -0,0 +1,100 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006, JBoss Inc.
+ */
+package org.jboss.soa.esb.server.aop;
+
+import javax.management.ObjectName;
+
+import junit.framework.Test;
+
+import org.jboss.test.JBossTestCase;
+
+/**
+ * Test asynchronous callbacks for jBPM processes.
+ *
+ * @author <a href='mailto:kevin.conner at jboss.com'>Kevin Conner</a>
+ */
+public class AOPUnitTest extends JBossTestCase
+{
+ /**
+ * The name of the deployment archive.
+ */
+ private static final String SAR_ARCHIVE = "aop-test.sar" ;
+
+ /**
+ * Construct the test case with the specified name.
+ * @param name The name of the test case.
+ */
+ public AOPUnitTest(final String name)
+ {
+ super(name) ;
+ }
+
+ /**
+ * Test for scout performance issue.
+ * @throws Exception For any failures.
+ */
+ public void testScoutPerformanceIssue()
+ throws Exception
+ {
+ final String result = (String)execute("verifyScoutPerformanceIssue", null, null) ;
+ if (result != null)
+ {
+ fail(result) ;
+ }
+ }
+
+ /**
+ * Test for juddi CDATA issue..
+ * @throws Exception For any failures.
+ */
+ public void testJUDDICDataIssue()
+ throws Exception
+ {
+ final String result = (String)execute("verifyJUDDICDataIssue", null, null) ;
+ if (result != null)
+ {
+ fail(result) ;
+ }
+ }
+
+ /**
+ * Execute the specified method on the mbean.
+ * @param method The method name.
+ * @param values The parmeter values.
+ * @param types The parameter types.
+ * @return The method return value.
+ * @throws Exception For errors during invocation.
+ */
+ private Object execute(final String method, final Object[] values, final String[] types)
+ throws Exception
+ {
+ return getServer().invoke(new ObjectName(AOPServerMBean.OBJECT_NAME), method, values, types) ;
+ }
+
+ /**
+ * Create the test suite.
+ * @return The suite representing this test case.
+ */
+ public static Test suite()
+ throws Exception
+ {
+ return getDeploySetup(AOPUnitTest.class, SAR_ARCHIVE);
+ }
+}
Modified: labs/jbossesb/workspace/mlittle/legstar/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WebServiceProducerTest.java
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WebServiceProducerTest.java 2009-02-04 07:17:57 UTC (rev 25092)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WebServiceProducerTest.java 2009-02-04 08:55:30 UTC (rev 25093)
@@ -6,7 +6,6 @@
import org.jboss.soa.esb.samples.quickstart.webserviceproducer.test.SendMessage;
import org.jboss.soa.esb.testutils.FileUtil;
-import org.jgroups.protocols.JMS;
/**
* CI test for the webservice_producer quickstart.
More information about the jboss-svn-commits
mailing list