cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r811745 - in /cxf/trunk: systests/ systests/transports/ systests/transports/src/test/java/org/apache/cxf/jms/ systests/transports/src/test/java/org/apache/cxf/jms/testsuite/testcases/ systests/transports/src/test/java/org/apache/cxf/systest...
Date Sun, 06 Sep 2009 01:47:02 GMT
Author: dkulp
Date: Sun Sep  6 01:47:00 2009
New Revision: 811745

URL: http://svn.apache.org/viewvc?rev=811745&view=rev
Log:
Move transport related systests into transports category

Added:
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/jms/
      - copied from r811695, cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/jms/
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/http/
      - copied from r811695, cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/http/
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/
      - copied from r811695, cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/http_jetty/
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/
      - copied from r811695, cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/jms/
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/Hello.java
      - copied unchanged from r811696, cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/jms/Hello.java
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/HelloImpl.java
      - copied unchanged from r811696, cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/jms/HelloImpl.java
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/JMSClientServerTest.java
      - copied, changed from r811696, cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/jms/JMSClientServerTest.java
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/Server.java
      - copied unchanged from r811696, cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/jms/Server.java
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/local_transport/
      - copied from r811695, cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/local_transport/
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/multitransport/
      - copied from r811695, cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/multitransport/
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/servlet/
      - copied from r811695, cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/servlet/
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/servlet/Hello.java
      - copied unchanged from r811696, cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/servlet/Hello.java
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/servlet/HelloImpl.java
      - copied unchanged from r811696, cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/servlet/HelloImpl.java
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/servlet/NoSpringServletClientTest.java
      - copied unchanged from r811696, cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/servlet/NoSpringServletClientTest.java
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/servlet/NoSpringServletServer.java
      - copied unchanged from r811696, cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/servlet/NoSpringServletServer.java
    cxf/trunk/systests/transports/src/test/resources/jms/
      - copied from r811695, cxf/trunk/systests/uncategorized/src/test/resources/jms/
    cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/EmbeddedJMSBrokerLauncher.java
  (with props)
Removed:
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/EmbeddedJMSBrokerLauncher.java
    cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/jms/
    cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/http/
    cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/http_jetty/
    cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/jms/
    cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/local_transport/
    cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/multitransport/
    cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/servlet/
    cxf/trunk/systests/uncategorized/src/test/resources/jms/
Modified:
    cxf/trunk/systests/pom.xml
    cxf/trunk/systests/transports/pom.xml
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/jms/testsuite/testcases/SOAPJMSTestSuiteTest.java
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/continuations/HelloWorldContinuationsClientServerTest.java
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/continuations/HelloWorldContinuationsThrottleTest.java
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/continuations/JMSContinuationsClientServerTest.java
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/tx/JMSTransactionClientServerTest.java
    cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/multitransport/MultiTransportClientServerTest.java
    cxf/trunk/systests/uncategorized/pom.xml
    cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/MultiplexClientServerTest.java
    cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/mtom/ClientMtomXopWithJMSTest.java
    cxf/trunk/systests/ws-specs/   (props changed)
    cxf/trunk/testutils/pom.xml

Modified: cxf/trunk/systests/pom.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/pom.xml?rev=811745&r1=811744&r2=811745&view=diff
==============================================================================
--- cxf/trunk/systests/pom.xml (original)
+++ cxf/trunk/systests/pom.xml Sun Sep  6 01:47:00 2009
@@ -33,8 +33,9 @@
 
     <modules>
         <module>uncategorized</module> 
-	<module>jaxws</module>
-	<module>aegis</module>
+        <module>transports</module>
+        <module>jaxws</module>
+        <module>aegis</module>
         <module>jaxrs</module>
         <module>ws-specs</module>
     </modules>

Modified: cxf/trunk/systests/transports/pom.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/transports/pom.xml?rev=811745&r1=811744&r2=811745&view=diff
==============================================================================
--- cxf/trunk/systests/transports/pom.xml (original)
+++ cxf/trunk/systests/transports/pom.xml Sun Sep  6 01:47:00 2009
@@ -61,6 +61,30 @@
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.apache.cxf</groupId>
+                <artifactId>cxf-common-xsd</artifactId>
+                <version>${project.version}</version>
+                <executions>
+                    <execution>
+                        <id>generate-sources</id>
+                        <phase>generate-sources</phase>
+                        <configuration>
+                            <testSourceRoot>${basedir}/target/generated/src/test/java</testSourceRoot>
+                            <xsdOptions>
+                                <xsdOption>
+                                    <xsd>${basedir}/src/test/resources/jms/testcase.xsd</xsd>
+                                    <bindingFile>${basedir}/src/test/resources/jms/testcase.xjb</bindingFile>
+                                    <catalog>${basedir}/src/test/build-resources/catalog.cat</catalog>
+                                </xsdOption>
+                            </xsdOptions>
+                        </configuration>
+                        <goals>
+                            <goal>xsdtojava</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
     <profiles>

