You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@continuum.apache.org by ws...@apache.org on 2009/05/28 00:19:11 UTC
svn commit: r779343 - in /continuum/sandbox/continuum-build-queue-test-data:
./ src/ src/test/ src/test/java/ src/test/java/config/ src/test/java/org/
src/test/java/org/apache/ src/test/java/org/apache/continuum/
src/test/java/org/apache/continuum/exam...
Author: wsmoak
Date: Wed May 27 22:19:11 2009
New Revision: 779343
URL: http://svn.apache.org/viewvc?rev=779343&view=rev
Log:
[CONTINUUM-2073] Add an example to test build queues
Submitted by: Tin Pardo
Added:
continuum/sandbox/continuum-build-queue-test-data/
continuum/sandbox/continuum-build-queue-test-data/pom.xml
continuum/sandbox/continuum-build-queue-test-data/src/
continuum/sandbox/continuum-build-queue-test-data/src/test/
continuum/sandbox/continuum-build-queue-test-data/src/test/java/
continuum/sandbox/continuum-build-queue-test-data/src/test/java/config/
continuum/sandbox/continuum-build-queue-test-data/src/test/java/config/testng.xml
continuum/sandbox/continuum-build-queue-test-data/src/test/java/org/
continuum/sandbox/continuum-build-queue-test-data/src/test/java/org/apache/
continuum/sandbox/continuum-build-queue-test-data/src/test/java/org/apache/continuum/
continuum/sandbox/continuum-build-queue-test-data/src/test/java/org/apache/continuum/examples/
continuum/sandbox/continuum-build-queue-test-data/src/test/java/org/apache/continuum/examples/BasicThreadTest.java
Added: continuum/sandbox/continuum-build-queue-test-data/pom.xml
URL: http://svn.apache.org/viewvc/continuum/sandbox/continuum-build-queue-test-data/pom.xml?rev=779343&view=auto
==============================================================================
--- continuum/sandbox/continuum-build-queue-test-data/pom.xml (added)
+++ continuum/sandbox/continuum-build-queue-test-data/pom.xml Wed May 27 22:19:11 2009
@@ -0,0 +1,88 @@
+<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>
+ <groupId>org.apache.continuum</groupId>
+ <artifactId>continuum-build-queue-test-data</artifactId>
+ <packaging>pom</packaging>
+ <version>1.0-SNAPSHOT</version>
+ <name>ContinuumBuildQueueTestData</name>
+ <description>Project for testing continuum build queue</description>
+ <dependencies>
+ <dependency>
+ <groupId>org.testng</groupId>
+ <artifactId>testng</artifactId>
+ <version>5.8</version>
+ <scope>test</scope>
+ <classifier>jdk15</classifier>
+ </dependency>
+ </dependencies>
+
+ <scm>
+ <connection>scm:svn:https://svn.apache.org/repos/asf/continuum/sandbox/continuum-build-queue-test-data</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/continuum/sandbox/continuum-build-queue-test-data</developerConnection>
+ <url>https://svn.apache.org/repos/asf/continuum/sandbox/continuum-build-queue-test-data</url>
+ </scm>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0.2</version>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ <encoding>UTF-8</encoding>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>testCompile</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>testResources</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <suiteXmlFiles>
+ <suiteXmlFile>src/test/java/config/testng.xml</suiteXmlFile>
+ </suiteXmlFiles>
+ </configuration>
+ <executions>
+ <execution>
+ <id>integration-tests</id>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+
+
+ <developers>
+ <developer>
+ <id>blago</id>
+ <name>Bernard Lago</name>
+ <roles>
+ <role>QA Engineer</role>
+ </roles>
+ <timezone>+8</timezone>
+ </developer>
+ </developers>
+</project>
Added: continuum/sandbox/continuum-build-queue-test-data/src/test/java/config/testng.xml
URL: http://svn.apache.org/viewvc/continuum/sandbox/continuum-build-queue-test-data/src/test/java/config/testng.xml?rev=779343&view=auto
==============================================================================
--- continuum/sandbox/continuum-build-queue-test-data/src/test/java/config/testng.xml (added)
+++ continuum/sandbox/continuum-build-queue-test-data/src/test/java/config/testng.xml Wed May 27 22:19:11 2009
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
+<!--
+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.
+-->
+
+<suite name="MaestroProjectServerTest" verbose="1">
+ <test name="BasicTest" enabled="true">
+
+ <packages>
+ <package name="org.apache.continuum.examples" />
+ </packages>
+ </test>
+</suite>
Added: continuum/sandbox/continuum-build-queue-test-data/src/test/java/org/apache/continuum/examples/BasicThreadTest.java
URL: http://svn.apache.org/viewvc/continuum/sandbox/continuum-build-queue-test-data/src/test/java/org/apache/continuum/examples/BasicThreadTest.java?rev=779343&view=auto
==============================================================================
--- continuum/sandbox/continuum-build-queue-test-data/src/test/java/org/apache/continuum/examples/BasicThreadTest.java (added)
+++ continuum/sandbox/continuum-build-queue-test-data/src/test/java/org/apache/continuum/examples/BasicThreadTest.java Wed May 27 22:19:11 2009
@@ -0,0 +1,16 @@
+package org.apache.continuum.examples;
+
+import org.testng.annotations.Test;
+
+public class BasicThreadTest {
+
+ @Test
+ public void testThread() {
+ try {
+ long numMillisecondsToSleep = 60000; // 1 * 60 seconds
+ Thread.sleep(numMillisecondsToSleep);
+ } catch (InterruptedException e) {
+ }
+ }
+
+}