Repository: deltaspike Updated Branches: refs/heads/master e68beb191 -> dc9e56a3b
DELTASPIKE-785 added documentation Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/dc9e56a3 Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/dc9e56a3 Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/dc9e56a3 Branch: refs/heads/master Commit: dc9e56a3bdf1ee774b1777490db442c5f56d2d93 Parents: e68beb1 Author: gpetracek <[email protected]> Authored: Thu Nov 20 15:34:23 2014 +0100 Committer: gpetracek <[email protected]> Committed: Thu Nov 20 15:36:58 2014 +0100 ---------------------------------------------------------------------- .../src/main/asciidoc/test-control.adoc | 30 ++++++++++++++++++++ 1 file changed, 30 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/deltaspike/blob/dc9e56a3/documentation/src/main/asciidoc/test-control.adoc ---------------------------------------------------------------------- diff --git a/documentation/src/main/asciidoc/test-control.adoc b/documentation/src/main/asciidoc/test-control.adoc index 809f50b..bbc76e7 100644 --- a/documentation/src/main/asciidoc/test-control.adoc +++ b/documentation/src/main/asciidoc/test-control.adoc @@ -159,6 +159,36 @@ EJBs as well, you can use deltaspike-cdictrl-openejb + org.apache.openejb:openejb-core (instead of deltaspike-cdictrl-owb). +== Optional Config + +Since DeltaSpike 1.2 it's possible to provide a config for the underlying test-container. +However, currently only the adapter for OpenEJB embedded (available in CDI-Control) supports it out-of-the-box. +To pass properties to the underlying test-container, +you have to add `/META-INF/apache-deltaspike_test-container.properties` +to the resources-directory of your test-classpath. +The content of the file are key/value pairs which get passed to the container. +Therefore, it's a config which isn't used by DeltaSpike itself +(it's just forwarded (as it is) to the underlying test-container). + +=== Reconfigure the config-file name/location + +If you would like to point to an existing config-file, you have to add e.g. + +[source,Properties] +--------------------------------------------------------------- +deltaspike.testcontrol.test-container.config-file=META-INF/existingConfig.properties +--------------------------------------------------------------- + +to `/META-INF/apache-deltaspike.properties`. + +If you would like to do it per project-stage, you can use e.g.: + +[source,Properties] +--------------------------------------------------------------- +deltaspike.testcontrol.test-container.config-file.UnitTest=META-INF/unit-test/existingConfig.properties +--------------------------------------------------------------- + + == Optional Integrations