Modified: cxf/trunk/systests/transports/src/test/java/org/apache/cxf/jms/testsuite/testcases/SOAPJMSTestSuiteTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/transports/src/test/java/org/apache/cxf/jms/testsuite/testcases/SOAPJMSTestSuiteTest.java?rev=811745&r1=811695&r2=811745&view=diff
==============================================================================
--- cxf/trunk/systests/transports/src/test/java/org/apache/cxf/jms/testsuite/testcases/SOAPJMSTestSuiteTest.java
(original)
+++ cxf/trunk/systests/transports/src/test/java/org/apache/cxf/jms/testsuite/testcases/SOAPJMSTestSuiteTest.java
Sun Sep  6 01:47:00 2009
@@ -40,8 +40,8 @@
 import org.apache.cxf.jms_simple.JMSSimpleService0011;
 import org.apache.cxf.jms_simple.JMSSimpleService0012;
 import org.apache.cxf.jms_simple.JMSSimpleService1001;
-import org.apache.cxf.systest.jms.EmbeddedJMSBrokerLauncher;
 import org.apache.cxf.testsuite.testcase.TestCaseType;
+import org.apache.cxf.testutil.common.EmbeddedJMSBrokerLauncher;
 import org.apache.cxf.transport.jms.JMSConstants;
 import org.apache.cxf.transport.jms.JMSMessageHeadersType;
 

Copied: cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/JMSClientServerTest.java
(from r811696, cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/jms/JMSClientServerTest.java)
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/JMSClientServerTest.java?p2=cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/JMSClientServerTest.java&p1=cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/jms/JMSClientServerTest.java&r1=811696&r2=811745&rev=811745&view=diff
==============================================================================
--- cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/jms/JMSClientServerTest.java
(original)
+++ cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/JMSClientServerTest.java
Sun Sep  6 01:47:00 2009
@@ -63,6 +63,7 @@
 import org.apache.cxf.jms_mtom.JMSMTOMService;
 import org.apache.cxf.service.model.EndpointInfo;
 import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
+import org.apache.cxf.testutil.common.EmbeddedJMSBrokerLauncher;
 import org.apache.cxf.transport.jms.AddressType;
 import org.apache.cxf.transport.jms.JMSConduit;
 import org.apache.cxf.transport.jms.JMSConstants;

Modified: cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/continuations/HelloWorldContinuationsClientServerTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/continuations/HelloWorldContinuationsClientServerTest.java?rev=811745&r1=811695&r2=811745&view=diff
==============================================================================
--- cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/continuations/HelloWorldContinuationsClientServerTest.java
(original)
+++ cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/continuations/HelloWorldContinuationsClientServerTest.java
Sun Sep  6 01:47:00 2009
@@ -34,7 +34,6 @@
 import org.apache.cxf.systest.http_jetty.continuations.HelloContinuation;
 import org.apache.cxf.systest.http_jetty.continuations.HelloContinuationService;
 import org.apache.cxf.systest.http_jetty.continuations.HelloWorker;
-import org.apache.cxf.systest.jms.EmbeddedJMSBrokerLauncher;
 import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
 import org.junit.Before;
 import org.junit.Test;
@@ -58,7 +57,7 @@
                   System.getProperty("java.util.logging.config.file"));
         
         assertTrue("server did not launch correctly", 
-                   launchServer(EmbeddedJMSBrokerLauncher.class, props, null));
+                   launchServer(org.apache.cxf.testutil.common.EmbeddedJMSBrokerLauncher.class,
props, null));
 
         assertTrue("server did not launch correctly", 
                    launchServer(Server2.class));

Modified: cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/continuations/HelloWorldContinuationsThrottleTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/continuations/HelloWorldContinuationsThrottleTest.java?rev=811745&r1=811695&r2=811745&view=diff
==============================================================================
--- cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/continuations/HelloWorldContinuationsThrottleTest.java
(original)
+++ cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/continuations/HelloWorldContinuationsThrottleTest.java
Sun Sep  6 01:47:00 2009
@@ -34,8 +34,8 @@
 import org.apache.cxf.systest.http_jetty.continuations.HelloContinuation;
 import org.apache.cxf.systest.http_jetty.continuations.HelloContinuationService;
 import org.apache.cxf.systest.http_jetty.continuations.HelloWorker;
