deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject svn commit: r1588564 - /deltaspike/site/trunk/content/test-control.mdtext
Date Fri, 18 Apr 2014 21:01:38 GMT
Author: gpetracek
Date: Fri Apr 18 21:01:37 2014
New Revision: 1588564

URL: http://svn.apache.org/r1588564
Log:
updated content

Modified:
    deltaspike/site/trunk/content/test-control.mdtext

Modified: deltaspike/site/trunk/content/test-control.mdtext
URL: http://svn.apache.org/viewvc/deltaspike/site/trunk/content/test-control.mdtext?rev=1588564&r1=1588563&r2=1588564&view=diff
==============================================================================
--- deltaspike/site/trunk/content/test-control.mdtext (original)
+++ deltaspike/site/trunk/content/test-control.mdtext Fri Apr 18 21:01:37 2014
@@ -24,6 +24,48 @@ Notice:    Licensed to the Apache Softwa
 
 This module is available since version 0.6 and allows to write CDI based tests easily.
 
+# Setup
+
+Setup for the CDI implementation of your choice and the following test-dependencies:
+
+    <dependency>
+        <groupId>org.apache.deltaspike.modules</groupId>
+        <artifactId>deltaspike-test-control-module-api</artifactId>
+        <version>${ds.version}</version>
+        <scope>test</scope>
+    </dependency>
+    <dependency>
+        <groupId>org.apache.deltaspike.modules</groupId>
+        <artifactId>deltaspike-test-control-module-impl</artifactId>
+        <version>${ds.version}</version>
+        <scope>test</scope>
+    </dependency>
+
+
+## OpenWebBeans
+
+If you are using OpenWebBeans also add the following test-dependency
+
+     <dependency>
+         <groupId>org.apache.deltaspike.cdictrl</groupId>
+         <artifactId>deltaspike-cdictrl-owb</artifactId>
+         <version>${ds.version}</version>
+         <scope>test</scope>
+     </dependency>
+
+
+## Weld
+
+If you are using Weld also add the following test-dependency
+
+    <dependency>
+        <groupId>org.apache.deltaspike.cdictrl</groupId>
+        <artifactId>deltaspike-cdictrl-weld</artifactId>
+        <version>${ds.version}</version>
+        <scope>runtime</scope>
+    </dependency>
+
+
 # CdiTestRunner
 
 JUnit Test-Runner to start/stop the CDI-Container autom. (per test-class) and one request
and session per test-method:
@@ -98,6 +140,8 @@ It's possible to set "deltaspike.testcon
 
 Don't forget to add a beans.xml in the test-module (e.g. src/test/resources/META-INF/beans.xml).
 
+If you are using OpenWebBeans as CDI implementation and you need to test EJBs as well, you
can use deltaspike-cdictrl-openejb (instead of deltaspike-cdictrl-owb).
+
 # Optional Integrations
 
 ## JSF (via MyFaces-Test)



Mime
View raw message