JBossWS SVN: r18763 - stack/cxf/trunk/modules/dist/src/main/distro.
by jbossws-commits@lists.jboss.org
Author: asoldano
Date: 2014-06-25 09:12:21 -0400 (Wed, 25 Jun 2014)
New Revision: 18763
Modified:
stack/cxf/trunk/modules/dist/src/main/distro/build-deploy.xml
Log:
Fix indentation
Modified: stack/cxf/trunk/modules/dist/src/main/distro/build-deploy.xml
===================================================================
--- stack/cxf/trunk/modules/dist/src/main/distro/build-deploy.xml 2014-06-25 08:52:50 UTC (rev 18762)
+++ stack/cxf/trunk/modules/dist/src/main/distro/build-deploy.xml 2014-06-25 13:12:21 UTC (rev 18763)
@@ -123,7 +123,7 @@
<target name="deploy-structure-wildfly90x" depends="prepare-deploy">
<delete dir="${deploy.structure}"/>
- <path id="jboss.ant.tasks.classpath">
+ <path id="jboss.ant.tasks.classpath">
<fileset dir="${deploy.artifacts.dir}">
<include name="**/jbossws-common-tools.jar"/>
<include name="**/jandex.jar"/>
@@ -131,7 +131,7 @@
</path>
<taskdef name="installModules" classname="org.jboss.ws.tools.ant.InstallModulesTask" classpathref="jboss.ant.tasks.classpath"/>
<taskdef name="jandex" classname="org.jboss.jandex.JandexAntTask" classpathref="jboss.ant.tasks.classpath"/>
- <jandex run="true" verbose="false" newJar="true">
+ <jandex run="true" verbose="false" newJar="true">
<fileset dir="${deploy.artifacts.dir}/lib">
<include name="cxf*security.jar"/>
</fileset>
10 years, 3 months
JBossWS SVN: r18762 - common/trunk/src/main/java/org/jboss/ws/common/deployment.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2014-06-25 04:52:50 -0400 (Wed, 25 Jun 2014)
New Revision: 18762
Removed:
common/trunk/src/main/java/org/jboss/ws/common/deployment/EndpointLifecycleDeploymentAspect.java
Log:
[JBWS-3804]:Remove unused EndpointLifecycleDeploymentAspect
Deleted: common/trunk/src/main/java/org/jboss/ws/common/deployment/EndpointLifecycleDeploymentAspect.java
===================================================================
--- common/trunk/src/main/java/org/jboss/ws/common/deployment/EndpointLifecycleDeploymentAspect.java 2014-06-24 00:54:06 UTC (rev 18761)
+++ common/trunk/src/main/java/org/jboss/ws/common/deployment/EndpointLifecycleDeploymentAspect.java 2014-06-25 08:52:50 UTC (rev 18762)
@@ -1,72 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY 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 along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.ws.common.deployment;
-
-import org.jboss.ws.common.Messages;
-import org.jboss.ws.common.integration.AbstractDeploymentAspect;
-import org.jboss.wsf.spi.deployment.Deployment;
-import org.jboss.wsf.spi.deployment.Endpoint;
-import org.jboss.wsf.spi.deployment.LifecycleHandler;
-import org.jboss.wsf.spi.deployment.Service;
-
-/**
- * A deployer that that calls the endpoint lifecycle handler
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 25-Apr-2007
- */
-public class EndpointLifecycleDeploymentAspect extends AbstractDeploymentAspect
-{
- @Override
- public void start(Deployment dep)
- {
- for (Endpoint ep : dep.getService().getEndpoints())
- {
- getLifecycleHandler(ep, true).start(ep);
- }
- }
-
- @Override
- public void stop(Deployment dep)
- {
- Service service = dep.getService();
- if (service != null)
- {
- for (Endpoint ep : service.getEndpoints())
- {
- LifecycleHandler lifecycleHandler = getLifecycleHandler(ep, false);
- if (lifecycleHandler != null)
- lifecycleHandler.stop(ep);
- }
- }
- }
-
- protected LifecycleHandler getLifecycleHandler(Endpoint ep, boolean assertHandler)
- {
- LifecycleHandler lifecycleHandler = ep.getLifecycleHandler();
- if (lifecycleHandler == null && assertHandler)
- throw Messages.MESSAGES.lifecycleHandlerNotInitialized(ep.getName());
-
- return lifecycleHandler;
- }
-
-}
10 years, 3 months
JBossWS SVN: r18761 - in stack/cxf/trunk/modules/server/src/main: resources and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2014-06-23 20:54:06 -0400 (Mon, 23 Jun 2014)
New Revision: 18761
Removed:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/deployment/aspect/ResourceResolverDeploymentAspect.java
Modified:
stack/cxf/trunk/modules/server/src/main/resources/jbossws-cxf-config-as8.xml
stack/cxf/trunk/modules/server/src/main/resources/jbossws-cxf-config-as9.xml
Log:
[JBWS-3804]:Remove ResourceResolverDeploymentAspect
Deleted: stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/deployment/aspect/ResourceResolverDeploymentAspect.java
===================================================================
--- stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/deployment/aspect/ResourceResolverDeploymentAspect.java 2014-06-23 12:34:05 UTC (rev 18760)
+++ stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/deployment/aspect/ResourceResolverDeploymentAspect.java 2014-06-24 00:54:06 UTC (rev 18761)
@@ -1,66 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY 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 along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.wsf.stack.cxf.deployment.aspect;
-
-import org.jboss.ws.common.integration.AbstractDeploymentAspect;
-import org.jboss.wsf.spi.deployment.ArchiveDeployment;
-import org.jboss.wsf.spi.deployment.Deployment;
-import org.jboss.wsf.spi.deployment.Endpoint;
-import org.jboss.wsf.spi.deployment.ResourceResolver;
-import org.jboss.wsf.stack.cxf.resolver.JBossWSResourceResolver;
-
-/**
- * A deployment aspect for attaching a custom JBoss resources resolver to the endpoint;
- * CXF requires a ResourceResolver for getting wsdl, xsd, etc. correctly when they're
- * not reachable using the context classloader (for instance if they're out of
- * WEB-INF/classes in a war deployed on AS 5 or greater - see. JBAS-5151)
- *
- * @author alessio.soldano(a)jboss.com
- * @since 19-Nov-2009
- */
-public class ResourceResolverDeploymentAspect extends AbstractDeploymentAspect
-{
- @Override
- public void start(Deployment dep)
- {
- if (dep instanceof ArchiveDeployment)
- {
- ResourceResolver resolver = ((ArchiveDeployment)dep).getResourceResolver();
- for (Endpoint ep : dep.getService().getEndpoints())
- {
- ep.addAttachment(org.apache.cxf.resource.ResourceResolver.class, new JBossWSResourceResolver(resolver));
- }
- }
- }
-
- @Override
- public void stop(Deployment dep)
- {
- if (dep instanceof ArchiveDeployment)
- {
- for (Endpoint ep : dep.getService().getEndpoints())
- {
- ep.removeAttachment(org.apache.cxf.resource.ResourceResolver.class);
- }
- }
- }
-}
Modified: stack/cxf/trunk/modules/server/src/main/resources/jbossws-cxf-config-as8.xml
===================================================================
--- stack/cxf/trunk/modules/server/src/main/resources/jbossws-cxf-config-as8.xml 2014-06-23 12:34:05 UTC (rev 18760)
+++ stack/cxf/trunk/modules/server/src/main/resources/jbossws-cxf-config-as8.xml 2014-06-24 00:54:06 UTC (rev 18761)
@@ -41,10 +41,6 @@
<property name="provides" class="java.lang.String">StackDescriptor</property>
</deploymentAspect>
- <deploymentAspect class="org.jboss.wsf.stack.cxf.deployment.aspect.ResourceResolverDeploymentAspect">
- <property name="provides" class="java.lang.String">ResourceResolver</property>
- </deploymentAspect>
-
<deploymentAspect class="org.jboss.ws.common.deployment.EndpointHandlerDeploymentAspect">
<property name="requires" class="java.lang.String">ContainerMetaData</property>
<property name="provides" class="java.lang.String">StackEndpointHandler</property>
@@ -61,7 +57,7 @@
<deploymentAspect class="org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect">
<property name="provides" class="java.lang.String">BusHolder</property>
- <property name="requires" class="java.lang.String">ResourceResolver,StackDescriptor</property>
+ <property name="requires" class="java.lang.String">StackDescriptor</property>
</deploymentAspect>
</deploymentAspects>
Modified: stack/cxf/trunk/modules/server/src/main/resources/jbossws-cxf-config-as9.xml
===================================================================
--- stack/cxf/trunk/modules/server/src/main/resources/jbossws-cxf-config-as9.xml 2014-06-23 12:34:05 UTC (rev 18760)
+++ stack/cxf/trunk/modules/server/src/main/resources/jbossws-cxf-config-as9.xml 2014-06-24 00:54:06 UTC (rev 18761)
@@ -41,10 +41,6 @@
<property name="provides" class="java.lang.String">StackDescriptor</property>
</deploymentAspect>
- <deploymentAspect class="org.jboss.wsf.stack.cxf.deployment.aspect.ResourceResolverDeploymentAspect">
- <property name="provides" class="java.lang.String">ResourceResolver</property>
- </deploymentAspect>
-
<deploymentAspect class="org.jboss.ws.common.deployment.EndpointHandlerDeploymentAspect">
<property name="requires" class="java.lang.String">ContainerMetaData</property>
<property name="provides" class="java.lang.String">StackEndpointHandler</property>
@@ -61,7 +57,7 @@
<deploymentAspect class="org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect">
<property name="provides" class="java.lang.String">BusHolder</property>
- <property name="requires" class="java.lang.String">ResourceResolver,StackDescriptor</property>
+ <property name="requires" class="java.lang.String">StackDescriptor</property>
</deploymentAspect>
</deploymentAspects>
10 years, 3 months
JBossWS SVN: r18760 - stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/eardeployment.
by jbossws-commits@lists.jboss.org
Author: asoldano
Date: 2014-06-23 08:34:05 -0400 (Mon, 23 Jun 2014)
New Revision: 18760
Modified:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/eardeployment/EarTestCase.java
Log:
[JBWS-3711] Fix regression introduces in former commit
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/eardeployment/EarTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/eardeployment/EarTestCase.java 2014-06-23 08:10:56 UTC (rev 18759)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/eardeployment/EarTestCase.java 2014-06-23 12:34:05 UTC (rev 18760)
@@ -77,7 +77,8 @@
archive
.addManifest()
.addAsResource(new File(JBossWSTestHelper.getTestArchiveDir(), "jaxws-samples-eardeployment-ejb3.jar"))
- .addAsResource(new File(JBossWSTestHelper.getTestArchiveDir(), "jaxws-samples-eardeployment-pojo.war"));
+ .addAsResource(new File(JBossWSTestHelper.getTestArchiveDir(), "jaxws-samples-eardeployment-pojo.war"))
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/META-INF/permissions.xml"), "permissions.xml");
}
});
}
10 years, 3 months
JBossWS SVN: r18759 - in container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main: resources/META-INF and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2014-06-23 04:10:56 -0400 (Mon, 23 Jun 2014)
New Revision: 18759
Modified:
container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/service/EndpointService.java
container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/resources/META-INF/stack-agnostic-deployment-aspects.xml
Log:
[JBWS-3733]:Add endpointMetrics in EndpointService
Modified: container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/service/EndpointService.java
===================================================================
--- container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/service/EndpointService.java 2014-06-23 08:08:05 UTC (rev 18758)
+++ container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/service/EndpointService.java 2014-06-23 08:10:56 UTC (rev 18759)
@@ -63,9 +63,11 @@
import org.jboss.ws.common.management.AbstractServerConfig;
import org.jboss.ws.common.management.ManagedEndpoint;
import org.jboss.ws.common.monitoring.ManagedRecordProcessor;
+import org.jboss.wsf.spi.SPIProvider;
import org.jboss.wsf.spi.deployment.Deployment;
import org.jboss.wsf.spi.deployment.Endpoint;
import org.jboss.wsf.spi.deployment.EndpointType;
+import org.jboss.wsf.spi.management.EndpointMetricsFactory;
import org.jboss.wsf.spi.security.EJBMethodSecurityAttributeProvider;
/**
@@ -114,6 +116,8 @@
for (final RecordProcessor processor : processors) {
registerRecordProcessor(processor, endpoint);
}
+ final EndpointMetricsFactory factory = SPIProvider.getInstance().getSPI(EndpointMetricsFactory.class);
+ endpoint.setEndpointMetrics(factory.newEndpointMetrics());
registerEndpoint(endpoint);
endpoint.getLifecycleHandler().start(endpoint);
}
Modified: container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/resources/META-INF/stack-agnostic-deployment-aspects.xml
===================================================================
--- container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/resources/META-INF/stack-agnostic-deployment-aspects.xml 2014-06-23 08:08:05 UTC (rev 18758)
+++ container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/resources/META-INF/stack-agnostic-deployment-aspects.xml 2014-06-23 08:10:56 UTC (rev 18759)
@@ -48,10 +48,6 @@
<property name="last" class="boolean">true</property>
</deploymentAspect>
- <deploymentAspect class="org.jboss.ws.common.deployment.EndpointMetricsDeploymentAspect">
- <property name="provides" class="java.lang.String">EndpointMetrics</property>
- </deploymentAspect>
-
<deploymentAspect class="org.jboss.ws.common.deployment.EndpointNameDeploymentAspect">
<property name="requires" class="java.lang.String">URLPattern</property>
<property name="provides" class="java.lang.String">EndpointName</property>
10 years, 3 months
JBossWS SVN: r18758 - in container/wildfly80/branches/jbossws-wildfly800: server-integration/src/main/java/org/jboss/as/webservices/service and 2 other directories.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2014-06-23 04:08:05 -0400 (Mon, 23 Jun 2014)
New Revision: 18758
Modified:
container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/deployers/AbstractIntegrationProcessorJAXWS.java
container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/deployers/WSIntegrationProcessorJAXWS_POJO.java
container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/service/EndpointService.java
container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/resources/META-INF/stack-agnostic-deployment-aspects.xml
container/wildfly80/branches/jbossws-wildfly800/tests-integration/src/main/java/org/jboss/as/webservices/deployer/RemoteDeployer.java
Log:
Revert previous commit
Modified: container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/deployers/AbstractIntegrationProcessorJAXWS.java
===================================================================
--- container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/deployers/AbstractIntegrationProcessorJAXWS.java 2014-06-22 01:27:16 UTC (rev 18757)
+++ container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/deployers/AbstractIntegrationProcessorJAXWS.java 2014-06-23 08:08:05 UTC (rev 18758)
@@ -81,7 +81,7 @@
ROOT_LOGGER.skippingAnnotationProcessing(unit.getName());
} else {
for (final DotName dotName : dotNames) {
- /*final List<AnnotationInstance> wsAnnotations = index.getAnnotations(dotName);
+ final List<AnnotationInstance> wsAnnotations = index.getAnnotations(dotName);
if (!wsAnnotations.isEmpty()) {
for (final AnnotationInstance wsAnnotation : wsAnnotations) {
final AnnotationTarget target = wsAnnotation.target();
@@ -92,22 +92,7 @@
}
}
}
- }*/
- processAnnotations(unit, dotName, index);
-
- if (unit.getParent() != null && DeploymentTypeMarker.isType(DeploymentType.EAR,
- unit.getParent())) {
- final CompositeIndex parentIndex = unit.getParent()
- .getAttachment(
- Attachments.COMPOSITE_ANNOTATION_INDEX);
-
- if (parentIndex != null) {
-
- processAnnotations(unit, dotName, parentIndex);
-
- }
-
- }
+ }
}
}
}
@@ -118,33 +103,7 @@
}
protected abstract void processAnnotation(final DeploymentUnit unit, final ClassInfo classInfo, final AnnotationInstance wsAnnotation, final CompositeIndex compositeIndex) throws DeploymentUnitProcessingException;
-
- private void processAnnotations(final DeploymentUnit unit, final DotName dotName, final CompositeIndex index)
- throws DeploymentUnitProcessingException {
- final List<AnnotationInstance> wsAnnotations = index.getAnnotations(dotName);
-
- if (!wsAnnotations.isEmpty()) {
-
- for (final AnnotationInstance wsAnnotation : wsAnnotations) {
-
- final AnnotationTarget target = wsAnnotation.target();
-
- if (target instanceof ClassInfo) {
-
- final ClassInfo classInfo = (ClassInfo) target;
-
- if (isJaxwsEndpoint(classInfo, index)) {
-
- processAnnotation(unit, classInfo, wsAnnotation, index);
-
- }
-
- }
-
- }
- }
- }
static ComponentDescription createComponentDescription(final DeploymentUnit unit, final String componentName, final String componentClassName, final String dependsOnEndpointClassName) {
final EEModuleDescription moduleDescription = getRequiredAttachment(unit, EE_MODULE_DESCRIPTION);
// JBoss WEB processors may install fake components for WS endpoints - removing them forcibly
Modified: container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/deployers/WSIntegrationProcessorJAXWS_POJO.java
===================================================================
--- container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/deployers/WSIntegrationProcessorJAXWS_POJO.java 2014-06-22 01:27:16 UTC (rev 18757)
+++ container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/deployers/WSIntegrationProcessorJAXWS_POJO.java 2014-06-23 08:08:05 UTC (rev 18758)
@@ -35,9 +35,6 @@
import java.util.List;
import org.jboss.as.ee.component.ComponentDescription;
-import org.jboss.as.ee.structure.DeploymentType;
-import org.jboss.as.ee.structure.DeploymentTypeMarker;
-import org.jboss.as.server.deployment.Attachments;
import org.jboss.as.server.deployment.DeploymentUnit;
import org.jboss.as.server.deployment.DeploymentUnitProcessingException;
import org.jboss.as.server.deployment.annotation.CompositeIndex;
@@ -92,25 +89,14 @@
jaxwsDeployment.addEndpoint(new POJOEndpoint(endpointName, endpointClassName, pojoViewName, urlPattern));
}
}
- DeploymentUnit parentUnit = unit.getParent();
-
- boolean isEarIndex = parentUnit != null && DeploymentTypeMarker.isType(DeploymentType.EAR, parentUnit)
- && parentUnit.getAttachment(Attachments.COMPOSITE_ANNOTATION_INDEX) == compositeIndex;
-
- if (!found && !isEarIndex) {
-
- // JSR 109, version 1.3 final spec, section 5.3.2.1
- // javax.jws.WebService annotation
- final ComponentDescription pojoComponent = createComponentDescription(
- unit, endpointClassName, endpointClassName,
- endpointClassName);
- final ServiceName pojoViewName = registerView(pojoComponent,
- endpointClassName);
- // register POJO endpoint
- final String urlPattern = getUrlPattern(classInfo);
- jaxwsDeployment.addEndpoint(new POJOEndpoint(endpointClassName,
- pojoViewName, urlPattern));
- }
+ if (!found) {
+ // JSR 109, version 1.3 final spec, section 5.3.2.1 javax.jws.WebService annotation
+ final ComponentDescription pojoComponent = createComponentDescription(unit, endpointClassName, endpointClassName, endpointClassName);
+ final ServiceName pojoViewName = registerView(pojoComponent, endpointClassName);
+ // register POJO endpoint
+ final String urlPattern = getUrlPattern(classInfo);
+ jaxwsDeployment.addEndpoint(new POJOEndpoint(endpointClassName, pojoViewName, urlPattern));
+ }
}
}
Modified: container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/service/EndpointService.java
===================================================================
--- container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/service/EndpointService.java 2014-06-22 01:27:16 UTC (rev 18757)
+++ container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/service/EndpointService.java 2014-06-23 08:08:05 UTC (rev 18758)
@@ -63,11 +63,9 @@
import org.jboss.ws.common.management.AbstractServerConfig;
import org.jboss.ws.common.management.ManagedEndpoint;
import org.jboss.ws.common.monitoring.ManagedRecordProcessor;
-import org.jboss.wsf.spi.SPIProvider;
import org.jboss.wsf.spi.deployment.Deployment;
import org.jboss.wsf.spi.deployment.Endpoint;
import org.jboss.wsf.spi.deployment.EndpointType;
-import org.jboss.wsf.spi.management.EndpointMetricsFactory;
import org.jboss.wsf.spi.security.EJBMethodSecurityAttributeProvider;
/**
@@ -116,8 +114,6 @@
for (final RecordProcessor processor : processors) {
registerRecordProcessor(processor, endpoint);
}
- final EndpointMetricsFactory factory = SPIProvider.getInstance().getSPI(EndpointMetricsFactory.class);
- endpoint.setEndpointMetrics(factory.newEndpointMetrics());
registerEndpoint(endpoint);
endpoint.getLifecycleHandler().start(endpoint);
}
Modified: container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/resources/META-INF/stack-agnostic-deployment-aspects.xml
===================================================================
--- container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/resources/META-INF/stack-agnostic-deployment-aspects.xml 2014-06-22 01:27:16 UTC (rev 18757)
+++ container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/resources/META-INF/stack-agnostic-deployment-aspects.xml 2014-06-23 08:08:05 UTC (rev 18758)
@@ -48,6 +48,10 @@
<property name="last" class="boolean">true</property>
</deploymentAspect>
+ <deploymentAspect class="org.jboss.ws.common.deployment.EndpointMetricsDeploymentAspect">
+ <property name="provides" class="java.lang.String">EndpointMetrics</property>
+ </deploymentAspect>
+
<deploymentAspect class="org.jboss.ws.common.deployment.EndpointNameDeploymentAspect">
<property name="requires" class="java.lang.String">URLPattern</property>
<property name="provides" class="java.lang.String">EndpointName</property>
Modified: container/wildfly80/branches/jbossws-wildfly800/tests-integration/src/main/java/org/jboss/as/webservices/deployer/RemoteDeployer.java
===================================================================
--- container/wildfly80/branches/jbossws-wildfly800/tests-integration/src/main/java/org/jboss/as/webservices/deployer/RemoteDeployer.java 2014-06-22 01:27:16 UTC (rev 18757)
+++ container/wildfly80/branches/jbossws-wildfly800/tests-integration/src/main/java/org/jboss/as/webservices/deployer/RemoteDeployer.java 2014-06-23 08:08:05 UTC (rev 18758)
@@ -442,7 +442,6 @@
} else {
throw new Exception("Operation not successful; outcome = " + result.get(OUTCOME));
}
-
}
private static CallbackHandler getCallbackHandler() {
10 years, 3 months
JBossWS SVN: r18757 - common/trunk/src/main/java/org/jboss/ws/common/deployment.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2014-06-21 21:27:16 -0400 (Sat, 21 Jun 2014)
New Revision: 18757
Removed:
common/trunk/src/main/java/org/jboss/ws/common/deployment/EndpointMetricsDeploymentAspect.java
Log:
[JBWS-3733]:Remove EndpointMetricsDeploymentAspect
Deleted: common/trunk/src/main/java/org/jboss/ws/common/deployment/EndpointMetricsDeploymentAspect.java
===================================================================
--- common/trunk/src/main/java/org/jboss/ws/common/deployment/EndpointMetricsDeploymentAspect.java 2014-06-22 01:24:54 UTC (rev 18756)
+++ common/trunk/src/main/java/org/jboss/ws/common/deployment/EndpointMetricsDeploymentAspect.java 2014-06-22 01:27:16 UTC (rev 18757)
@@ -1,49 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY 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 along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 021101301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.ws.common.deployment;
-
-import org.jboss.ws.common.integration.AbstractDeploymentAspect;
-import org.jboss.wsf.spi.SPIProvider;
-import org.jboss.wsf.spi.deployment.Deployment;
-import org.jboss.wsf.spi.deployment.Endpoint;
-import org.jboss.wsf.spi.management.EndpointMetrics;
-import org.jboss.wsf.spi.management.EndpointMetricsFactory;
-
-/**
- * A deployer that assigns the metrics to the Endpoint
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 20Jun2007
- */
-public class EndpointMetricsDeploymentAspect extends AbstractDeploymentAspect
-{
- @Override
- public void start(Deployment dep)
- {
- EndpointMetricsFactory factory = SPIProvider.getInstance().getSPI(EndpointMetricsFactory.class);
- for (Endpoint ep : dep.getService().getEndpoints())
- {
- EndpointMetrics metrics = factory.newEndpointMetrics();
- ep.setEndpointMetrics(metrics);
- }
- }
-}
10 years, 3 months
JBossWS SVN: r18756 - in container/wildfly80/branches/jbossws-wildfly800: server-integration/src/main/java/org/jboss/as/webservices/service and 2 other directories.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2014-06-21 21:24:54 -0400 (Sat, 21 Jun 2014)
New Revision: 18756
Modified:
container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/deployers/AbstractIntegrationProcessorJAXWS.java
container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/deployers/WSIntegrationProcessorJAXWS_POJO.java
container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/service/EndpointService.java
container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/resources/META-INF/stack-agnostic-deployment-aspects.xml
container/wildfly80/branches/jbossws-wildfly800/tests-integration/src/main/java/org/jboss/as/webservices/deployer/RemoteDeployer.java
Log:
[JBWS-3733]:Add endpointMetrics in EndpointService
Modified: container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/deployers/AbstractIntegrationProcessorJAXWS.java
===================================================================
--- container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/deployers/AbstractIntegrationProcessorJAXWS.java 2014-06-22 01:24:38 UTC (rev 18755)
+++ container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/deployers/AbstractIntegrationProcessorJAXWS.java 2014-06-22 01:24:54 UTC (rev 18756)
@@ -81,7 +81,7 @@
ROOT_LOGGER.skippingAnnotationProcessing(unit.getName());
} else {
for (final DotName dotName : dotNames) {
- final List<AnnotationInstance> wsAnnotations = index.getAnnotations(dotName);
+ /*final List<AnnotationInstance> wsAnnotations = index.getAnnotations(dotName);
if (!wsAnnotations.isEmpty()) {
for (final AnnotationInstance wsAnnotation : wsAnnotations) {
final AnnotationTarget target = wsAnnotation.target();
@@ -92,7 +92,22 @@
}
}
}
- }
+ }*/
+ processAnnotations(unit, dotName, index);
+
+ if (unit.getParent() != null && DeploymentTypeMarker.isType(DeploymentType.EAR,
+ unit.getParent())) {
+ final CompositeIndex parentIndex = unit.getParent()
+ .getAttachment(
+ Attachments.COMPOSITE_ANNOTATION_INDEX);
+
+ if (parentIndex != null) {
+
+ processAnnotations(unit, dotName, parentIndex);
+
+ }
+
+ }
}
}
}
@@ -103,7 +118,33 @@
}
protected abstract void processAnnotation(final DeploymentUnit unit, final ClassInfo classInfo, final AnnotationInstance wsAnnotation, final CompositeIndex compositeIndex) throws DeploymentUnitProcessingException;
+
+ private void processAnnotations(final DeploymentUnit unit, final DotName dotName, final CompositeIndex index)
+ throws DeploymentUnitProcessingException {
+ final List<AnnotationInstance> wsAnnotations = index.getAnnotations(dotName);
+
+ if (!wsAnnotations.isEmpty()) {
+
+ for (final AnnotationInstance wsAnnotation : wsAnnotations) {
+
+ final AnnotationTarget target = wsAnnotation.target();
+
+ if (target instanceof ClassInfo) {
+
+ final ClassInfo classInfo = (ClassInfo) target;
+
+ if (isJaxwsEndpoint(classInfo, index)) {
+
+ processAnnotation(unit, classInfo, wsAnnotation, index);
+
+ }
+
+ }
+
+ }
+ }
+ }
static ComponentDescription createComponentDescription(final DeploymentUnit unit, final String componentName, final String componentClassName, final String dependsOnEndpointClassName) {
final EEModuleDescription moduleDescription = getRequiredAttachment(unit, EE_MODULE_DESCRIPTION);
// JBoss WEB processors may install fake components for WS endpoints - removing them forcibly
Modified: container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/deployers/WSIntegrationProcessorJAXWS_POJO.java
===================================================================
--- container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/deployers/WSIntegrationProcessorJAXWS_POJO.java 2014-06-22 01:24:38 UTC (rev 18755)
+++ container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/deployers/WSIntegrationProcessorJAXWS_POJO.java 2014-06-22 01:24:54 UTC (rev 18756)
@@ -35,6 +35,9 @@
import java.util.List;
import org.jboss.as.ee.component.ComponentDescription;
+import org.jboss.as.ee.structure.DeploymentType;
+import org.jboss.as.ee.structure.DeploymentTypeMarker;
+import org.jboss.as.server.deployment.Attachments;
import org.jboss.as.server.deployment.DeploymentUnit;
import org.jboss.as.server.deployment.DeploymentUnitProcessingException;
import org.jboss.as.server.deployment.annotation.CompositeIndex;
@@ -89,14 +92,25 @@
jaxwsDeployment.addEndpoint(new POJOEndpoint(endpointName, endpointClassName, pojoViewName, urlPattern));
}
}
- if (!found) {
- // JSR 109, version 1.3 final spec, section 5.3.2.1 javax.jws.WebService annotation
- final ComponentDescription pojoComponent = createComponentDescription(unit, endpointClassName, endpointClassName, endpointClassName);
- final ServiceName pojoViewName = registerView(pojoComponent, endpointClassName);
- // register POJO endpoint
- final String urlPattern = getUrlPattern(classInfo);
- jaxwsDeployment.addEndpoint(new POJOEndpoint(endpointClassName, pojoViewName, urlPattern));
- }
+ DeploymentUnit parentUnit = unit.getParent();
+
+ boolean isEarIndex = parentUnit != null && DeploymentTypeMarker.isType(DeploymentType.EAR, parentUnit)
+ && parentUnit.getAttachment(Attachments.COMPOSITE_ANNOTATION_INDEX) == compositeIndex;
+
+ if (!found && !isEarIndex) {
+
+ // JSR 109, version 1.3 final spec, section 5.3.2.1
+ // javax.jws.WebService annotation
+ final ComponentDescription pojoComponent = createComponentDescription(
+ unit, endpointClassName, endpointClassName,
+ endpointClassName);
+ final ServiceName pojoViewName = registerView(pojoComponent,
+ endpointClassName);
+ // register POJO endpoint
+ final String urlPattern = getUrlPattern(classInfo);
+ jaxwsDeployment.addEndpoint(new POJOEndpoint(endpointClassName,
+ pojoViewName, urlPattern));
+ }
}
}
Modified: container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/service/EndpointService.java
===================================================================
--- container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/service/EndpointService.java 2014-06-22 01:24:38 UTC (rev 18755)
+++ container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/java/org/jboss/as/webservices/service/EndpointService.java 2014-06-22 01:24:54 UTC (rev 18756)
@@ -63,9 +63,11 @@
import org.jboss.ws.common.management.AbstractServerConfig;
import org.jboss.ws.common.management.ManagedEndpoint;
import org.jboss.ws.common.monitoring.ManagedRecordProcessor;
+import org.jboss.wsf.spi.SPIProvider;
import org.jboss.wsf.spi.deployment.Deployment;
import org.jboss.wsf.spi.deployment.Endpoint;
import org.jboss.wsf.spi.deployment.EndpointType;
+import org.jboss.wsf.spi.management.EndpointMetricsFactory;
import org.jboss.wsf.spi.security.EJBMethodSecurityAttributeProvider;
/**
@@ -114,6 +116,8 @@
for (final RecordProcessor processor : processors) {
registerRecordProcessor(processor, endpoint);
}
+ final EndpointMetricsFactory factory = SPIProvider.getInstance().getSPI(EndpointMetricsFactory.class);
+ endpoint.setEndpointMetrics(factory.newEndpointMetrics());
registerEndpoint(endpoint);
endpoint.getLifecycleHandler().start(endpoint);
}
Modified: container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/resources/META-INF/stack-agnostic-deployment-aspects.xml
===================================================================
--- container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/resources/META-INF/stack-agnostic-deployment-aspects.xml 2014-06-22 01:24:38 UTC (rev 18755)
+++ container/wildfly80/branches/jbossws-wildfly800/server-integration/src/main/resources/META-INF/stack-agnostic-deployment-aspects.xml 2014-06-22 01:24:54 UTC (rev 18756)
@@ -48,10 +48,6 @@
<property name="last" class="boolean">true</property>
</deploymentAspect>
- <deploymentAspect class="org.jboss.ws.common.deployment.EndpointMetricsDeploymentAspect">
- <property name="provides" class="java.lang.String">EndpointMetrics</property>
- </deploymentAspect>
-
<deploymentAspect class="org.jboss.ws.common.deployment.EndpointNameDeploymentAspect">
<property name="requires" class="java.lang.String">URLPattern</property>
<property name="provides" class="java.lang.String">EndpointName</property>
Modified: container/wildfly80/branches/jbossws-wildfly800/tests-integration/src/main/java/org/jboss/as/webservices/deployer/RemoteDeployer.java
===================================================================
--- container/wildfly80/branches/jbossws-wildfly800/tests-integration/src/main/java/org/jboss/as/webservices/deployer/RemoteDeployer.java 2014-06-22 01:24:38 UTC (rev 18755)
+++ container/wildfly80/branches/jbossws-wildfly800/tests-integration/src/main/java/org/jboss/as/webservices/deployer/RemoteDeployer.java 2014-06-22 01:24:54 UTC (rev 18756)
@@ -442,6 +442,7 @@
} else {
throw new Exception("Operation not successful; outcome = " + result.get(OUTCOME));
}
+
}
private static CallbackHandler getCallbackHandler() {
10 years, 3 months
JBossWS SVN: r18755 - in container/wildfly81/branches/jbossws-wildfly810/server-integration/src/main: resources/META-INF and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2014-06-21 21:24:38 -0400 (Sat, 21 Jun 2014)
New Revision: 18755
Modified:
container/wildfly81/branches/jbossws-wildfly810/server-integration/src/main/java/org/jboss/as/webservices/service/EndpointService.java
container/wildfly81/branches/jbossws-wildfly810/server-integration/src/main/resources/META-INF/stack-agnostic-deployment-aspects.xml
Log:
[JBWS-3733]:Add endpointMetrics in EndpointService
Modified: container/wildfly81/branches/jbossws-wildfly810/server-integration/src/main/java/org/jboss/as/webservices/service/EndpointService.java
===================================================================
--- container/wildfly81/branches/jbossws-wildfly810/server-integration/src/main/java/org/jboss/as/webservices/service/EndpointService.java 2014-06-20 17:34:46 UTC (rev 18754)
+++ container/wildfly81/branches/jbossws-wildfly810/server-integration/src/main/java/org/jboss/as/webservices/service/EndpointService.java 2014-06-22 01:24:38 UTC (rev 18755)
@@ -63,9 +63,11 @@
import org.jboss.ws.common.management.AbstractServerConfig;
import org.jboss.ws.common.management.ManagedEndpoint;
import org.jboss.ws.common.monitoring.ManagedRecordProcessor;
+import org.jboss.wsf.spi.SPIProvider;
import org.jboss.wsf.spi.deployment.Deployment;
import org.jboss.wsf.spi.deployment.Endpoint;
import org.jboss.wsf.spi.deployment.EndpointType;
+import org.jboss.wsf.spi.management.EndpointMetricsFactory;
import org.jboss.wsf.spi.security.EJBMethodSecurityAttributeProvider;
/**
@@ -114,6 +116,8 @@
for (final RecordProcessor processor : processors) {
registerRecordProcessor(processor, endpoint);
}
+ final EndpointMetricsFactory factory = SPIProvider.getInstance().getSPI(EndpointMetricsFactory.class);
+ endpoint.setEndpointMetrics(factory.newEndpointMetrics());
registerEndpoint(endpoint);
endpoint.getLifecycleHandler().start(endpoint);
}
Modified: container/wildfly81/branches/jbossws-wildfly810/server-integration/src/main/resources/META-INF/stack-agnostic-deployment-aspects.xml
===================================================================
--- container/wildfly81/branches/jbossws-wildfly810/server-integration/src/main/resources/META-INF/stack-agnostic-deployment-aspects.xml 2014-06-20 17:34:46 UTC (rev 18754)
+++ container/wildfly81/branches/jbossws-wildfly810/server-integration/src/main/resources/META-INF/stack-agnostic-deployment-aspects.xml 2014-06-22 01:24:38 UTC (rev 18755)
@@ -48,10 +48,6 @@
<property name="last" class="boolean">true</property>
</deploymentAspect>
- <deploymentAspect class="org.jboss.ws.common.deployment.EndpointMetricsDeploymentAspect">
- <property name="provides" class="java.lang.String">EndpointMetrics</property>
- </deploymentAspect>
-
<deploymentAspect class="org.jboss.ws.common.deployment.EndpointNameDeploymentAspect">
<property name="requires" class="java.lang.String">URLPattern</property>
<property name="provides" class="java.lang.String">EndpointName</property>
10 years, 3 months
JBossWS SVN: r18754 - in stack/cxf/trunk/modules: testsuite/shared-tests/src/test/ant-import and 19 other directories.
by jbossws-commits@lists.jboss.org
Author: asoldano
Date: 2014-06-20 13:34:46 -0400 (Fri, 20 Jun 2014)
New Revision: 18754
Added:
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/asynchronous/DeploymentArchive.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/DeploymentArchive.java
Modified:
stack/cxf/trunk/modules/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/ant-import/build-samples-jaxws.xml
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/addressing/AddressingStatefulTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/RetailSampleTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/asynchronous/AsynchronousDispatchTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/asynchronous/AsynchronousProxyTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextEJBTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextJSETestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/eardeployment/EarTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/eardeployment/WSDLPublishTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionEJB3TestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionServletTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/handlerchain/HandlerChainTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/httpbinding/HttpJAXBTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/httpbinding/HttpPayloadTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/jaxbintros/JAXBIntroTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/logicalhandler/LogicalHandlerJAXBTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/logicalhandler/LogicalHandlerSourceTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/oneway/OneWayTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/provider/ProviderJAXBTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/provider/ProviderMessageTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/provider/ProviderPayloadTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/securityDomain/PermitAllTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/securityDomain/SecurityDomainTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/soapbinding/SOAPBindingTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/swaref/SWARefTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/webmethod/WebMethodTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/webparam/WebParamTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/webresult/WebResultTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/MTOMFeatureTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPBareTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPHandlerTestCase.java
stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPWrappedTestCase.java
Log:
[JBWS-3711] ShrinkWrap conversion WIP, samples shared tests...
Modified: stack/cxf/trunk/modules/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java
===================================================================
--- stack/cxf/trunk/modules/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -412,6 +412,11 @@
archive.as(ZipExporter.class).exportTo(file, true);
return archive;
}
+
+ public String getName()
+ {
+ return archive.getName();
+ }
private File assertArchiveDirExists(String testArchiveDir)
{
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/ant-import/build-samples-jaxws.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/ant-import/build-samples-jaxws.xml 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/ant-import/build-samples-jaxws.xml 2014-06-20 17:34:46 UTC (rev 18754)
@@ -50,284 +50,6 @@
</fileset>
</jar>
- <!-- jaxws-samples-addressing -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-samples-wsaddressing.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/addressing/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/addressing/StatefulEndpointImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/addressing/StatefulEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/addressing/ServerHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/addressing/jaxws-handlers.xml"/>
- </classes>
- </war>
-
- <!-- jaxws-samples-asynchronous -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-samples-asynchronous.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/asynchronous/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/asynchronous/Endpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/asynchronous/EndpointBean.class"/>
- </classes>
- </war>
-
- <!-- jaxws-samples-context -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-samples-context-jse.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/context/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/context/EndpointJSE.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/samples/context/WEB-INF">
- <include name="jboss-web.xml"/>
- </webinf>
- <zipfileset
- dir="${tests.output.dir}/test-resources/jaxws/samples/context/META-INF"
- prefix="META-INF">
- <include name="permissions.xml"/>
- </zipfileset>
- <manifest>
- <attribute name="Dependencies" value="org.jboss.ws.common"/>
- </manifest>
- </war>
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-context.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/context/EndpointEJB.class"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/samples/context/META-INF">
- <include name="jboss.xml"/>
- </metainf>
- <manifest>
- <attribute name="Dependencies" value="org.jboss.ws.common"/>
- </manifest>
- </jar>
-
- <!-- jaxws-samples-eardeployment -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-samples-eardeployment-pojo.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/eardeployment/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/eardeployment/JSEBean.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/eardeployment/SupportServlet.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/samples/eardeployment/WEB-INF">
- <include name="jboss-web.xml"/>
- <include name="wsdl/**"/>
- </webinf>
- <manifest>
- <attribute name="Dependencies" value="org.jboss.logging,org.jboss.ws.common"/>
- </manifest>
- </war>
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-eardeployment-ejb3.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/eardeployment/EJB3Bean.class"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/samples/eardeployment/WEB-INF">
- <include name="wsdl/**"/>
- </metainf>
- <manifest>
- <attribute name="Dependencies" value="org.jboss.logging"/>
- </manifest>
- </jar>
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-eardeployment.ear">
- <fileset dir="${tests.output.dir}/test-libs">
- <include name="jaxws-samples-eardeployment-ejb3.jar"/>
- <include name="jaxws-samples-eardeployment-pojo.war"/>
- </fileset>
- <zipfileset
- dir="${tests.output.dir}/test-resources/jaxws/samples/eardeployment/META-INF"
- prefix="META-INF">
- <include name="permissions.xml"/>
- </zipfileset>
- </jar>
-
- <!-- jaxws-samples-exception -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-samples-exception-jse.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/exception/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/exception/server/jaxws/**"/>
- <include name="org/jboss/test/ws/jaxws/samples/exception/server/EndpointImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/exception/server/SOAP12EndpointImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/exception/server/SOAP12ExceptionEndpointImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/exception/server/UserException.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/exception/server/ServerHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/exception/server/jaxws-handlers-server.xml"/>
- </classes>
- <zipfileset
- dir="${tests.output.dir}/test-resources/jaxws/samples/exception/META-INF"
- prefix="META-INF">
- <include name="permissions.xml"/>
- </zipfileset>
- </war>
- <jar destfile="${tests.output.dir}/test-libs/jaxws-samples-exception.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/exception/server/jaxws/**"/>
- <include name="org/jboss/test/ws/jaxws/samples/exception/server/EndpointImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/exception/server/SOAP12EndpointImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointEJB3Impl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/exception/server/SOAP12ExceptionEndpointEJB3Impl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/exception/server/UserException.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/exception/server/ServerHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/exception/server/jaxws-handlers-server.xml"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/samples/exception/META-INF">
- <include name="permissions.xml"/>
- </metainf>
- </jar>
- <war warfile="${tests.output.dir}/test-libs/jaxws-samples-exception-client.war" needxmlfile='false'>
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/exception/client/**"/>
- <include name="org/jboss/test/ws/jaxws/samples/exception/ExceptionHelper.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/exception/SOAP12ExceptionHelper.class"/>
- <include name="org/jboss/test/helper/ClientHelper.class"/>
- <include name="org/jboss/test/helper/TestServlet.class"/>
- </classes>
- </war>
-
- <!-- jaxws-samples-handlerchain -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-samples-handlerchain.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/handlerchain/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/handlerchain/EndpointImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/handlerchain/Endpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/handlerchain/*Handler.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/handlerchain/jaxws-handlers-server.xml"/>
- </classes>
- </war>
-
- <!-- jaxws-samples-httpbinding -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-samples-httpbinding-jaxb.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/httpbinding/jaxb/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/httpbinding/ProviderBeanJAXB.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/httpbinding/WebServiceEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/httpbinding/UserType.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/samples/httpbinding/shared">
- <include name="wsdl/HttpBinding.wsdl"/>
- </webinf>
- <zipfileset dir="${tests.output.dir}/test-resources/jaxws/samples/httpbinding/jaxb/META-INF" prefix="META-INF">
- <include name="permissions.xml"/>
- </zipfileset>
- </war>
- <war warfile="${tests.output.dir}/test-libs/jaxws-samples-httpbinding-payload.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/httpbinding/payload/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/httpbinding/ProviderBeanPayload.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/httpbinding/LogicalSourceHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/httpbinding/httpbinding-handlers.xml"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/samples/httpbinding/shared">
- <include name="wsdl/HttpBinding.wsdl"/>
- </webinf>
- </war>
-
- <!-- jaxws-samples-jaxbintros -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-samples-jaxbintros.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/jaxbintros/Endpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/jaxbintros/EndpointBean.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/jaxbintros/UserType.class"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/samples/jaxbintros/META-INF">
- <include name="**/*" />
- </metainf>
- </jar>
-
- <!-- jaxws-samples-logicalhandler -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-samples-logicalhandler-source.war"
- webxml="${tests.output.dir}/test-resources/jaxws/samples/logicalhandler/WEB-INF/web-source.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/SOAPEndpointSourceDocImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/SOAPEndpointSourceRpcImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/LogicalSourceHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/ProtocolHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/PortHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/Echo.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/EchoResponse.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/jaxws-server-source-handlers.xml"/>
- </classes>
- </war>
- <war warfile="${tests.output.dir}/test-libs/jaxws-samples-logicalhandler-jaxb.war"
- webxml="${tests.output.dir}/test-resources/jaxws/samples/logicalhandler/WEB-INF/web-jaxb.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/SOAPEndpointJAXBImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/SOAPEndpointJAXB.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/LogicalJAXBHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/ProtocolHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/PortHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/Echo.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/EchoResponse.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/ObjectFactory.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/logicalhandler/jaxws-server-jaxb-handlers.xml"/>
- </classes>
- <manifest>
- <attribute name="Dependencies" value="com.sun.xml.bind export services"/>
- </manifest>
- </war>
-
- <!-- jaxws-samples-oneway -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-samples-oneway.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/oneway/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/oneway/PingEndpointImpl.class"/>
- </classes>
- </war>
-
- <!-- jaxws-samples-provider -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-samples-provider-jaxb.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/provider/jaxb/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/provider/ProviderBeanJAXB.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/provider/UserType.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/samples/provider/jaxb/WEB-INF">
- <include name="wsdl/Provider.wsdl"/>
- </webinf>
- <zipfileset
- dir="${tests.output.dir}/test-resources/jaxws/samples/provider/jaxb/META-INF"
- prefix="META-INF">
- <include name="permissions.xml"/>
- </zipfileset>
- </war>
- <war warfile="${tests.output.dir}/test-libs/jaxws-samples-provider-message.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/provider/message/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/provider/ProviderBeanMessage.class"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/samples/provider/message/WEB-INF">
- <include name="wsdl/Provider.wsdl"/>
- </webinf>
- </war>
- <war warfile="${tests.output.dir}/test-libs/jaxws-samples-provider-payload.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/provider/payload/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/provider/ProviderBeanPayload.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/provider/LogicalSourceHandler.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/provider/provider-handlers.xml"/>
- </classes>
- <webinf dir="${tests.output.dir}/test-resources/jaxws/samples/provider/payload/WEB-INF">
- <include name="wsdl/Provider.wsdl"/>
- </webinf>
- </war>
-
- <!-- jaxws-samples-retail -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-retail.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/advanced/retail/**/*.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/advanced/retail/jaxws-handler.xml"/>
- </fileset>
- <metainf dir="${tests.output.dir}/test-resources/jaxws/samples/advanced/retail/META-INF">
- <include name="wsdl/*"/>
- <include name="permissions.xml"/>
- </metainf>
- <manifest>
- <attribute name="Dependencies" value="org.jboss.logging"/>
- </manifest>
- </jar>
-
- <!-- jaxws-samples-securityDomain -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-samples-securityDomain.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/securityDomain/SecureEndpointImpl.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-samples-securityDomain-permitall -->
- <jar destfile="${tests.output.dir}/test-libs/jaxws-samples-securityDomain-permitall.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/securityDomain/PermitAllSecureEndpoint*Impl.class"/>
- </fileset>
- </jar>
-
<!-- jaxws-samples-serviceref -->
<war warfile="${tests.output.dir}/test-libs/jaxws-samples-serviceref.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/serviceref/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/test-classes">
@@ -384,61 +106,6 @@
</metainf>
</jar>
- <!-- jaxws-samples-soapbinding -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-samples-soapbinding.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/soapbinding/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/soapbinding/jaxws/**"/>
- <include name="org/jboss/test/ws/jaxws/samples/soapbinding/DocBare.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/soapbinding/DocWrapped.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/soapbinding/ExampleSEI.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/soapbinding/DocBareServiceImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/soapbinding/DocWrappedServiceImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/soapbinding/ExampleServiceImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/soapbinding/SubmitBareRequest.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/soapbinding/SubmitBareResponse.class"/>
- </classes>
- </war>
-
- <!-- jaxws-samples-swaref -->
- <jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-swaref.jar">
- <fileset dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/swaref/jaxws/**"/>
- <include name="org/jboss/test/ws/jaxws/samples/swaref/BareEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/swaref/BareEndpointImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/swaref/RpcLitEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/swaref/RpcLitEndpointImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/swaref/WrappedEndpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/swaref/WrappedEndpointImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/swaref/DocumentPayload*.class"/>
- </fileset>
- </jar>
-
- <!-- jaxws-samples-webmethod -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-samples-webmethod.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/webmethod/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/webmethod/Endpoint.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/webmethod/EndpointImpl.class"/>
- </classes>
- </war>
-
- <!-- jaxws-samples-webparam -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-samples-webparam.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/webparam/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/webparam/PingServiceImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/webparam/PingDocument.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/webparam/SecurityHeader.class"/>
- </classes>
- </war>
-
- <!-- jaxws-samples-webresult -->
- <war warfile="${tests.output.dir}/test-libs/jaxws-samples-webresult.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/webresult/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/webresult/CustomerServiceImpl.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/webresult/CustomerRecord.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/webresult/USAddress.class"/>
- </classes>
- </war>
-
<!-- jaxws-samples-webservice -->
<war warfile="${tests.output.dir}/test-libs/jaxws-samples-webservice01-jse.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/webservice/WEB-INF01/web.xml">
<classes dir="${tests.output.dir}/test-classes">
@@ -560,16 +227,6 @@
</webinf>
</war>
- <!-- jaxws-samples-xop-doclit -->
- <war jarfile="${tests.output.dir}/test-libs/jaxws-samples-xop-doclit.war" webxml="${tests.output.dir}/test-resources/jaxws/samples/xop/doclit/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/test-classes">
- <include name="org/jboss/test/ws/jaxws/samples/xop/doclit/*.class"/>
- <include name="org/jboss/test/ws/jaxws/samples/xop/doclit/jaxws/**"/>
- <include name="org/jboss/test/ws/jaxws/samples/xop/doclit/jaxws-handlers-server.xml"/>
- <exclude name="org/jboss/test/ws/jaxws/samples/xop/doclit/*TestCase.class"/>
- </classes>
- </war>
-
<!-- management-recording-as7.jar -->
<jar destfile="${tests.output.dir}/test-libs/management-recording-as7.jar">
<fileset dir="${tests.output.dir}/test-classes">
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/addressing/AddressingStatefulTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/addressing/AddressingStatefulTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/addressing/AddressingStatefulTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -21,7 +21,10 @@
*/
package org.jboss.test.ws.jaxws.samples.addressing;
+import java.io.File;
import java.net.URL;
+import java.util.LinkedList;
+import java.util.List;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
@@ -31,6 +34,8 @@
import org.jboss.wsf.test.CleanupOperation;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
/**
@@ -45,9 +50,24 @@
private static AddressingPort port1;
private static AddressingPort port2;
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.WarDeployment("jaxws-samples-wsaddressing.war") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.addressing.ServerHandler.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.addressing.StatefulEndpoint.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.addressing.StatefulEndpointImpl.class)
+ .addAsResource("org/jboss/test/ws/jaxws/samples/addressing/jaxws-handlers.xml")
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/addressing/WEB-INF/web.xml"));
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
+
public static Test suite()
{
- return new JBossWSTestSetup(AddressingStatefulTestCase.class, "jaxws-samples-wsaddressing.war", new CleanupOperation() {
+ return new JBossWSTestSetup(AddressingStatefulTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()), new CleanupOperation() {
@Override
public void cleanUp() {
port1 = null;
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/RetailSampleTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/RetailSampleTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/RetailSampleTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -21,14 +21,20 @@
*/
package org.jboss.test.ws.jaxws.samples.advanced.retail;
+import java.io.File;
import java.net.URL;
+import java.util.LinkedList;
+import java.util.List;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import junit.framework.Test;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
/**
@@ -37,22 +43,49 @@
*/
public class RetailSampleTestCase extends JBossWSTest {
- public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-samples-retail/OrderMgmtService/OrderMgmtBean";
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.JarDeployment("jaxws-samples-retail.jar") { {
+ archive
+ .setManifest(new StringAsset("Manifest-Version: 1.0\n"
+ + "Dependencies: org.jboss.logging\n"))
+ .addClass(org.jboss.test.ws.jaxws.samples.advanced.retail.Customer.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.advanced.retail.Order.OrderState.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.advanced.retail.Order.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.advanced.retail.OrderAdmin.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.advanced.retail.OrderItem.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.advanced.retail.OrderLineRequest.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.advanced.retail.OrderLineResponse.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.advanced.retail.OrderMgmt.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.advanced.retail.OrderMgmtBean.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.advanced.retail.OrderStatus.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.advanced.retail.RetailSampleTestCase.class)
+ .addPackage("org.jboss.test.ws.jaxws.samples.advanced.retail.cc")
+ .addClass(org.jboss.test.ws.jaxws.samples.advanced.retail.handler.SOAPMessageTrace.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.advanced.retail.handler.Timer.class)
+ .addAsResource("org/jboss/test/ws/jaxws/samples/advanced/retail/jaxws-handler.xml")
+ .addPackage("org.jboss.test.ws.jaxws.samples.advanced.retail.profile")
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/advanced/retail/META-INF/permissions.xml"), "permissions.xml")
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/advanced/retail/META-INF/wsdl/CCVerificationService.wsdl"), "wsdl/CCVerificationService.wsdl")
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/advanced/retail/META-INF/wsdl/OrderMgmtService.wsdl"), "wsdl/OrderMgmtService.wsdl")
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/advanced/retail/META-INF/wsdl/ProfileMgmtService.wsdl"), "wsdl/ProfileMgmtService.wsdl");
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
- private OrderMgmt orderMgmtWS;
-
public static Test suite()
{
- return new JBossWSTestSetup(RetailSampleTestCase.class, "jaxws-samples-retail.jar");
+ return new JBossWSTestSetup(RetailSampleTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
}
- protected void setUp() throws Exception
+ protected OrderMgmt getPort() throws Exception
{
QName serviceName = new QName("http://retail.advanced.samples.jaxws.ws.test.jboss.org/", "OrderMgmtService");
- URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS+"?wsdl");
+ URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-samples-retail/OrderMgmtService/OrderMgmtBean?wsdl");
Service service = Service.create(wsdlURL, serviceName);
- orderMgmtWS = (OrderMgmt)service.getPort(OrderMgmt.class);
+ return (OrderMgmt)service.getPort(OrderMgmt.class);
}
public void testWebService() throws Exception
@@ -66,7 +99,7 @@
order.setOrderNum(12345);
order.getItems().add( new OrderItem("Introduction to Web Services", 39.99) );
- OrderStatus result = orderMgmtWS.prepareOrder(order);
+ OrderStatus result = getPort().prepareOrder(order);
assertNotNull("Result was null", result);
assertEquals("Prepared", result.getStatus());
}
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/asynchronous/AsynchronousDispatchTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/asynchronous/AsynchronousDispatchTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/asynchronous/AsynchronousDispatchTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -59,7 +59,7 @@
public static Test suite()
{
- return new JBossWSTestSetup(AsynchronousDispatchTestCase.class, "jaxws-samples-asynchronous.war");
+ return new JBossWSTestSetup(AsynchronousDispatchTestCase.class, DeploymentArchive.NAME);
}
public void testInvokeAsynch() throws Exception
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/asynchronous/AsynchronousProxyTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/asynchronous/AsynchronousProxyTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/asynchronous/AsynchronousProxyTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -50,7 +50,7 @@
public static Test suite()
{
- return new JBossWSTestSetup(AsynchronousProxyTestCase.class, "jaxws-samples-asynchronous.war");
+ return new JBossWSTestSetup(AsynchronousProxyTestCase.class, DeploymentArchive.NAME);
}
public void testInvokeSync() throws Exception
Added: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/asynchronous/DeploymentArchive.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/asynchronous/DeploymentArchive.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/asynchronous/DeploymentArchive.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2014, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.asynchronous;
+
+import java.io.File;
+
+import org.jboss.wsf.test.JBossWSTestHelper;
+
+public final class DeploymentArchive
+{
+ public static final String NAME = getName();
+
+ private static String getName() {
+ return JBossWSTestHelper.writeToFile(new JBossWSTestHelper.WarDeployment("jaxws-samples-asynchronous.war") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.asynchronous.Endpoint.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.asynchronous.EndpointBean.class)
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/asynchronous/WEB-INF/web.xml"));
+ }
+ });
+ }
+
+ private DeploymentArchive() {
+ //NO OP
+ }
+}
Property changes on: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/asynchronous/DeploymentArchive.java
___________________________________________________________________
Added: svn:keywords
+ Rev Date
Added: svn:eol-style
+ native
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextEJBTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextEJBTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextEJBTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -21,7 +21,10 @@
*/
package org.jboss.test.ws.jaxws.samples.context;
+import java.io.File;
import java.net.URL;
+import java.util.LinkedList;
+import java.util.List;
import javax.xml.namespace.QName;
import javax.xml.ws.BindingProvider;
@@ -29,8 +32,11 @@
import junit.framework.Test;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
import org.jboss.wsf.test.CleanupOperation;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
/**
@@ -43,9 +49,22 @@
{
private static Endpoint port;
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.JarDeployment("jaxws-samples-context.jar") { {
+ archive
+ .setManifest(new StringAsset("Manifest-Version: 1.0\n"
+ + "Dependencies: org.jboss.ws.common\n"))
+ .addClass(org.jboss.test.ws.jaxws.samples.context.EndpointEJB.class)
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/context/META-INF/jboss.xml"), "jboss.xml");
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
+
public static Test suite()
{
- return new JBossWSTestSetup(WebServiceContextEJBTestCase.class, "jaxws-samples-context.jar", true, new CleanupOperation() {
+ return new JBossWSTestSetup(WebServiceContextEJBTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()), true, new CleanupOperation() {
@Override
public void cleanUp() {
port = null;
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextJSETestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextJSETestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextJSETestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -21,7 +21,10 @@
*/
package org.jboss.test.ws.jaxws.samples.context;
+import java.io.File;
import java.net.URL;
+import java.util.LinkedList;
+import java.util.List;
import javax.xml.namespace.QName;
import javax.xml.ws.BindingProvider;
@@ -29,8 +32,11 @@
import junit.framework.Test;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
import org.jboss.wsf.test.CleanupOperation;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
/**
@@ -43,9 +49,24 @@
{
private static Endpoint port;
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.WarDeployment("jaxws-samples-context-jse.war") { {
+ archive
+ .setManifest(new StringAsset("Manifest-Version: 1.0\n"
+ + "Dependencies: org.jboss.ws.common\n"))
+ .addClass(org.jboss.test.ws.jaxws.samples.context.EndpointJSE.class)
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/context/META-INF/permissions.xml"), "permissions.xml")
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/context/WEB-INF/jboss-web.xml"), "jboss-web.xml")
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/context/WEB-INF/web.xml"));
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
+
public static Test suite()
{
- return new JBossWSTestSetup(WebServiceContextJSETestCase.class, "jaxws-samples-context-jse.war", true, new CleanupOperation() {
+ return new JBossWSTestSetup(WebServiceContextJSETestCase.class, JBossWSTestHelper.writeToFile(createDeployments()), true, new CleanupOperation() {
@Override
public void cleanUp() {
port = null;
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/eardeployment/EarTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/eardeployment/EarTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/eardeployment/EarTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -21,6 +21,7 @@
*/
package org.jboss.test.ws.jaxws.samples.eardeployment;
+import java.io.File;
import java.net.URL;
import javax.wsdl.Definition;
@@ -32,7 +33,9 @@
import junit.framework.Test;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
import org.jboss.wsf.test.JBossWSTestSetup;
/**
@@ -45,9 +48,48 @@
*/
public class EarTestCase extends JBossWSTest
{
+ public static final class EarTestCaseDeploymentArchive {
+ public static final String NAME = getName();
+
+ private static String getName() {
+ JBossWSTestHelper.writeToFile(new JBossWSTestHelper.JarDeployment("jaxws-samples-eardeployment-ejb3.jar") { {
+ archive
+ .setManifest(new StringAsset("Manifest-Version: 1.0\n"
+ + "Dependencies: org.jboss.logging\n"))
+ .addClass(org.jboss.test.ws.jaxws.samples.eardeployment.EJB3Bean.class)
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/WEB-INF/wsdl/Endpoint.wsdl"), "wsdl/Endpoint.wsdl")
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/WEB-INF/wsdl/TestService.xsd"), "wsdl/TestService.xsd");
+ }
+ });
+ JBossWSTestHelper.writeToFile(new JBossWSTestHelper.WarDeployment("jaxws-samples-eardeployment-pojo.war") { {
+ archive
+ .setManifest(new StringAsset("Manifest-Version: 1.0\n"
+ + "Dependencies: org.jboss.logging,org.jboss.ws.common\n"))
+ .addClass(org.jboss.test.ws.jaxws.samples.eardeployment.JSEBean.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.eardeployment.SupportServlet.class)
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/WEB-INF/jboss-web.xml"), "jboss-web.xml")
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/WEB-INF/wsdl/Endpoint.wsdl"), "wsdl/Endpoint.wsdl")
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/WEB-INF/wsdl/TestService.xsd"), "wsdl/TestService.xsd")
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/eardeployment/WEB-INF/web.xml"));
+ }
+ });
+ return JBossWSTestHelper.writeToFile(new JBossWSTestHelper.JarDeployment("jaxws-samples-eardeployment.ear") { {
+ archive
+ .addManifest()
+ .addAsResource(new File(JBossWSTestHelper.getTestArchiveDir(), "jaxws-samples-eardeployment-ejb3.jar"))
+ .addAsResource(new File(JBossWSTestHelper.getTestArchiveDir(), "jaxws-samples-eardeployment-pojo.war"));
+ }
+ });
+ }
+
+ private EarTestCaseDeploymentArchive() {
+ //NO OP
+ }
+ }
+
public static Test suite()
{
- return new JBossWSTestSetup(EarTestCase.class, "jaxws-samples-eardeployment.ear");
+ return new JBossWSTestSetup(EarTestCase.class, EarTestCaseDeploymentArchive.NAME);
}
public void testEJB3Endpoint() throws Exception
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/eardeployment/WSDLPublishTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/eardeployment/WSDLPublishTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/eardeployment/WSDLPublishTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -31,6 +31,7 @@
import junit.framework.Test;
+import org.jboss.test.ws.jaxws.samples.eardeployment.EarTestCase.EarTestCaseDeploymentArchive;
import org.jboss.ws.common.IOUtils;
import org.jboss.wsf.test.JBossWSTest;
import org.jboss.wsf.test.JBossWSTestSetup;
@@ -49,7 +50,7 @@
public static Test suite()
{
testStart = System.currentTimeMillis();
- return new JBossWSTestSetup(WSDLPublishTestCase.class, "jaxws-samples-eardeployment.ear");
+ return new JBossWSTestSetup(WSDLPublishTestCase.class, EarTestCaseDeploymentArchive.NAME);
}
public void testEJB3Endpoint() throws Exception
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionEJB3TestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionEJB3TestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionEJB3TestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -21,8 +21,14 @@
*/
package org.jboss.test.ws.jaxws.samples.exception;
+import java.io.File;
+import java.util.LinkedList;
+import java.util.List;
+
import junit.framework.Test;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
/**
@@ -33,9 +39,35 @@
*/
public class ExceptionEJB3TestCase extends ExceptionTestCase
{
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.JarDeployment("jaxws-samples-exception.jar") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.EndpointImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.ExceptionEndpoint.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.ExceptionEndpointEJB3Impl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.SOAP12EndpointImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.SOAP12ExceptionEndpointEJB3Impl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.ServerHandler.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.UserException.class)
+ .addAsResource("org/jboss/test/ws/jaxws/samples/exception/server/jaxws-handlers-server.xml")
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.jaxws.ThrowApplicationException.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.jaxws.ThrowApplicationExceptionResponse.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.jaxws.ThrowRuntimeException.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.jaxws.ThrowRuntimeExceptionResponse.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.jaxws.ThrowSoapFaultException.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.jaxws.ThrowSoapFaultExceptionResponse.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.jaxws.UserExceptionBean.class)
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/exception/META-INF/permissions.xml"), "permissions.xml");
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
+
public static Test suite()
{
- return new JBossWSTestSetup(ExceptionEJB3TestCase.class, "jaxws-samples-exception.jar");
+ return new JBossWSTestSetup(ExceptionEJB3TestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
}
protected ExceptionHelper getHelper()
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionServletTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionServletTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionServletTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -21,19 +21,61 @@
*/
package org.jboss.test.ws.jaxws.samples.exception;
+import java.io.File;
import java.net.URL;
+import java.util.LinkedList;
+import java.util.List;
import junit.framework.Test;
import org.jboss.ws.common.IOUtils;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
public class ExceptionServletTestCase extends JBossWSTest
{
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.WarDeployment("jaxws-samples-exception-client.war") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.helper.ClientHelper.class)
+ .addClass(org.jboss.test.helper.TestServlet.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.ExceptionHelper.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.SOAP12ExceptionHelper.class)
+ .addPackage("org.jboss.test.ws.jaxws.samples.exception.client");
+ }
+ });
+ list.add(new JBossWSTestHelper.WarDeployment("jaxws-samples-exception-jse.war") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.EndpointImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.ExceptionEndpoint.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.ExceptionEndpointImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.SOAP12EndpointImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.SOAP12ExceptionEndpointImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.ServerHandler.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.UserException.class)
+ .addAsResource("org/jboss/test/ws/jaxws/samples/exception/server/jaxws-handlers-server.xml")
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.jaxws.ThrowApplicationException.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.jaxws.ThrowApplicationExceptionResponse.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.jaxws.ThrowRuntimeException.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.jaxws.ThrowRuntimeExceptionResponse.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.jaxws.ThrowSoapFaultException.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.jaxws.ThrowSoapFaultExceptionResponse.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.jaxws.UserExceptionBean.class)
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/exception/META-INF/permissions.xml"), "permissions.xml")
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/exception/WEB-INF/web.xml"));
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
+
public static Test suite()
{
- return new JBossWSTestSetup(ExceptionServletTestCase.class, "jaxws-samples-exception-jse.war, jaxws-samples-exception-client.war");
+ return new JBossWSTestSetup(ExceptionServletTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
}
public void testRuntimeException() throws Exception
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -22,11 +22,16 @@
package org.jboss.test.ws.jaxws.samples.exception;
import java.io.ByteArrayOutputStream;
+import java.io.File;
import java.io.PrintStream;
+import java.util.LinkedList;
+import java.util.List;
import junit.framework.Test;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
/**
@@ -36,9 +41,36 @@
*/
public class ExceptionTestCase extends JBossWSTest
{
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.WarDeployment("jaxws-samples-exception-jse-plain.war") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.EndpointImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.ExceptionEndpoint.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.ExceptionEndpointImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.SOAP12EndpointImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.SOAP12ExceptionEndpointImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.ServerHandler.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.UserException.class)
+ .addAsResource("org/jboss/test/ws/jaxws/samples/exception/server/jaxws-handlers-server.xml")
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.jaxws.ThrowApplicationException.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.jaxws.ThrowApplicationExceptionResponse.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.jaxws.ThrowRuntimeException.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.jaxws.ThrowRuntimeExceptionResponse.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.jaxws.ThrowSoapFaultException.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.jaxws.ThrowSoapFaultExceptionResponse.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.exception.server.jaxws.UserExceptionBean.class)
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/exception/META-INF/permissions.xml"), "permissions.xml")
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/exception/WEB-INF/web.xml"));
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
+
public static Test suite()
{
- return new JBossWSTestSetup(ExceptionTestCase.class, "jaxws-samples-exception-jse.war");
+ return new JBossWSTestSetup(ExceptionTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
}
public void testRuntimeException() throws Exception
@@ -123,11 +155,11 @@
protected ExceptionHelper getHelper()
{
- return new ExceptionHelper("http://" + getServerHost() + ":8080/jaxws-samples-exception-jse/ExceptionEndpointService");
+ return new ExceptionHelper("http://" + getServerHost() + ":8080/jaxws-samples-exception-jse-plain/ExceptionEndpointService");
}
protected SOAP12ExceptionHelper getSOAP12Helper()
{
- return new SOAP12ExceptionHelper("http://" + getServerHost() + ":8080/jaxws-samples-exception-jse/SOAP12ExceptionEndpointService");
+ return new SOAP12ExceptionHelper("http://" + getServerHost() + ":8080/jaxws-samples-exception-jse-plain/SOAP12ExceptionEndpointService");
}
}
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/handlerchain/HandlerChainTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/handlerchain/HandlerChainTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/handlerchain/HandlerChainTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -21,8 +21,10 @@
*/
package org.jboss.test.ws.jaxws.samples.handlerchain;
+import java.io.File;
import java.net.URL;
import java.util.ArrayList;
+import java.util.LinkedList;
import java.util.List;
import javax.xml.namespace.QName;
@@ -33,6 +35,8 @@
import junit.framework.Test;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
/**
@@ -46,9 +50,28 @@
{
private static final String targetNS = "http://handlerchain.samples.jaxws.ws.test.jboss.org/";
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.WarDeployment("jaxws-samples-handlerchain.war") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.handlerchain.AuthorizationHandler.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.handlerchain.ClientMimeHandler.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.handlerchain.Endpoint.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.handlerchain.EndpointImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.handlerchain.LogHandler.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.handlerchain.RoutingHandler.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.handlerchain.ServerMimeHandler.class)
+ .addAsResource("org/jboss/test/ws/jaxws/samples/handlerchain/jaxws-handlers-server.xml")
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/handlerchain/WEB-INF/web.xml"));
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
+
public static Test suite()
{
- return new JBossWSTestSetup(HandlerChainTestCase.class, "jaxws-samples-handlerchain.war");
+ return new JBossWSTestSetup(HandlerChainTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
}
public void testDynamicHandlerChain() throws Exception
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/httpbinding/HttpJAXBTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/httpbinding/HttpJAXBTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/httpbinding/HttpJAXBTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -21,8 +21,11 @@
*/
package org.jboss.test.ws.jaxws.samples.httpbinding;
+import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
+import java.util.LinkedList;
+import java.util.List;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
@@ -34,9 +37,11 @@
import junit.framework.Test;
+import org.jboss.ws.common.DOMUtils;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
-import org.jboss.ws.common.DOMUtils;
import org.w3c.dom.Element;
/**
@@ -47,9 +52,25 @@
*/
public class HttpJAXBTestCase extends JBossWSTest
{
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.WarDeployment("jaxws-samples-httpbinding-jaxb.war") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.httpbinding.ProviderBeanJAXB.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.httpbinding.UserType.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.httpbinding.WebServiceEndpoint.class)
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/httpbinding/jaxb/META-INF/permissions.xml"), "permissions.xml")
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/httpbinding/shared/wsdl/HttpBinding.wsdl"), "wsdl/HttpBinding.wsdl")
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/httpbinding/jaxb/WEB-INF/web.xml"));
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
+
public static Test suite()
{
- return new JBossWSTestSetup(HttpJAXBTestCase.class, "jaxws-samples-httpbinding-jaxb.war");
+ return new JBossWSTestSetup(HttpJAXBTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
}
public void testWSDLAccess() throws Exception
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/httpbinding/HttpPayloadTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/httpbinding/HttpPayloadTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/httpbinding/HttpPayloadTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -21,8 +21,11 @@
*/
package org.jboss.test.ws.jaxws.samples.httpbinding;
+import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
+import java.util.LinkedList;
+import java.util.List;
import javax.xml.bind.JAXBException;
import javax.xml.namespace.QName;
@@ -35,9 +38,11 @@
import junit.framework.Test;
+import org.jboss.ws.common.DOMUtils;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
-import org.jboss.ws.common.DOMUtils;
import org.w3c.dom.Element;
/**
@@ -50,9 +55,24 @@
{
private String reqString = "<ns1:somePayload xmlns:ns1='http://org.jboss.ws/httpbinding'>Hello</ns1:somePayload>";
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.WarDeployment("jaxws-samples-httpbinding-payload.war") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.httpbinding.LogicalSourceHandler.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.httpbinding.ProviderBeanPayload.class)
+ .addAsResource("org/jboss/test/ws/jaxws/samples/httpbinding/httpbinding-handlers.xml")
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/httpbinding/shared/wsdl/HttpBinding.wsdl"), "wsdl/HttpBinding.wsdl")
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/httpbinding/payload/WEB-INF/web.xml"));
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
+
public static Test suite()
{
- return new JBossWSTestSetup(HttpPayloadTestCase.class, "jaxws-samples-httpbinding-payload.war");
+ return new JBossWSTestSetup(HttpPayloadTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
}
public void testWSDLAccess() throws Exception
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/jaxbintros/JAXBIntroTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/jaxbintros/JAXBIntroTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/jaxbintros/JAXBIntroTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -21,8 +21,11 @@
*/
package org.jboss.test.ws.jaxws.samples.jaxbintros;
+import java.io.File;
import java.net.URL;
import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
@@ -31,6 +34,8 @@
import org.jboss.ws.common.DOMUtils;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
import org.w3c.dom.Element;
@@ -44,12 +49,25 @@
*/
public class JAXBIntroTestCase extends JBossWSTest
{
-
private final String endpointAddress = "http://" + getServerHost() + ":8080/jaxws-samples-jaxbintros/EndpointService";
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.JarDeployment("jaxws-samples-jaxbintros.jar") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.jaxbintros.Endpoint.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.jaxbintros.EndpointBean.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.jaxbintros.UserType.class)
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/jaxbintros/META-INF/jaxb-intros.xml"), "jaxb-intros.xml");
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
+
public static Test suite()
{
- return new JBossWSTestSetup(JAXBIntroTestCase.class, "jaxws-samples-jaxbintros.jar");
+ return new JBossWSTestSetup(JAXBIntroTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
}
public void testWSDLAccess() throws Exception
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/logicalhandler/LogicalHandlerJAXBTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/logicalhandler/LogicalHandlerJAXBTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/logicalhandler/LogicalHandlerJAXBTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -21,7 +21,10 @@
*/
package org.jboss.test.ws.jaxws.samples.logicalhandler;
+import java.io.File;
import java.net.URL;
+import java.util.LinkedList;
+import java.util.List;
import javax.xml.namespace.QName;
import javax.xml.ws.BindingProvider;
@@ -29,7 +32,10 @@
import junit.framework.Test;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
/**
@@ -41,9 +47,30 @@
*/
public class LogicalHandlerJAXBTestCase extends JBossWSTest
{
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.WarDeployment("jaxws-samples-logicalhandler-jaxb.war") { {
+ archive
+ .setManifest(new StringAsset("Manifest-Version: 1.0\n"
+ + "Dependencies: com.sun.xml.bind export services\n"))
+ .addClass(org.jboss.test.ws.jaxws.samples.logicalhandler.Echo.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.logicalhandler.EchoResponse.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.logicalhandler.LogicalJAXBHandler.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.logicalhandler.ObjectFactory.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.logicalhandler.PortHandler.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.logicalhandler.ProtocolHandler.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.logicalhandler.SOAPEndpointJAXB.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.logicalhandler.SOAPEndpointJAXBImpl.class)
+ .addAsResource("org/jboss/test/ws/jaxws/samples/logicalhandler/jaxws-server-jaxb-handlers.xml")
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/logicalhandler/WEB-INF/web-jaxb.xml"));
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
+
public static Test suite()
{
- return new JBossWSTestSetup(LogicalHandlerJAXBTestCase.class, "jaxws-samples-logicalhandler-jaxb.war");
+ return new JBossWSTestSetup(LogicalHandlerJAXBTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
}
public void testClientAccess() throws Exception
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/logicalhandler/LogicalHandlerSourceTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/logicalhandler/LogicalHandlerSourceTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/logicalhandler/LogicalHandlerSourceTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -21,7 +21,10 @@
*/
package org.jboss.test.ws.jaxws.samples.logicalhandler;
+import java.io.File;
import java.net.URL;
+import java.util.LinkedList;
+import java.util.List;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
@@ -29,6 +32,8 @@
import junit.framework.Test;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
/**
@@ -39,9 +44,28 @@
*/
public class LogicalHandlerSourceTestCase extends JBossWSTest
{
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.WarDeployment("jaxws-samples-logicalhandler-source.war") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.logicalhandler.Echo.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.logicalhandler.EchoResponse.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.logicalhandler.LogicalSourceHandler.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.logicalhandler.PortHandler.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.logicalhandler.ProtocolHandler.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.logicalhandler.SOAPEndpointSourceDocImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.logicalhandler.SOAPEndpointSourceRpcImpl.class)
+ .addAsResource("org/jboss/test/ws/jaxws/samples/logicalhandler/jaxws-server-source-handlers.xml")
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/logicalhandler/WEB-INF/web-source.xml"));
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
+
public static Test suite()
{
- return new JBossWSTestSetup(LogicalHandlerSourceTestCase.class, "jaxws-samples-logicalhandler-source.war");
+ return new JBossWSTestSetup(LogicalHandlerSourceTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
}
public void testSourceDoc() throws Exception
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/oneway/OneWayTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/oneway/OneWayTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/oneway/OneWayTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -21,8 +21,11 @@
*/
package org.jboss.test.ws.jaxws.samples.oneway;
+import java.io.File;
import java.io.StringReader;
import java.net.URL;
+import java.util.LinkedList;
+import java.util.List;
import javax.xml.namespace.QName;
import javax.xml.transform.Source;
@@ -36,6 +39,8 @@
import org.jboss.ws.common.DOMUtils;
import org.jboss.ws.common.DOMWriter;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
import org.w3c.dom.Element;
@@ -49,9 +54,21 @@
{
private static final String targetNS = "http://oneway.samples.jaxws.ws.test.jboss.org/";
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.WarDeployment("jaxws-samples-oneway.war") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.oneway.PingEndpointImpl.class)
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/oneway/WEB-INF/web.xml"));
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
+
public static Test suite()
{
- return new JBossWSTestSetup(OneWayTestCase.class, "jaxws-samples-oneway.war");
+ return new JBossWSTestSetup(OneWayTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
}
public void testWebService() throws Exception
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/provider/ProviderJAXBTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/provider/ProviderJAXBTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/provider/ProviderJAXBTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -21,8 +21,11 @@
*/
package org.jboss.test.ws.jaxws.samples.provider;
+import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
+import java.util.LinkedList;
+import java.util.List;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
@@ -36,6 +39,8 @@
import org.jboss.ws.common.DOMUtils;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
import org.w3c.dom.Element;
@@ -48,9 +53,24 @@
*/
public class ProviderJAXBTestCase extends JBossWSTest
{
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.WarDeployment("jaxws-samples-provider-jaxb.war") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.provider.ProviderBeanJAXB.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.provider.UserType.class)
+ .addAsManifestResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/provider/jaxb/META-INF/permissions.xml"), "permissions.xml")
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/provider/jaxb/WEB-INF/wsdl/Provider.wsdl"), "wsdl/Provider.wsdl")
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/provider/jaxb/WEB-INF/web.xml"));
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
+
public static Test suite()
{
- return new JBossWSTestSetup(ProviderJAXBTestCase.class, "jaxws-samples-provider-jaxb.war");
+ return new JBossWSTestSetup(ProviderJAXBTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
}
public void testWSDLAccess() throws Exception
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/provider/ProviderMessageTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/provider/ProviderMessageTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/provider/ProviderMessageTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -22,9 +22,12 @@
package org.jboss.test.ws.jaxws.samples.provider;
import java.io.ByteArrayInputStream;
+import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
+import java.util.LinkedList;
+import java.util.List;
import javax.xml.bind.JAXBException;
import javax.xml.namespace.QName;
@@ -44,9 +47,11 @@
import junit.framework.Test;
+import org.jboss.ws.common.DOMUtils;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
-import org.jboss.ws.common.DOMUtils;
import org.w3c.dom.Element;
/**
@@ -74,9 +79,22 @@
" </soap:Body>" +
"</soap:Envelope>";
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.WarDeployment("jaxws-samples-provider-message.war") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.provider.ProviderBeanMessage.class)
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/provider/message/WEB-INF/wsdl/Provider.wsdl"), "wsdl/Provider.wsdl")
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/provider/message/WEB-INF/web.xml"));
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
+
public static Test suite()
{
- return new JBossWSTestSetup(ProviderMessageTestCase.class, "jaxws-samples-provider-message.war");
+ return new JBossWSTestSetup(ProviderMessageTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
}
public void testWSDLAccess() throws Exception
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/provider/ProviderPayloadTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/provider/ProviderPayloadTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/provider/ProviderPayloadTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -22,9 +22,12 @@
package org.jboss.test.ws.jaxws.samples.provider;
import java.io.ByteArrayInputStream;
+import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
+import java.util.LinkedList;
+import java.util.List;
import javax.xml.bind.JAXBException;
import javax.xml.namespace.QName;
@@ -46,6 +49,8 @@
import org.jboss.ws.common.DOMUtils;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
@@ -61,12 +66,24 @@
private final String reqString =
"<ns1:somePayload xmlns:ns1='http://org.jboss.ws/provider'>Hello</ns1:somePayload>";
-// private String resString =
-// "<ns1:somePayload xmlns:ns1='http://org.jboss.ws/provider'>Hello:Inbound:LogicalSourceHandler:Outbound:LogicalSourceHandler</ns1:somePayload>";
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.WarDeployment("jaxws-samples-provider-payload.war") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.provider.LogicalSourceHandler.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.provider.ProviderBeanPayload.class)
+ .addAsResource("org/jboss/test/ws/jaxws/samples/provider/provider-handlers.xml")
+ .addAsWebInfResource(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/provider/payload/WEB-INF/wsdl/Provider.wsdl"), "wsdl/Provider.wsdl")
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/provider/payload/WEB-INF/web.xml"));
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
public static Test suite()
{
- return new JBossWSTestSetup(ProviderPayloadTestCase.class, "jaxws-samples-provider-payload.war");
+ return new JBossWSTestSetup(ProviderPayloadTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
}
public void testWSDLAccess() throws Exception
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/securityDomain/PermitAllTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/securityDomain/PermitAllTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/securityDomain/PermitAllTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -23,6 +23,8 @@
import java.net.URL;
import java.util.HashMap;
+import java.util.LinkedList;
+import java.util.List;
import java.util.Map;
import javax.xml.namespace.QName;
@@ -32,6 +34,8 @@
import junit.framework.Test;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
/**
@@ -54,9 +58,21 @@
public final String TARGET_ENDPOINT_ADDRESS_1 = "http://" + getServerHost() + ":8080/jaxws-securityDomain-permitall/one";
public final String TARGET_ENDPOINT_ADDRESS_2 = "http://" + getServerHost() + ":8080/jaxws-securityDomain-permitall/two";
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.JarDeployment("jaxws-samples-securityDomain-permitall.jar") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.securityDomain.PermitAllSecureEndpoint1Impl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.securityDomain.PermitAllSecureEndpoint2Impl.class);
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
+
public static Test suite()
{
- JBossWSTestSetup testSetup = new JBossWSTestSetup(PermitAllTestCase.class, "jaxws-samples-securityDomain-permitall.jar");
+ JBossWSTestSetup testSetup = new JBossWSTestSetup(PermitAllTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
Map<String, String> authenticationOptions = new HashMap<String, String>();
authenticationOptions.put("usersProperties",
getResourceFile("jaxws/samples/securityDomain/jbossws-users.properties").getAbsolutePath());
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/securityDomain/SecurityDomainTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/securityDomain/SecurityDomainTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/securityDomain/SecurityDomainTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -23,6 +23,8 @@
import java.net.URL;
import java.util.HashMap;
+import java.util.LinkedList;
+import java.util.List;
import java.util.Map;
import javax.xml.namespace.QName;
@@ -32,6 +34,8 @@
import junit.framework.Test;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
/**
@@ -51,11 +55,20 @@
*/
public class SecurityDomainTestCase extends JBossWSTest
{
- public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-securityDomain/authz";
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.JarDeployment("jaxws-samples-securityDomain.jar") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.securityDomain.SecureEndpointImpl.class);
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
public static Test suite()
{
- JBossWSTestSetup testSetup = new JBossWSTestSetup(SecurityDomainTestCase.class, "jaxws-samples-securityDomain.jar");
+ JBossWSTestSetup testSetup = new JBossWSTestSetup(SecurityDomainTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
Map<String, String> authenticationOptions = new HashMap<String, String>();
authenticationOptions.put("usersProperties",
getResourceFile("jaxws/samples/securityDomain/jbossws-users.properties").getAbsolutePath());
@@ -67,7 +80,7 @@
private SecureEndpoint getAuthzPort() throws Exception
{
- URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+ URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-securityDomain/authz?wsdl");
QName serviceName = new QName("http://org.jboss.ws/securityDomain", "SecureEndpointService");
return Service.create(wsdlURL, serviceName).getPort(SecureEndpoint.class);
}
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/soapbinding/SOAPBindingTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/soapbinding/SOAPBindingTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/soapbinding/SOAPBindingTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -22,7 +22,10 @@
package org.jboss.test.ws.jaxws.samples.soapbinding;
import java.io.ByteArrayInputStream;
+import java.io.File;
import java.net.URL;
+import java.util.LinkedList;
+import java.util.List;
import javax.xml.bind.JAXBContext;
import javax.xml.namespace.QName;
@@ -38,6 +41,8 @@
import junit.framework.Test;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
/**
@@ -51,9 +56,32 @@
{
private final String targetNS = "http://soapbinding.samples.jaxws.ws.test.jboss.org/";
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.WarDeployment("jaxws-samples-soapbinding.war") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.soapbinding.DocBare.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.soapbinding.DocBareServiceImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.soapbinding.DocWrapped.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.soapbinding.DocWrappedServiceImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.soapbinding.ExampleSEI.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.soapbinding.ExampleServiceImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.soapbinding.SubmitBareRequest.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.soapbinding.SubmitBareResponse.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.soapbinding.jaxws.SubmitNamespacedPO.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.soapbinding.jaxws.SubmitNamespacedPOResponse.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.soapbinding.jaxws.SubmitPO.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.soapbinding.jaxws.SubmitPOResponse.class)
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/soapbinding/WEB-INF/web.xml"));
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
+
public static Test suite()
{
- return new JBossWSTestSetup(SOAPBindingTestCase.class, "jaxws-samples-soapbinding.war");
+ return new JBossWSTestSetup(SOAPBindingTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
}
public void testExampleService() throws Exception
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/swaref/SWARefTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/swaref/SWARefTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/swaref/SWARefTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -21,17 +21,22 @@
*/
package org.jboss.test.ws.jaxws.samples.swaref;
+import java.net.URL;
+import java.util.LinkedList;
+import java.util.List;
+
+import javax.activation.DataHandler;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
import junit.framework.Test;
import org.jboss.wsf.test.CleanupOperation;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
-import javax.xml.ws.Service;
-import javax.xml.namespace.QName;
-import javax.activation.DataHandler;
-import java.net.URL;
-
/**
* Test SwARef with different binding styles and @XmlAttachmentRef locations.
*
@@ -49,9 +54,32 @@
private static DataHandler data;
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.JarDeployment("jaxws-samples-swaref.jar") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.swaref.BareEndpoint.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.swaref.BareEndpointImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.swaref.DocumentPayload.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.swaref.DocumentPayloadWithList.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.swaref.DocumentPayloadWithoutRef.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.swaref.RpcLitEndpoint.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.swaref.RpcLitEndpointImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.swaref.WrappedEndpoint.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.swaref.WrappedEndpointImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.swaref.jaxws.BeanAnnotation.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.swaref.jaxws.BeanAnnotationResponse.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.swaref.jaxws.ParameterAnnotation.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.swaref.jaxws.ParameterAnnotationResponse.class);
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
+
public static Test suite()
{
- return new JBossWSTestSetup(SWARefTestCase.class, "jaxws-samples-swaref.jar", new CleanupOperation() {
+ return new JBossWSTestSetup(SWARefTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()), new CleanupOperation() {
@Override
public void cleanUp() {
data = null;
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/webmethod/WebMethodTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/webmethod/WebMethodTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/webmethod/WebMethodTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -22,8 +22,11 @@
package org.jboss.test.ws.jaxws.samples.webmethod;
import java.io.ByteArrayInputStream;
+import java.io.File;
import java.io.StringReader;
import java.net.URL;
+import java.util.LinkedList;
+import java.util.List;
import javax.xml.namespace.QName;
import javax.xml.soap.MessageFactory;
@@ -42,6 +45,8 @@
import junit.framework.Test;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
/**
@@ -55,9 +60,22 @@
private final String endpointURL = "http://" + getServerHost() + ":8080/jaxws-samples-webmethod/TestService";
private final String targetNS = "http://webmethod.samples.jaxws.ws.test.jboss.org/";
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.WarDeployment("jaxws-samples-webmethod.war") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.webmethod.Endpoint.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.webmethod.EndpointImpl.class)
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/webmethod/WEB-INF/web.xml"));
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
+
public static Test suite()
{
- return new JBossWSTestSetup(WebMethodTestCase.class, "jaxws-samples-webmethod.war");
+ return new JBossWSTestSetup(WebMethodTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()));
}
public void testLegalAccess() throws Exception
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/webparam/WebParamTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/webparam/WebParamTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/webparam/WebParamTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -21,7 +21,10 @@
*/
package org.jboss.test.ws.jaxws.samples.webparam;
+import java.io.File;
import java.net.URL;
+import java.util.LinkedList;
+import java.util.List;
import javax.xml.namespace.QName;
import javax.xml.ws.Holder;
@@ -31,6 +34,8 @@
import org.jboss.wsf.test.CleanupOperation;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
/**
@@ -45,9 +50,23 @@
private static PingService port;
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.WarDeployment("jaxws-samples-webparam.war") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.webparam.PingDocument.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.webparam.PingServiceImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.webparam.SecurityHeader.class)
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/webparam/WEB-INF/web.xml"));
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
+
public static Test suite()
{
- return new JBossWSTestSetup(WebParamTestCase.class, "jaxws-samples-webparam.war", new CleanupOperation() {
+ return new JBossWSTestSetup(WebParamTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()), new CleanupOperation() {
@Override
public void cleanUp() {
port = null;
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/webresult/WebResultTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/webresult/WebResultTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/webresult/WebResultTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -22,7 +22,10 @@
package org.jboss.test.ws.jaxws.samples.webresult;
import java.io.ByteArrayInputStream;
+import java.io.File;
import java.net.URL;
+import java.util.LinkedList;
+import java.util.List;
import javax.xml.namespace.QName;
import javax.xml.soap.MessageFactory;
@@ -36,6 +39,8 @@
import org.jboss.wsf.test.CleanupOperation;
import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestHelper.BaseDeployment;
import org.jboss.wsf.test.JBossWSTestSetup;
/**
@@ -50,9 +55,23 @@
private static CustomerService port;
+ public static BaseDeployment<?>[] createDeployments() {
+ List<BaseDeployment<?>> list = new LinkedList<BaseDeployment<?>>();
+ list.add(new JBossWSTestHelper.WarDeployment("jaxws-samples-webresult.war") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.webresult.CustomerRecord.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.webresult.CustomerServiceImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.webresult.USAddress.class)
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/webresult/WEB-INF/web.xml"));
+ }
+ });
+ return list.toArray(new BaseDeployment<?>[list.size()]);
+ }
+
public static Test suite()
{
- return new JBossWSTestSetup(WebResultTestCase.class, "jaxws-samples-webresult.war", new CleanupOperation() {
+ return new JBossWSTestSetup(WebResultTestCase.class, JBossWSTestHelper.writeToFile(createDeployments()), new CleanupOperation() {
@Override
public void cleanUp() {
port = null;
Added: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/DeploymentArchive.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/DeploymentArchive.java (rev 0)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/DeploymentArchive.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -0,0 +1,58 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2014, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.xop.doclit;
+
+import java.io.File;
+
+import org.jboss.wsf.test.JBossWSTestHelper;
+
+public final class DeploymentArchive
+{
+ public static final String NAME = JBossWSTestHelper.writeToFile(new JBossWSTestHelper.WarDeployment("jaxws-samples-xop-doclit.war") { {
+ archive
+ .addManifest()
+ .addClass(org.jboss.test.ws.jaxws.samples.xop.doclit.DHRequest.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.xop.doclit.DHResponse.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.xop.doclit.FakeInputStream.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.xop.doclit.GeneratorDataSource.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.xop.doclit.ImageRequest.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.xop.doclit.ImageResponse.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.xop.doclit.MTOMCheckClientHandler.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.xop.doclit.MTOMEndpoint.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.xop.doclit.MTOMEndpointBean.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.xop.doclit.MTOMProtocolHandler.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.xop.doclit.SourceRequest.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.xop.doclit.SourceResponse.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.xop.doclit.WrappedEndpoint.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.xop.doclit.WrappedEndpointImpl.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.xop.doclit.XOPBase.class)
+ .addAsResource("org/jboss/test/ws/jaxws/samples/xop/doclit/jaxws-handlers-server.xml")
+ .addClass(org.jboss.test.ws.jaxws.samples.xop.doclit.jaxws.ParameterAnnotation.class)
+ .addClass(org.jboss.test.ws.jaxws.samples.xop.doclit.jaxws.ParameterAnnotationResponse.class)
+ .setWebXML(new File(JBossWSTestHelper.getTestResourcesDir() + "/jaxws/samples/xop/doclit/WEB-INF/web.xml"));
+ }
+ });
+
+ private DeploymentArchive() {
+ //NOOP
+ }
+}
Property changes on: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/DeploymentArchive.java
___________________________________________________________________
Added: svn:keywords
+ Rev Date
Added: svn:eol-style
+ native
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/MTOMFeatureTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/MTOMFeatureTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/MTOMFeatureTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -50,17 +50,13 @@
*/
public class MTOMFeatureTestCase extends JBossWSTest {
- public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-samples-xop-doclit/bare";
-
- protected MTOMEndpoint port;
-
public static Test suite() {
- return new JBossWSTestSetup(MTOMFeatureTestCase.class, "jaxws-samples-xop-doclit.war");
+ return new JBossWSTestSetup(MTOMFeatureTestCase.class, DeploymentArchive.NAME);
}
private MTOMEndpoint getPort(boolean mtomEnabled) throws Exception {
QName serviceName = new QName("http://doclit.xop.samples.jaxws.ws.test.jboss.org/", "MTOMService");
- URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+ URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-samples-xop-doclit/bare?wsdl");
Service service = Service.create(wsdlURL, serviceName);
return service.getPort(MTOMEndpoint.class, new MTOMFeature(mtomEnabled));
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPBareTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPBareTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPBareTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -52,7 +52,7 @@
public static Test suite()
{
- return new JBossWSTestSetup(XOPBareTestCase.class, "jaxws-samples-xop-doclit.war");
+ return new JBossWSTestSetup(XOPBareTestCase.class, DeploymentArchive.NAME);
}
protected void setUp() throws Exception
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPHandlerTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPHandlerTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPHandlerTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -56,7 +56,7 @@
public static Test suite()
{
- return new JBossWSTestSetup(XOPHandlerTestCase.class, "jaxws-samples-xop-doclit.war");
+ return new JBossWSTestSetup(XOPHandlerTestCase.class, DeploymentArchive.NAME);
}
@Override
Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPWrappedTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPWrappedTestCase.java 2014-06-20 13:36:01 UTC (rev 18753)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPWrappedTestCase.java 2014-06-20 17:34:46 UTC (rev 18754)
@@ -52,7 +52,7 @@
public static Test suite()
{
- return new JBossWSTestSetup(XOPWrappedTestCase.class, "jaxws-samples-xop-doclit.war");
+ return new JBossWSTestSetup(XOPWrappedTestCase.class, DeploymentArchive.NAME);
}
protected void setUp() throws Exception
10 years, 3 months