-import org.apache.cxf.systest.jms.EmbeddedJMSBrokerLauncher;
 import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
+import org.apache.cxf.testutil.common.EmbeddedJMSBrokerLauncher;
 
 import org.junit.Before;
 import org.junit.Test;

Modified: cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/continuations/JMSContinuationsClientServerTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/continuations/JMSContinuationsClientServerTest.java?rev=811745&r1=811695&r2=811745&view=diff
==============================================================================
--- cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/continuations/JMSContinuationsClientServerTest.java
(original)
+++ cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/continuations/JMSContinuationsClientServerTest.java
Sun Sep  6 01:47:00 2009
@@ -26,8 +26,9 @@
 
 import org.apache.cxf.hello_world_jms.HelloWorldPortType;
 import org.apache.cxf.hello_world_jms.HelloWorldService;
-import org.apache.cxf.systest.jms.EmbeddedJMSBrokerLauncher;
 import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
+import org.apache.cxf.testutil.common.EmbeddedJMSBrokerLauncher;
+
 import org.junit.Before;
 import org.junit.Test;
 

Modified: cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/tx/JMSTransactionClientServerTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/tx/JMSTransactionClientServerTest.java?rev=811745&r1=811695&r2=811745&view=diff
==============================================================================
--- cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/tx/JMSTransactionClientServerTest.java
(original)
+++ cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/jms/tx/JMSTransactionClientServerTest.java
Sun Sep  6 01:47:00 2009
@@ -25,8 +25,8 @@
 
 import javax.xml.namespace.QName;
 
-import org.apache.cxf.systest.jms.EmbeddedJMSBrokerLauncher;
 import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
+import org.apache.cxf.testutil.common.EmbeddedJMSBrokerLauncher;
 import org.apache.hello_world_doc_lit.Greeter;
 import org.apache.hello_world_doc_lit.PingMeFault;
 import org.apache.hello_world_doc_lit.SOAPService2;

Modified: cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/multitransport/MultiTransportClientServerTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/multitransport/MultiTransportClientServerTest.java?rev=811745&r1=811695&r2=811745&view=diff
==============================================================================
--- cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/multitransport/MultiTransportClientServerTest.java
(original)
+++ cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/multitransport/MultiTransportClientServerTest.java
Sun Sep  6 01:47:00 2009
@@ -29,9 +29,9 @@
 import javax.xml.ws.Endpoint;
 
 import org.apache.cxf.common.logging.LogUtils;
-import org.apache.cxf.systest.jms.EmbeddedJMSBrokerLauncher;
 import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
 import org.apache.cxf.testutil.common.AbstractBusTestServerBase;
+import org.apache.cxf.testutil.common.EmbeddedJMSBrokerLauncher;
 import org.apache.hello_world_doc_lit.Greeter;
 import org.apache.hello_world_doc_lit.HTTPGreeterImpl;
 import org.apache.hello_world_doc_lit.JMSGreeterImpl;

Modified: cxf/trunk/systests/uncategorized/pom.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/uncategorized/pom.xml?rev=811745&r1=811744&r2=811745&view=diff
==============================================================================
--- cxf/trunk/systests/uncategorized/pom.xml (original)
+++ cxf/trunk/systests/uncategorized/pom.xml Sun Sep  6 01:47:00 2009
@@ -174,30 +174,6 @@
                     </execution>
                 </executions>
             </plugin>
-            <plugin>
-                <groupId>org.apache.cxf</groupId>
-                <artifactId>cxf-common-xsd</artifactId>
-                <version>${project.version}</version>
-                <executions>
-                    <execution>
-                        <id>generate-sources</id>
-                        <phase>generate-sources</phase>
-                        <configuration>
-                            <testSourceRoot>${basedir}/target/generated/src/test/java</testSourceRoot>
-                            <xsdOptions>
-                                <xsdOption>
-                                    <xsd>${basedir}/src/test/resources/jms/testcase.xsd</xsd>
-                                    <bindingFile>${basedir}/src/test/resources/jms/testcase.xjb</bindingFile>
-                                    <catalog>${basedir}/src/test/build-resources/catalog.cat</catalog>
-                                </xsdOption>
-                            </xsdOptions>
-                        </configuration>
-                        <goals>
-                            <goal>xsdtojava</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
         </plugins>
     </build>
     <profiles>

