You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by ka...@apache.org on 2014/02/10 14:16:59 UTC
svn commit: r1566612 -
/openwebbeans/cms-site/trunk/content/testing_test-control.mdtext
Author: karlkilden
Date: Mon Feb 10 13:16:58 2014
New Revision: 1566612
URL: http://svn.apache.org/r1566612
Log:
Test doc improvement.
Modified:
openwebbeans/cms-site/trunk/content/testing_test-control.mdtext
Modified: openwebbeans/cms-site/trunk/content/testing_test-control.mdtext
URL: http://svn.apache.org/viewvc/openwebbeans/cms-site/trunk/content/testing_test-control.mdtext?rev=1566612&r1=1566611&r2=1566612&view=diff
==============================================================================
--- openwebbeans/cms-site/trunk/content/testing_test-control.mdtext (original)
+++ openwebbeans/cms-site/trunk/content/testing_test-control.mdtext Mon Feb 10 13:16:58 2014
@@ -1,82 +1,83 @@
-Title: OpenWebBeans CdiCtrl
-Notice: 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.
-
-# Testing your application with Apache DeltaSpike Test-Control
-
-## About Test-Control
-
-
-``Test-Control`` is *not* part of Apache OpenWebBeans but a module of
-[Apache DeltaSpike][1]. It is based on another Deltaspike module called ``CdiCtrl``.
-``Test-Control`` is currently only available in snapshot releases of Deltaspike.
-
-``CdiCtrl`` abstracts away all the logic to boot a CDI Container
-and controls the life cycle of it's Contexts (Request Context, Session Context, etc).
-This module can be extremely powerful for CDI projects both for tests and during runtime.
-It's a long time recommendation to use
-``CdiCtrl`` to write tests with low - medium complexity and we explain how here:
-[Testing with cdiCtrl](source.html).
-
-With ``Test-Control`` the few steps you had to do on your own are taken cared of for you. In a way ``Test-Control``
-puts ``CdiCtrl`` out of business in regards to testing.
-
-## Adding Deltaspike Test-Control to your project
-
-The following are the dependencies you need in your Apache Maven pom.xml file in addition to
-OWB itself:
-
- <dependency>
- <groupId>org.apache.deltaspike.cdictrl</groupId>
- <artifactId>deltaspike-cdictrl-api</artifactId>
- <version>${deltaspike.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.deltaspike.cdictrl</groupId>
- <artifactId>deltaspike-cdictrl-owb</artifactId>
- <version>${deltaspike.version}</version>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.deltaspike.cdictrl</groupId>
- <artifactId>deltaspike-test-control-module-api</artifactId>
- <version>${deltaspike.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.deltaspike.cdictrl</groupId>
- <artifactId>deltaspike-test-control-module-impl</artifactId>
- <version>${deltaspike.version}</version>
- <scope>test</scope>
- </dependency>
-
-Note that deltaspike-cdictrl-openejb can substitute the deltaspike-cdictrl-owb dependency if you are using TomEE.
-
-
-## Why use Test-Control for your unit tests?
-
-Test-Control offers the strong testing capabilities of ``CdiCtrl``
-but let's you focus on writing the actual tests alone. ``Test-Control`` is the new lightweight champion for testing CDI and the required setup is very minimal.
-The testing flow is intuitive and follows the principles of other test runners.
-
-## Examples and Getting started
-
-This information can be found here [Deltaspike documentation for Test-Control](http://deltaspike.apache.org/test-control.html)
-
- [1]: http://deltaspike.apache.org
+Title: OpenWebBeans Test-Control
+Notice: 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.
+
+# Testing your application with Apache DeltaSpike Test-Control
+
+## About Test-Control
+
+
+``Test-Control`` is *not* part of Apache OpenWebBeans but a module of
+[Apache DeltaSpike][1]. It is based on another Deltaspike module called ``CdiCtrl``.
+``Test-Control`` is currently only available in snapshot releases of Deltaspike.
+
+``CdiCtrl`` abstracts away all the logic to boot a CDI Container
+and controls the life cycle of it's Contexts (Request Context, Session Context, etc).
+This module can be extremely powerful for CDI projects both for tests and during runtime.
+It's a long time recommendation to use
+``CdiCtrl`` to write tests with low - medium complexity and we explain how here:
+[Testing with cdiCtrl](testing_cdictrl.html).
+
+With ``Test-Control`` the few steps you had to do on your own are taken cared of for you. In a way ``Test-Control``
+However ``Test-Control`` though it's fairly new and has no support for TestNG at the moment. It may also be insufficient if you need your own custom
+extension points or have other complex demands.
+
+## Adding Deltaspike Test-Control to your project
+
+The following are the dependencies you need in your Apache Maven pom.xml file in addition to
+OWB itself:
+
+ <dependency>
+ <groupId>org.apache.deltaspike.cdictrl</groupId>
+ <artifactId>deltaspike-cdictrl-api</artifactId>
+ <version>${deltaspike.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.deltaspike.cdictrl</groupId>
+ <artifactId>deltaspike-cdictrl-owb</artifactId>
+ <version>${deltaspike.version}</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.deltaspike.cdictrl</groupId>
+ <artifactId>deltaspike-test-control-module-api</artifactId>
+ <version>${deltaspike.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.deltaspike.cdictrl</groupId>
+ <artifactId>deltaspike-test-control-module-impl</artifactId>
+ <version>${deltaspike.version}</version>
+ <scope>test</scope>
+ </dependency>
+
+Note that deltaspike-cdictrl-openejb can substitute the deltaspike-cdictrl-owb dependency if you are using TomEE.
+
+
+## Why use Test-Control for your unit tests?
+
+Test-Control offers the strong testing capabilities of ``CdiCtrl``
+but let's you focus on writing the actual tests alone. ``Test-Control`` is the new lightweight champion for testing CDI and the required setup is very minimal.
+The testing flow is intuitive and follows the principles of other test runners.
+
+## Examples and Getting started
+
+This information can be found here [Deltaspike documentation for Test-Control](http://deltaspike.apache.org/test-control.html)
+
+ [1]: http://deltaspike.apache.org
\ No newline at end of file