You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by jb...@apache.org on 2007/02/14 23:33:58 UTC
svn commit: r507724 - in /incubator/tuscany/java/sca/runtime/itest/plugin:
pom.xml src/site/ src/site/apt/ src/site/apt/usage.apt src/site/site.xml
Author: jboynes
Date: Wed Feb 14 14:33:57 2007
New Revision: 507724
URL: http://svn.apache.org/viewvc?view=rev&rev=507724
Log:
some doc for the itest plugin
Added:
incubator/tuscany/java/sca/runtime/itest/plugin/src/site/
incubator/tuscany/java/sca/runtime/itest/plugin/src/site/apt/
incubator/tuscany/java/sca/runtime/itest/plugin/src/site/apt/usage.apt
incubator/tuscany/java/sca/runtime/itest/plugin/src/site/site.xml (with props)
Modified:
incubator/tuscany/java/sca/runtime/itest/plugin/pom.xml
Modified: incubator/tuscany/java/sca/runtime/itest/plugin/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/runtime/itest/plugin/pom.xml?view=diff&rev=507724&r1=507723&r2=507724
==============================================================================
--- incubator/tuscany/java/sca/runtime/itest/plugin/pom.xml (original)
+++ incubator/tuscany/java/sca/runtime/itest/plugin/pom.xml Wed Feb 14 14:33:57 2007
@@ -27,6 +27,7 @@
<artifactId>tuscany-itest-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>Apache Tuscany Integration Test Plugin</name>
+ <description>A plugin for Apache Maven that simplifies integration testing of SCA components.</description>
<dependencies>
<dependency>
@@ -64,4 +65,13 @@
<scope>runtime</scope>
</dependency>
</dependencies>
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-plugin-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </reporting>
</project>
Added: incubator/tuscany/java/sca/runtime/itest/plugin/src/site/apt/usage.apt
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/runtime/itest/plugin/src/site/apt/usage.apt?view=auto&rev=507724
==============================================================================
--- incubator/tuscany/java/sca/runtime/itest/plugin/src/site/apt/usage.apt (added)
+++ incubator/tuscany/java/sca/runtime/itest/plugin/src/site/apt/usage.apt Wed Feb 14 14:33:57 2007
@@ -0,0 +1,50 @@
+Usage
+
+ The <<<tuscany-itest-plugin>>> is associated with the <<<integration-test>>> phase of the build lifecycle.
+
+ The plugin can be invoked directly from the command line:
+
++---+
+mvn org.apache.tuscany.sca:tuscany-itest-plugin:test
++---+
+
+ or can be included in the build definition for your project:
+
++---+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-itest-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
++---+
+
+* Writing Integration Tests
+
+ Integration tests are written as JUnit TestCases (currently only JUnit 3.8.1 is supported but other frameworks
+ may be added later) that use SCA references to access services provided by the components under test. The
+ references are injected into your testcase before its setUp method is called (using constructor, setter or field
+ injection).
+
+ For example, to test a component that implemented the <<<MyService>>> interface you could write:
+
++---+
+ public class ServiceTestComponent extends TestCase {
+
+ @Reference
+ public MyService service;
+
+ public void testSomething() {
+ assertEquals(result, service.doSomething);
+ }
+ }
++---+
Added: incubator/tuscany/java/sca/runtime/itest/plugin/src/site/site.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/runtime/itest/plugin/src/site/site.xml?view=auto&rev=507724
==============================================================================
--- incubator/tuscany/java/sca/runtime/itest/plugin/src/site/site.xml (added)
+++ incubator/tuscany/java/sca/runtime/itest/plugin/src/site/site.xml Wed Feb 14 14:33:57 2007
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!--
+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>
+ <body>
+ <menu name="Overview">
+ <item name="Introduction" href="index.html"/>
+ <item name="Goals" href="plugin-info.html"/>
+ <item name="Usage" href="usage.html"/>
+ <item name="FAQ" href="faq.html"/>
+ </menu>
+ <menu name="Examples">
+ </menu>
+ </body>
+</project>
Propchange: incubator/tuscany/java/sca/runtime/itest/plugin/src/site/site.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/runtime/itest/plugin/src/site/site.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org