Modified: cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/MultiplexClientServerTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/MultiplexClientServerTest.java?rev=811745&r1=811744&r2=811745&view=diff
==============================================================================
--- cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/MultiplexClientServerTest.java
(original)
+++ cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/MultiplexClientServerTest.java
Sun Sep  6 01:47:00 2009
@@ -32,9 +32,10 @@
 import org.apache.cxf.factory_pattern.NumberService;
 import org.apache.cxf.jaxws.ServiceImpl;
 import org.apache.cxf.jaxws.support.ServiceDelegateAccessor;
-import org.apache.cxf.systest.jms.EmbeddedJMSBrokerLauncher;
 import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
 import org.apache.cxf.testutil.common.AbstractBusTestServerBase;
+import org.apache.cxf.testutil.common.EmbeddedJMSBrokerLauncher;
+
 import org.junit.BeforeClass;
 import org.junit.Test;
 

Modified: cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/mtom/ClientMtomXopWithJMSTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/mtom/ClientMtomXopWithJMSTest.java?rev=811745&r1=811744&r2=811745&view=diff
==============================================================================
--- cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/mtom/ClientMtomXopWithJMSTest.java
(original)
+++ cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/mtom/ClientMtomXopWithJMSTest.java
Sun Sep  6 01:47:00 2009
@@ -44,9 +44,10 @@
 import org.apache.cxf.service.Service;
 import org.apache.cxf.service.factory.ReflectionServiceFactoryBean;
 import org.apache.cxf.service.model.EndpointInfo;
-import org.apache.cxf.systest.jms.EmbeddedJMSBrokerLauncher;
 import org.apache.cxf.test.TestUtilities;
 import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
+import org.apache.cxf.testutil.common.EmbeddedJMSBrokerLauncher;
+
 import org.junit.AfterClass;
 import org.junit.BeforeClass;
 import org.junit.Test;

Propchange: cxf/trunk/systests/ws-specs/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sun Sep  6 01:47:00 2009
@@ -0,0 +1,10 @@
+.pmd
+.checkstyle
+.ruleset
+target
+eclipse-classes
+.settings
+.classpath
+.project
+.wtpmodules
+

Modified: cxf/trunk/testutils/pom.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/testutils/pom.xml?rev=811745&r1=811744&r2=811745&view=diff
==============================================================================
--- cxf/trunk/testutils/pom.xml (original)
+++ cxf/trunk/testutils/pom.xml Sun Sep  6 01:47:00 2009
@@ -71,6 +71,11 @@
             <artifactId>cxf-api</artifactId>
             <version>${project.version}</version>
         </dependency>
+        <dependency>
+            <groupId>org.apache.activemq</groupId>
+            <artifactId>activemq-core</artifactId>
+            <scope>provided</scope>
+        </dependency>
     </dependencies>
 
     <build>

Added: cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/EmbeddedJMSBrokerLauncher.java
URL: http://svn.apache.org/viewvc/cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/EmbeddedJMSBrokerLauncher.java?rev=811745&view=auto
==============================================================================
--- cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/EmbeddedJMSBrokerLauncher.java
(added)
+++ cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/EmbeddedJMSBrokerLauncher.java
Sun Sep  6 01:47:00 2009
@@ -0,0 +1,60 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.cxf.testutil.common;
+
+import java.io.File;
+
+import org.apache.activemq.broker.BrokerService;
+import org.apache.activemq.store.memory.MemoryPersistenceAdapter;
+
+public class EmbeddedJMSBrokerLauncher extends AbstractBusTestServerBase {
+    
+    BrokerService broker;
+    final String brokerUrl1 = "tcp://localhost:61500";            
+            
+    public void tearDown() throws Exception {
+        if (broker != null) {
+            broker.stop();
+        }
+    }
+            
+    public void run() {
+        try {                
+            broker = new BrokerService();
+            broker.setPersistenceAdapter(new MemoryPersistenceAdapter());
+            broker.setTmpDataDirectory(new File("./target"));
+            broker.addConnector(brokerUrl1);
+            broker.start();            
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+
+    public static void main(String[] args) {
+        try {
+            EmbeddedJMSBrokerLauncher s = new EmbeddedJMSBrokerLauncher();
+            s.start();
+        } catch (Exception ex) {
+            ex.printStackTrace();
+            System.exit(-1);
+        } finally {
+            System.out.println("done!");
+        }
+    }
+}

Propchange: cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/EmbeddedJMSBrokerLauncher.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/EmbeddedJMSBrokerLauncher.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date



Mime
View raw message