summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2014-03-16 13:21:47 +0000
committerRobert Gemmell <robbie@apache.org>2014-03-16 13:21:47 +0000
commit6d57251e0573b4eaa18fafed316914b6195f0be4 (patch)
tree230d9b12b1327f0734ce5af83d6866939a2c1cea
parent3f3da0aaf8556066d06700ce353817799d85d7b7 (diff)
downloadqpid-python-6d57251e0573b4eaa18fafed316914b6195f0be4.tar.gz
QPID-5610: add initial pom and README for manual tests module
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/QPID-5610-maven3-build-qmf-tools@1578061 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/tools/src/java/pom.xml1
-rw-r--r--qpid/tools/src/java/qpid-qmf2-test/README.txt55
-rw-r--r--qpid/tools/src/java/qpid-qmf2-test/pom.xml150
3 files changed, 206 insertions, 0 deletions
diff --git a/qpid/tools/src/java/pom.xml b/qpid/tools/src/java/pom.xml
index 0a00511cf7..d4bffcad8c 100644
--- a/qpid/tools/src/java/pom.xml
+++ b/qpid/tools/src/java/pom.xml
@@ -73,6 +73,7 @@
<module>qpid-qmf2-rest</module>
<module>qpid-qmf2-tools</module>
<module>qpid-broker-plugins-management-qmf2</module>
+ <module>qpid-qmf2-test</module>
</modules>
<build>
diff --git a/qpid/tools/src/java/qpid-qmf2-test/README.txt b/qpid/tools/src/java/qpid-qmf2-test/README.txt
new file mode 100644
index 0000000000..bdc9d532b6
--- /dev/null
+++ b/qpid/tools/src/java/qpid-qmf2-test/README.txt
@@ -0,0 +1,55 @@
+/*
+ *
+ * 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.
+ *
+ */
+
+This module contains various manual test cases.The moudle pom has a helper profile
+with helper exec plugin config to allow executing a particular test class from
+the org.apache.qpid.qmf2.test package.
+
+The test classes can be found at:
+src/main/java/org/apache/qpid/qmf2/test/
+
+To execute a particular test class, use:
+
+mvn test -DtestCase=<Simple Class Name> [-Dexec.args=<arguments>]
+
+
+The above command can be run either from the parent directory, or from within
+the modules own directory, though in the latter case the other modules should
+be installed into your local repo (mvn clean install) first to ensure the latest
+code is being tested rather than a remote dependency.
+
+Currently available classes are:
+
+AgentExternalTest
+AgentSubscriptionTestConsole
+AgentTestConsole
+AgentTest
+BigPayloadAgentTestConsole
+BigPayloadAgentTest
+BrokerSubscriptionTestConsole
+InvokeMethodTest
+PartialGetObjectsTest
+SchemaTest
+Test1
+Test2
+Test3
+Test4
+URLTest
diff --git a/qpid/tools/src/java/qpid-qmf2-test/pom.xml b/qpid/tools/src/java/qpid-qmf2-test/pom.xml
new file mode 100644
index 0000000000..aff8ca0710
--- /dev/null
+++ b/qpid/tools/src/java/qpid-qmf2-test/pom.xml
@@ -0,0 +1,150 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.qpid</groupId>
+ <artifactId>qpid-qmf2-parent</artifactId>
+ <version>0.30-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>qpid-qmf2-test</artifactId>
+ <name>Qpid QMF2 Test</name>
+ <description>QMF2 Test</description>
+
+ <properties>
+ <testCase>SpecifyTestOnCommandLine</testCase>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.qpid</groupId>
+ <artifactId>qpid-qmf2</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.qpid</groupId>
+ <artifactId>qpid-qmf2-rest</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.qpid</groupId>
+ <artifactId>qpid-qmf2-tools</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <!-- version specified in parent pluginManagement -->
+ <!-- scope specified in parent pluginManagement -->
+ </dependency>
+
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <!-- version specified in parent pluginManagement -->
+ <!-- scope specified in parent pluginManagement -->
+ </dependency>
+
+
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <!-- version specified in parent pluginManagement -->
+ <!-- scope specified in parent pluginManagement -->
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <!--version specified in qpid-parent pluginManagement -->
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <profiles>
+ <!-- Profile with helper exec plugin config to execute a particular test class
+ from the org.apache.qpid.qmf2.test package.
+
+ Usage:
+ mvn test -DtestClass=<Simple Class Name> [-Dexec.args=<arguments>]
+
+ Currently available classes:
+ AgentExternalTest
+ AgentSubscriptionTestConsole
+ AgentTestConsole
+ AgentTest
+ BigPayloadAgentTestConsole
+ BigPayloadAgentTest
+ BrokerSubscriptionTestConsole
+ InvokeMethodTest
+ PartialGetObjectsTest
+ SchemaTest
+ Test1
+ Test2
+ Test3
+ Test4
+ URLTest
+ -->
+ <profile>
+ <id>test</id>
+ <activation>
+ <property>
+ <name>testCase</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <!--version specified in qpid-parent pluginManagement -->
+ <executions>
+ <execution>
+ <phase>test</phase>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <mainClass>org.apache.qpid.qmf2.test.${testCase}</mainClass>
+ <systemProperties>
+ <systemProperty>
+ <key>log4j.configuration</key>
+ <value>file://${basedir}/bin/log4j.xml</value>
+ </systemProperty>
+ </systemProperties>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+</project>