deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject svn commit: r1565939 - /deltaspike/site/trunk/content/test-control.mdtext
Date Sat, 08 Feb 2014 08:29:39 GMT
Author: gpetracek
Date: Sat Feb  8 08:29:38 2014
New Revision: 1565939

URL: http://svn.apache.org/r1565939
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=1565939&r1=1565938&r2=1565939&view=diff
==============================================================================
--- deltaspike/site/trunk/content/test-control.mdtext (original)
+++ deltaspike/site/trunk/content/test-control.mdtext Sat Feb  8 08:29:38 2014
@@ -105,6 +105,8 @@ Don't forget to add a beans.xml in the t
 add:
 
 org.apache.deltaspike.testcontrol.impl.jsf.MockedJsf2TestContainer
+or
+org.apache.deltaspike.testcontrol.impl.jsf.MockedJsfTestContainerAdapter
 
 to
 
@@ -112,6 +114,20 @@ to
 
 (in your config-folder for tests e.g.: test/resources)
 
+# Mixed Tests
+
+Usually you should have one kind of tests per test-module.
+However, if you need to add e.g. a test without an external-container to your test-module
which uses external-containers, you can annotate your test with:
+
+    :::java
+    @RunWith(CdiTestRunner.class)
+    @TestControl(startExternalContainers = false)
+    public class JsfContainerTest
+    {
+        //...
+    }
+
+
 # SPI
 
 ## ExternalContainer



Mime
View raw message