Permalink
Browse files

SWITCHYARD-1221 drop camel rest binding quickstart

  • Loading branch information...
1 parent 78e690f commit 808f6c75e4931b42d577a82f239809dea7c6b24a @kcbabo kcbabo committed Dec 20, 2012
@@ -68,7 +68,6 @@
<componentDescriptor>src/main/resources/external/antlr/antlr-runtime/assembly-component.xml</componentDescriptor>
<componentDescriptor>src/main/resources/external/apache/commons/collections/assembly-component.xml</componentDescriptor>
<componentDescriptor>src/main/resources/external/apache/commons/net/assembly-component.xml</componentDescriptor>
- <componentDescriptor>src/main/resources/external/apache/cxf/jaxrs/assembly-component.xml</componentDescriptor>
<componentDescriptor>src/main/resources/external/apache/deltaspike/core-api/assembly-component.xml</componentDescriptor>
<componentDescriptor>src/main/resources/external/apache/mina/mina-core/assembly-component.xml</componentDescriptor>
<componentDescriptor>src/main/resources/external/batik/assembly-component.xml</componentDescriptor>
@@ -599,10 +599,6 @@
<groupId>org.apache.camel</groupId>
<artifactId>camel-cxf</artifactId>
</dependency>
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-frontend-jaxrs</artifactId>
- </dependency>
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz</artifactId>
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ~ JBoss, Home of Professional Open Source.
- ~ Copyright 2010, Red Hat, Inc., 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.
- -->
-<component xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/component/1.1.2 http://maven.apache.org/xsd/component-1.1.2.xsd"
- xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/component/1.1.2"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <files>
- <file>
- <source>src/main/resources/external/apache/cxf/jaxrs/module.xml</source>
- <outputDirectory>/modules/org/apache/cxf/jaxrs/main</outputDirectory>
- <filtered>true</filtered>
- </file>
- </files>
- <dependencySets>
- <dependencySet>
- <outputDirectory>/modules/org/apache/cxf/jaxrs/main</outputDirectory>
- <includes>
- <include>org.apache.cxf:cxf-rt-frontend-jaxrs</include>
- </includes>
- <outputFileNameMapping>${artifact.artifactId}-${artifact.baseVersion}.${artifact.extension}</outputFileNameMapping>
- <useTransitiveDependencies>false</useTransitiveDependencies>
- </dependencySet>
- </dependencySets>
-</component>
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ~ JBoss, Home of Professional Open Source.
- ~ Copyright 2010, Red Hat, Inc., 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.
- -->
-<module xmlns="urn:jboss:module:1.0" name="org.apache.cxf.jaxrs">
-
- <resources>
- <resource-root path="cxf-rt-frontend-jaxrs-${version.cxf}.jar"/>
- </resources>
-
- <dependencies>
- <module name="javax.api"/>
- <module name="javax.servlet.api"/>
- <module name="javax.annotation.api"/>
- <module name="javax.ws.rs.api"/>
- <module name="javax.xml.bind.api"/>
- <module name="org.apache.cxf"/>
- </dependencies>
-</module>
@@ -33,7 +33,6 @@
<module name="org.apache.camel.core"/>
<module name="org.apache.camel.spring"/>
<module name="org.apache.cxf"/>
- <module name="org.apache.cxf.jaxrs"/>
<module name="org.jboss.ws.cxf.jbossws-cxf-transports-httpserver" export="true">
<imports>
<include path="META-INF/cxf"/>
View
@@ -160,11 +160,6 @@
<artifactId>switchyard-quickstart-camel-sql-binding</artifactId>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>org.switchyard.quickstarts</groupId>
- <artifactId>switchyard-quickstart-camel-rest-binding</artifactId>
- <scope>test</scope>
- </dependency>
<dependency>
<groupId>org.switchyard.quickstarts</groupId>
<artifactId>switchyard-quickstart-camel-soap-proxy</artifactId>
@@ -1,124 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2012 Red Hat Inc. and/or its affiliates and other contributors
- * as indicated by the @authors tag. All rights reserved.
- * See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU Lesser General Public License, v. 2.1.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public License,
- * v.2.1 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- */
-package org.switchyard.test.quickstarts;
-
-import java.io.IOException;
-
-import org.jboss.arquillian.container.test.api.Deployment;
-import org.jboss.arquillian.junit.Arquillian;
-import org.jboss.shrinkwrap.api.spec.JavaArchive;
-import org.junit.Assert;
-import org.junit.Ignore;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.switchyard.test.ArquillianUtil;
-import org.switchyard.test.SwitchYardTestKit;
-import org.switchyard.component.test.mixins.http.HTTPMixIn;
-
-/**
- * Tests for Camel CXFRS binding.
- *
- * @author Magesh Kumar B <mageshbk@jboss.com> (C) 2012 Red Hat Inc.
- */
-@Ignore("This test fails due dependency to CXF 2.6.1 absent in AS 7.1")
-@RunWith(Arquillian.class)
-public class CamelCxfRsBindingQuickstartTest {
-
- @Deployment(testable = false)
- public static JavaArchive createDeployment() throws IOException {
- return ArquillianUtil.createJarQSDeployment("switchyard-quickstart-camel-rest-binding");
- }
-
- @Test
- public void camelRestBinding() throws IOException {
- HTTPMixIn http = new HTTPMixIn();
- http.initialize();
-
- // Create our inventory
- String response = http.sendString(BASE_URL + "/order/inventory/create", "", HTTPMixIn.HTTP_OPTIONS);
- Assert.assertEquals(SUCCESS, response);
-
- // Create an order
- response = http.sendString(BASE_URL + "/order", "", HTTPMixIn.HTTP_POST);
- SwitchYardTestKit.compareXMLToString(response, ORDER);
-
- // Add items
- response = http.sendString(BASE_URL + "/order/item", ORDER2, HTTPMixIn.HTTP_PUT);
- Assert.assertEquals(SUCCESS, response);
-
- // Look at our order
- response = http.sendString(BASE_URL + "/order/1", "", HTTPMixIn.HTTP_GET);
- SwitchYardTestKit.compareXMLToString(response, ORDER3);
-
- // Delete item
- response = http.sendString(BASE_URL + "/order/1:4", ORDER2, HTTPMixIn.HTTP_DELETE);
- Assert.assertEquals(SUCCESS, response);
- }
-
- private static final String BASE_URL = "http://localhost:18001";
- private static final String SUCCESS = "Order service is DUMB!";
- private static final String ORDER = "<order>"
- + " <orderId>1</orderId>"
- + "</order>";
- private static final String ORDER2 = "<order>"
- + " <orderId>1</orderId>"
- + " <orderItem>"
- + " <item>"
- + " <itemId>1</itemId>"
- + " </item>"
- + " <quantity>10</quantity>"
- + " </orderItem>"
- + " <orderItem>"
- + " <item>"
- + " <itemId>3</itemId>"
- + " </item>"
- + " <quantity>5</quantity>"
- + " </orderItem>"
- + " <orderItem>"
- + " <item>"
- + " <itemId>4</itemId>"
- + " </item>"
- + " <quantity>3</quantity>"
- + " </orderItem>"
- + "</order>";
- private static final String ORDER3 = "<order>"
- + " <orderId>1</orderId>"
- + " <orderItem>"
- + " <item>"
- + " <itemId>1</itemId>"
- + " <name>Hydrogen Atom - No, we are not kidding!</name>"
- + " </item>"
- + " <quantity>10</quantity>"
- + " </orderItem>"
- + " <orderItem>"
- + " <item>"
- + " <itemId>3</itemId>"
- + " <name>Einstein's Bust - Talks about your future :)</name>"
- + " </item>"
- + " <quantity>5</quantity>"
- + " </orderItem>"
- + " <orderItem>"
- + " <item>"
- + " <itemId>4</itemId>"
- + " <name>Time Machine</name>"
- + " </item>"
- + " <quantity>3</quantity>"
- + " </orderItem>"
- + "</order>";
-}

0 comments on commit 808f6c7

Please sign in to comment.